Skip to content

Commit

Permalink
[fix] small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marta-seq committed May 19, 2024
1 parent 6867198 commit 22d7fd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example_pipeline_all_ch.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ def preprocess_image(img, thresholds, percentiles):

# Save images
names_save = [os.path.join(path_for_results, os.path.basename(sub)) for sub in files]
if isinstance(self.channel_names[0], str):
if isinstance(channel_names[0], str):
images_final = map(
lambda p, f: IPrep.save_img_ch_names_pages(p, f, ch_last=True, channel_names=self.channel_names),
lambda p, f: IPrep.save_img_ch_names_pages(p, f, ch_last=True, channel_names=channel_names),
imgs_filtered, names_save)

else:
# will not save channel names
images_final = map(lambda p, f: IPrep.save_images(p, f, ch_last=True), imgs_filtered, names_save)

print(f'Images saved at {self.path_for_results}')
print(f'Images saved at {path_for_results}')

0 comments on commit 22d7fd3

Please sign in to comment.