Skip to content

Commit

Permalink
Supporting step_and_glue (#40)
Browse files Browse the repository at this point in the history
* Supporting step_and_glue

* Using DetectorDimensions by default.
  • Loading branch information
fujiisoup authored Oct 29, 2024
1 parent 9ac7c7c commit a714fc0
Show file tree
Hide file tree
Showing 4 changed files with 4,766 additions and 1 deletion.
2 changes: 2 additions & 0 deletions sif_parser/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def extract_calibration(info):
None if no calibration is found
"""
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
Loading

0 comments on commit a714fc0

Please sign in to comment.