Skip to content

Commit

Permalink
MNT #1018 per NIAC2024 decision
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian authored Oct 1, 2024
1 parent 2941460 commit fe845ea
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apstools/callbacks/nexus_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ def write_root(self, filename):
if self.instrument_name is not None:
self.root.attrs["instrument"] = self.instrument_name
self.root.attrs["creator"] = self.__class__.__name__
self.root.attrs["NeXus_version"] = self.nexus_release
self.root.attrs["NeXus_release"] = self.nexus_release
self.root.attrs["HDF5_Version"] = h5py.version.hdf5_version
self.root.attrs["h5py_version"] = h5py.version.version
self.root.attrs["default"] = "entry"
Expand Down
2 changes: 1 addition & 1 deletion apstools/callbacks/tests/test_filewriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def test_NXWriter_receiver_battery(cat, tempdir):

assert fname.exists()
with h5py.File(fname, "r") as nxroot:
assert nxroot.attrs.get("NeXus_version") == NEXUS_RELEASE
assert nxroot.attrs.get("NeXus_release") == NEXUS_RELEASE
assert nxroot.attrs.get("creator") == callback.__class__.__name__

nxentry = nxroot["/entry"]
Expand Down
2 changes: 1 addition & 1 deletion docs/source/examples/fw_nxwriter.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
"\n",
"/tmp/nxwriter.h5 : NeXus data file\n",
" @HDF5_Version = \"1.12.1\"\n",
" @NeXus_version = \"v2020.1\"\n",
" @NeXus_release = \"v2020.1\"\n",
" @creator = \"NXWriter\"\n",
" @default = \"entry\"\n",
" @file_name = \"/tmp/nxwriter.h5\"\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/source/examples/ho_nxwriter_templates.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@
"\n",
"/tmp/nxwriter.h5 : NeXus data file\n",
" @HDF5_Version = \"1.14.0\"\n",
" @NeXus_version = \"v2020.1\"\n",
" @NeXus_release = \"v2020.1\"\n",
" @creator = \"NXWriter\"\n",
" @default = \"entry\"\n",
" @file_name = \"/tmp/nxwriter.h5\"\n",
Expand Down

0 comments on commit fe845ea

Please sign in to comment.