From fe1e8fd5b68649e48fe782c4469145efd7ce8c80 Mon Sep 17 00:00:00 2001 From: sanbrock Date: Fri, 13 Dec 2024 16:43:07 +0100 Subject: [PATCH] set naxus entry uneditable --- src/pynxtools/nomad/parser.py | 1 + src/pynxtools/nomad/schema.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pynxtools/nomad/parser.py b/src/pynxtools/nomad/parser.py index 88eca82da..ef266663a 100644 --- a/src/pynxtools/nomad/parser.py +++ b/src/pynxtools/nomad/parser.py @@ -513,6 +513,7 @@ def parse( if archive.metadata.entry_type is None: archive.metadata.entry_type = app_def archive.metadata.domain = "nexus" + archive.metadata.user_editable = False # Normalise element info if archive.results is None: diff --git a/src/pynxtools/nomad/schema.py b/src/pynxtools/nomad/schema.py index aab4c7190..7dee89243 100644 --- a/src/pynxtools/nomad/schema.py +++ b/src/pynxtools/nomad/schema.py @@ -47,7 +47,6 @@ InstrumentReference, Measurement, ) - from nomad.datamodel.metainfo.eln import BasicEln from nomad.metainfo import ( Attribute, Bytes,