Skip to content

Commit a772bde

Browse files
committed
Store detector name as an attribute.
1 parent f948bfd commit a772bde

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

extra_data/write_cxi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@ def write(self, filename, fillvalues=None):
260260
cellids.attrs['axes'] = 'experiment_identifier:module_identifier'
261261

262262
dgrp = expgrp.create_group('instrument_1/detector_1')
263+
# Store detector name as an attribute
264+
dgrp.attrs['name'] = self.detdata.detector_name
263265
if len(layouts[data_label].shape) == 4:
264266
axes_s = 'experiment_identifier:module_identifier:y:x'
265267
else:

0 commit comments

Comments
 (0)