-
Notifications
You must be signed in to change notification settings - Fork 23
Description
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