Skip to content

Commit

Permalink
Using DetectorDimensions by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiisoup committed Oct 29, 2024
1 parent e82e5b7 commit 112a97e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sif_parser/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ def extract_calibration(info):
found.
None if no calibration is found
"""
width = info['ImageLength']
width = info['DetectorDimensions'][0]
if 'ImageLength' in info:
width = info['ImageLength']
# multiple calibration data is stored
if 'Calibration_data_for_frame_1' in info:
calibration = np.ndarray((info['NumberOfFrames'], width))
Expand Down

0 comments on commit 112a97e

Please sign in to comment.