Skip to content

Commit

Permalink
nicer name layout
Browse files Browse the repository at this point in the history
  • Loading branch information
sanbrock committed Dec 19, 2024
1 parent a70fa1e commit d2cc0e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pynxtools/nomad/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit d2cc0e9

Please sign in to comment.