Skip to content

Commit 5b6daa0

Browse files
authored
Merge pull request #1418 from FAIRmat-NFDI/fairmat-2024-nxroot
Fairmat 2024: add attributes to NXroot
2 parents fa09ecd + 4e02ac0 commit 5b6daa0

1 file changed

Lines changed: 26 additions & 5 deletions

File tree

base_classes/NXroot.nxdl.xml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,35 @@
4646
<attribute name="file_update_time" type="NX_DATE_TIME">
4747
<doc>Date and time of last file change at close</doc>
4848
</attribute>
49-
<attribute name="NeXus_version">
49+
<attribute name="NeXus_version" deprecated="NAPI is frozen.">
5050
<doc>
5151
Version of NeXus API used in writing the file.
5252

53-
Only used when the NAPI has written the file.
5453
Note that this is different from the version of the
55-
base class or application definition version number.
54+
base class or application definition version number.
55+
</doc>
56+
</attribute>
57+
<attribute name="NeXus_repository">
58+
<doc>
59+
A repository containing the application definitions
60+
used for creating this file.
61+
If the ``NeXus_release`` attribute contains a commit distance and hash,
62+
this should refer to this repository.
63+
</doc>
64+
</attribute>
65+
<attribute name="NeXus_release">
66+
<doc>
67+
The version of NeXus definitions used in writing the file. This can either be a date-based
68+
NeXus release (e.g., YYYY.MM), see https://github.com/nexusformat/definitions/releases or
69+
a version tag that includes additional development information, such as a commit distance and
70+
a Git hash. This is typically formatted as `vYYYY.MM.post1.dev&lt;commit-distance&gt;-g&lt;git-hash&gt;`,
71+
where `YYYY.MM` refers to the base version of the NeXus definitions. `post1.dev&lt;commit-distance&gt;`
72+
indicates that the definitions are based on a commit after the base version (post1), with
73+
`&lt;commit-distance&gt;` being the number of commits since that version. `g&lt;git-hash&gt;` is the
74+
abbreviated Git hash that identifies the specific commit of the definitions being used.
75+
76+
If the version includes both a commit distance and a Git hash, the ``NeXus_repository``
77+
attribute must be included, specifying the URL of the repository containing that version.
5678
</doc>
5779
</attribute>
5880
<attribute name="HDF_version">
@@ -101,5 +123,4 @@
101123
for a summary of the discussion.
102124
</doc>
103125
</attribute>
104-
</definition>
105-
126+
</definition>

0 commit comments

Comments
 (0)