Skip to content

read_nexus: Recognize @target attributes for links #697

@lukaspie

Description

@lukaspie

Currently, read_nexus does not recognize the @target attribute which is supposed to be written whenever a link is written.
This leads to reports like this:

DEBUG - ===== ATTRS (//entry/reproducibility_indicators/cantilever_oscillator/phase_lock_loop/amplitude_excitation@target) (line: 7025)
DEBUG - value: /entry/instrument/cantilever_spm/cantilever_oscillator/phase_lock_loop/amplitude_excitation (line: 7026)
DEBUG - ===== GROUP (//entry/resolution_indicators [NXafm::/NXentry/NXcollection]): <HDF5 group "/entry/resolution_indicators" (2 members)> (line: 7174)
DEBUG - ===== ATTRS (//entry/resolution_indicators/amplitude_excitation@target) (line: 7255)
DEBUG - value: /entry/instrument/cantilever_spm/cantilever_oscillator/phase_lock_loop/amplitude_excitation (line: 7256)
DEBUG - @target - IS NOT IN SCHEMA (line: 7260)

It would be good if the tool can recognize links and in this case, report @target as documented (at least as long as nexusformat/definitions#1558 is not resolved).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions