Skip to content

Commit

Permalink
correct parsing of moving attenuators
Browse files Browse the repository at this point in the history
  • Loading branch information
P-Mousley committed Dec 11, 2024
1 parent ec43260 commit 399bc13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/islatu/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ def __init__(self, data: Data, metadata: Metadata, images: List[Image],remove_in
self.images = images
self.detname=self.metadata.detector_name
if 'attenuation_filters_moving' in self.metadata.entry[f'{self.detname}'].keys():
self.metadata.transmissions=self.metadata.entry[f'{self.detname}_transmission/transmission'].nxdata
if len(self.metadata.entry[f'{self.detname}/attenuation_filters_moving'].nxdata) >1:
self.metadata.transmissionsraw=self.metadata.entry[f'{self.detname}_transmission/transmission'].nxdata
self.metadata.transmissions=np.delete(np.insert(self.metadata.transmissionsraw,0,1e-9),-1)
if remove_indices is not None:
self.remove_data_points(remove_indices)

Expand Down

0 comments on commit 399bc13

Please sign in to comment.