Skip to content

Commit 0c08cbf

Browse files
Update test
1 parent 8f601ed commit 0c08cbf

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

flamingo_tools/data_conversion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def convert_lightsheet_to_bdv(
232232
# Read the metadata if it was given.
233233
if metadata_file is None: # No metadata given.
234234
# We don't use any tile transformation.
235-
tile_transformation = [None]
235+
tile_transformation = None
236236
# Set resolution and unit to their default values if they were not passed.
237237
if resolution is None:
238238
resolution = [1.0, 1.0, 1.0]

flamingo_tools/test_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# TODO add metadata
88
def create_test_data(root, size=256, n_channels=2, n_tiles=4):
99
channel_folders = [f"channel{chan_id}" for chan_id in range(n_channels)]
10-
file_name_pattern = "volume_R%i_C%i.tif"
10+
file_name_pattern = "volume_R%i_C%i_I0.tif"
1111
for chan_id, channel_folder in enumerate(channel_folders):
1212
out_folder = os.path.join(root, channel_folder)
1313
os.makedirs(out_folder, exist_ok=True)

test/test_data_conversion.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,7 @@ def test_convert_lightsheet_to_bdv(self):
2222
from flamingo_tools import convert_lightsheet_to_bdv
2323

2424
out_path = os.path.join(self.folder, "converted_data.n5")
25-
26-
channel_folders = {
27-
"channel0": "channel0",
28-
"channel1": "channel1",
29-
}
30-
convert_lightsheet_to_bdv(
31-
self.folder, channel_folders,
32-
image_file_name_pattern="volume_R*.tif",
33-
out_path=out_path
34-
)
25+
convert_lightsheet_to_bdv(self.folder, out_path=out_path)
3526

3627
self.assertTrue(os.path.exists(out_path))
3728
xml_path = out_path.replace(".n5", ".xml")

0 commit comments

Comments
 (0)