Skip to content

Commit

Permalink
bugfix proper naming of uncropped tifs upon export
Browse files Browse the repository at this point in the history
not cropped tifs exported with cropped in name
  • Loading branch information
sophiamaedler committed Feb 7, 2024
1 parent bdbc3db commit 42ee238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sparcstools/stitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ def _assemble_mosaic(mosaic, crop = crop):
for i, channel in enumerate(slide.metadata.channel_map.values()):

#save using tifffile library to ensure compatibility with very large tif files
imsave(os.path.join(outdir, slidename + "_"+channel+'_cropped.tif'), merged_array[i].astype('uint16'))
imsave(os.path.join(outdir, slidename + "_"+channel+'.tif'), merged_array[i].astype('uint16'))

if export_XML:
_write_xml(outdir, slide.metadata.channel_map.values(), slidename, cropped = False)
Expand Down

0 comments on commit 42ee238

Please sign in to comment.