Skip to content

Commit

Permalink
Merge pull request #6 from NSLS-II-SST/specify-format
Browse files Browse the repository at this point in the history
Specify format to avoid fragile guessing.
  • Loading branch information
EliotGann authored Feb 5, 2024
2 parents 5f0082b + 3e9843a commit be3ffef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion export.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def tiff_export(raw_ref, processed_refs):
for i in range(num_frames):
filename = f"{start_doc['scan_id']}-{start_doc['sample_name']}-{STREAM_NAME}-{field}-{i}.tiff"
logger.info(f"Exporting {filename}")
dataset.export(directory / filename, slice=(i))
dataset.export(directory / filename, slice=(i), format="image/tiff")

logger.info(f"wrote tiff files to: {directory}")

Expand Down

0 comments on commit be3ffef

Please sign in to comment.