FAIRmat-NFDI / pynxtools

https://fairmat-nfdi.github.io/pynxtools/
Apache License 2.0
12 stars 8 forks source link

Namefitted attributes are not recognized #422

Open rettigl opened 1 week ago

rettigl commented 1 week ago

Namefitted attributes are not recognized by read_nexus, and reported as "NOT IN SCHEMA". This applies e.g. to the AXISNAME_indices in NXdata While "energy_indices" is defined in NXmpes, and identified correctly, "angular0_indices" is expected to be namefitted to AXISNAME_indices in NXdata, but is not:

DEBUG: ===== ATTRS (//entry/data@energy_indices)
DEBUG: value: 2 
DEBUG: classpath: ['NXentry', 'NXdata']
DEBUG: classes:
NXmpes.nxdl.xml:/ENTRY/data
NXentry.nxdl.xml:/DATA
NXdata.nxdl.xml:
DEBUG: NXmpes.nxdl.xml:/ENTRY/data@energy_indices - [NX_CHAR]
DEBUG: <<RECOMMENDED>>
DEBUG: documentation (NXmpes.nxdl.xml:/ENTRY/data/energy_indices):
DEBUG: ===== ATTRS (//entry/data@angular0_indices)
DEBUG: value: 0 
DEBUG: classpath: ['NXentry', 'NXdata']
DEBUG: classes:
NXmpes.nxdl.xml:/ENTRY/data
NXentry.nxdl.xml:/DATA
NXdata.nxdl.xml:
DEBUG: @angular0_indices - IS NOT IN SCHEMA
DEBUG: 
rettigl commented 1 week ago

@sanbrock is this not implemented yet, or a bug?