Skip to content

Commit

Permalink
correct parsing of detector name
Browse files Browse the repository at this point in the history
  • Loading branch information
P-Mousley authored Dec 10, 2024
1 parent b89e300 commit a6e6db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/islatu/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ def i07_nxs_parser(file_path: str,remove_indices=None):
"""
# Use the magical parser class that does everything for us.
i07_nxs = I07Nexus(file_path)
detname=list(i07_nxs.entry.instrument.keys())[0]
detname=i07_nxs.detector_name
if 'attenuation_filters_moving' in i07_nxs.entry[f'{detname}'].keys():
remove_indices=np.where(np.array(i07_nxs.entry[f'{detname}/attenuation_filters_moving']))[0]
# Load the images, taking a transpose if necessary (because which axis is
Expand Down

0 comments on commit a6e6db9

Please sign in to comment.