Skip to content

problem accessing values - nxvalue and nxlinks #74

@pquinn-stfc

Description

@pquinn-stfc

Hi,

I'm using a nexus file with links to external files.....
The file has "entry" - > which is processed data in the file and "raw_entry" which points to an external file.

If I try and access the external file via:

fin["raw_entry/instrument/detectors/xreye_x"].nxvalue

this works but...

fin["raw_entry"]["instrument"]["detectors"]["xreye_x"].nxvalue fails...

C:\ProgramData\Anaconda3\lib\site-packages\nexusformat\nexus\tree.py in nxvalue(self)
2711 If unmodified values are required, use the 'nxdata' property.
2712 """
-> 2713 _value = self.nxdata
2714 if _value is None:
2715 return None

C:\ProgramData\Anaconda3\lib\site-packages\nexusformat\nexus\tree.py in getattr(self, name)
4087 return self.attrs[name]
4088 else:
-> 4089 raise NeXusError("'"+name+"' not in "+self.nxpath)
4090
4091 def getitem(self, key):

NeXusError: 'nxdata' not in /raw_entry/instrument/detectors/xreye_x

Doing the same thing with "entry" seems fine so it seems to be related to the external file or nxlink ?

Paul

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions