Skip to content

Commit

Permalink
Merge pull request #1418 from FAIRmat-NFDI/fairmat-2024-nxroot
Browse files Browse the repository at this point in the history
Fairmat 2024: add attributes to NXroot
  • Loading branch information
lukaspie authored Oct 22, 2024
2 parents fa09ecd + 4e02ac0 commit 5b6daa0
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions base_classes/NXroot.nxdl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,35 @@
<attribute name="file_update_time" type="NX_DATE_TIME">
<doc>Date and time of last file change at close</doc>
</attribute>
<attribute name="NeXus_version">
<attribute name="NeXus_version" deprecated="NAPI is frozen.">
<doc>
Version of NeXus API used in writing the file.

Only used when the NAPI has written the file.
Note that this is different from the version of the
base class or application definition version number.
base class or application definition version number.
</doc>
</attribute>
<attribute name="NeXus_repository">
<doc>
A repository containing the application definitions
used for creating this file.
If the ``NeXus_release`` attribute contains a commit distance and hash,
this should refer to this repository.
</doc>
</attribute>
<attribute name="NeXus_release">
<doc>
The version of NeXus definitions used in writing the file. This can either be a date-based
NeXus release (e.g., YYYY.MM), see https://github.com/nexusformat/definitions/releases or
a version tag that includes additional development information, such as a commit distance and
a Git hash. This is typically formatted as `vYYYY.MM.post1.dev&lt;commit-distance&gt;-g&lt;git-hash&gt;`,
where `YYYY.MM` refers to the base version of the NeXus definitions. `post1.dev&lt;commit-distance&gt;`
indicates that the definitions are based on a commit after the base version (post1), with
`&lt;commit-distance&gt;` being the number of commits since that version. `g&lt;git-hash&gt;` is the
abbreviated Git hash that identifies the specific commit of the definitions being used.

If the version includes both a commit distance and a Git hash, the ``NeXus_repository``
attribute must be included, specifying the URL of the repository containing that version.
</doc>
</attribute>
<attribute name="HDF_version">
Expand Down Expand Up @@ -101,5 +123,4 @@
for a summary of the discussion.
</doc>
</attribute>
</definition>

</definition>

0 comments on commit 5b6daa0

Please sign in to comment.