diff --git a/pynxtools/dataconverter/helpers.py b/pynxtools/dataconverter/helpers.py index 199dec181..c310aaf09 100644 --- a/pynxtools/dataconverter/helpers.py +++ b/pynxtools/dataconverter/helpers.py @@ -27,6 +27,7 @@ from ase.data import chemical_symbols import h5py +from pynxtools import get_nexus_version from pynxtools.nexus import nexus from pynxtools.nexus.nexus import NxdlAttributeError @@ -591,7 +592,7 @@ def add_default_root_attributes(data, filename): data["/@file_name"] = filename data["/@file_time"] = str(datetime.now(timezone.utc).astimezone()) data["/@file_update_time"] = data["/@file_time"] - data["/@NeXus_version"] = "NOT_IMPLEMENTED" + data["/@NeXus_version"] = get_nexus_version() data["/@HDF5_version"] = '.'.join(map(str, h5py.h5.get_libversion())) # pylint: disable=c-extension-no-member data["/@h5py_version"] = h5py.__version__