Skip to content
Snippets Groups Projects
Commit 5fe7670e authored by payno's avatar payno
Browse files

test_volume_utils: avoid rescaling data for test

parent d6f2cb74
No related branches found
No related tags found
1 merge request!155JP2KVolume: add data cast and clipping
......@@ -101,6 +101,8 @@ def test_concatenate_volume(tmp_path, volume_class, axis):
else:
vol_params.update({"folder": os.path.join(raw_data_dir, f"volume_{i_vol}")})
volume = volume_class(**vol_params)
if isinstance(volume, JP2KVolume):
volume.rescale_data = False # simplify test
volume.save()
volumes.append(volume)
volume.data = None
......@@ -117,6 +119,8 @@ def test_concatenate_volume(tmp_path, volume_class, axis):
final_volume = volume_class(
folder=os.path.join(output_dir, "final_vol"),
)
if isinstance(final_volume, JP2KVolume):
final_volume.rescale_data = False
concatenate(output_volume=final_volume, volumes=volumes, axis=axis)
if axis == 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment