Skip to content

add way to get axes name #35

@DanPorter

Description

@DanPorter

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')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions