-
Notifications
You must be signed in to change notification settings - Fork 0
add way to get axes name #35
Copy link
Copy link
Closed
Description
Currently, when a nexus file is read with hdfmap, the 'axes' and 'signal' paths are automatically generated in the namespace.
However, there is no simple way to recover the name of this group for the purposes of creating plots. The only way to do it at the moment is to use eval:
import hdfmap
f = 'file.nxs'
m = hdfmap.create_nexus_map(f)
x_label = m.eval(m.load_hdf(), '__axes')
y_label = m.eval(m.load_hdf(), '__signal')There should be a method added to the HdfMap object to recover the path name given a name in the namespace. For example:
x_label = m.get_name('axes')
y_label = m.get_name('signal')Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels