Skip to content

Commit 9f0002f

Browse files
committed
Added new message keys to CLEM workflow test
1 parent bab2754 commit 9f0002f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/workflows/clem/test_register_preprocessing_results.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ def generate_preprocessing_messages(
7777
output_files = {color: str(series_path / f"{color}.tiff") for color in colors}
7878
for output_file in output_files.values():
7979
Path(output_file).touch(exist_ok=True)
80+
thumbnails = {
81+
color: str(series_path / ".thumbnails" / f"{color}.png") for color in colors
82+
}
83+
for v in thumbnails.values():
84+
if not (thumbnail := Path(v)).parent.exists():
85+
thumbnail.parent.mkdir(parents=True)
86+
thumbnail.touch(exist_ok=True)
87+
thumbnail_size = (512, 512)
8088
is_stack = dataset[1]
8189
is_montage = dataset[2]
8290
shape = dataset[3]
@@ -91,6 +99,8 @@ def generate_preprocessing_messages(
9199
"is_stack": is_stack,
92100
"is_montage": is_montage,
93101
"output_files": output_files,
102+
"thumbnails": thumbnails,
103+
"thumbnail_size": thumbnail_size,
94104
"metadata": str(metadata),
95105
"parent_lif": None,
96106
"parent_tiffs": {},

0 commit comments

Comments
 (0)