From d2cc0e9c23325017f6a5e9aa86c7f7b2cb4ca732 Mon Sep 17 00:00:00 2001 From: sanbrock Date: Thu, 19 Dec 2024 11:41:49 +0100 Subject: [PATCH] nicer name layout --- src/pynxtools/nomad/schema.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pynxtools/nomad/schema.py b/src/pynxtools/nomad/schema.py index 6c9761937..96e2a78a3 100644 --- a/src/pynxtools/nomad/schema.py +++ b/src/pynxtools/nomad/schema.py @@ -990,7 +990,7 @@ def normalize_sample(self, archive, logger): """Normalizer for sample section.""" current_cls = __section_definitions[__rename_nx_for_nomad("NXsample")].section_cls self.name = self.__dict__["nx_name"] + ( - "(" + self.name__field + ")" if self.name__field else "" + " (" + self.name__field + ")" if self.name__field else "" ) # one could also copy local ids to identifier for search purposes super(current_cls, self).normalize(archive, logger) @@ -1002,7 +1002,7 @@ def normalize_entry(self, archive, logger): if self.start_time__field: self.start_time = self.start_time__field self.name = self.__dict__["nx_name"] + ( - "(" + self.title__field + ")" if self.title__field is not None else "" + " (" + self.title__field + ")" if self.title__field is not None else "" ) # one could also copy local ids to identifier for search purposes super(current_cls, self).normalize(archive, logger)