File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff 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" : {},
You can’t perform that action at this time.
0 commit comments