Skip to content

Commit

Permalink
relocate this per NeXus rules
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Jul 28, 2016
1 parent 34357d7 commit 37731e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/spec2nexus/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ def save(self, hdf_file, scan_list=[]):
:param [int] scanlist: list of scan numbers to be read
'''
root = eznx.makeFile(hdf_file, **self.root_attributes())
eznx.makeDataset(root,
'definition',
'NXspecdata',
description='NeXus application definition')
pick_first_entry = True
for key in scan_list:
nxentry = eznx.makeGroup(root, 'S'+str(key), 'NXentry')
eznx.makeDataset(nxentry,
'definition',
'NXspecdata',
description='NeXus application definition (status pending)')
self.save_scan(nxentry, self.spec.getScan(key))
if pick_first_entry:
pick_first_entry = False
Expand Down

0 comments on commit 37731e9

Please sign in to comment.