nexusformat / definitions

Definitions of the NeXus Standard File Structure and Contents
https://manual.nexusformat.org/
Other
26 stars 56 forks source link

Allowing the recommended xml attribute for nexus attributes #1183

Closed domna closed 2 years ago

domna commented 2 years ago

It is allowed for fields and groups to be recommended. However, this is not allowed for attributes.

This PR allows recommended setting for attributes as well.

prjemian commented 2 years ago

Is there a NXDL file where this is/would be used? I want to verify the Python code renders this in the documentation.

domna commented 2 years ago

Here is a file which uses this: https://github.com/FAIRmat-Experimental/nexus_definitions/blob/d92992b279400c169b2f4df9e15063d003041607/contributed_definitions/NXtransmission.nxdl.xml#L81 and it gets rendered in the generated html docs, too.