diff --git a/apstools/callbacks/nexus_writer.py b/apstools/callbacks/nexus_writer.py index 3ec89cf4..ccb3d933 100644 --- a/apstools/callbacks/nexus_writer.py +++ b/apstools/callbacks/nexus_writer.py @@ -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" diff --git a/apstools/callbacks/tests/test_filewriter.py b/apstools/callbacks/tests/test_filewriter.py index 1b45f200..53d6ebf1 100644 --- a/apstools/callbacks/tests/test_filewriter.py +++ b/apstools/callbacks/tests/test_filewriter.py @@ -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"] diff --git a/docs/source/examples/fw_nxwriter.ipynb b/docs/source/examples/fw_nxwriter.ipynb index f1816cfc..8c0e5172 100644 --- a/docs/source/examples/fw_nxwriter.ipynb +++ b/docs/source/examples/fw_nxwriter.ipynb @@ -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", diff --git a/docs/source/examples/ho_nxwriter_templates.ipynb b/docs/source/examples/ho_nxwriter_templates.ipynb index 34d424c5..1756352a 100644 --- a/docs/source/examples/ho_nxwriter_templates.ipynb +++ b/docs/source/examples/ho_nxwriter_templates.ipynb @@ -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",