We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f99070b commit 604e448Copy full SHA for 604e448
src/murfey/client/contexts/tomo.py
@@ -745,7 +745,9 @@ def gather_metadata(
745
mdoc_metadata["tag"] = str(self._basepath)
746
mdoc_metadata["tilt_series_tag"] = metadata_file.stem
747
mdoc_metadata["exposure_time"] = float(mdoc_data_block["ExposureTime"])
748
- mdoc_metadata["slit_width"] = float(mdoc_data_block["FilterSlitAndLoss"][0])
+ slit_width = mdoc_data_block["FilterSlitAndLoss"][0]
749
+ if slit_width.lower() != "nan":
750
+ mdoc_metadata["slit_width"] = float(slit_width)
751
mdoc_metadata["file_extension"] = (
752
f".{mdoc_data_block['SubFramePath'].split('.')[-1]}"
753
)
0 commit comments