Skip to content

Commit

Permalink
PR review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
RubelMozumder committed Dec 20, 2024
1 parent 8cf3b68 commit 17fdf24
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/nomad_measurements/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,10 @@ def _write_nx_file(self):
self.populate_nx_dataset_and_attribute(
attr_dict=attr_dict, dataset_dict=dataset_dict
)
for nx_path, dset_ori in list(self._hdf5_datasets.items()) + list(
for nx_path, dset_original in list(self._hdf5_datasets.items()) + list(
dataset_dict.items()
):
dset = copy.deepcopy(dset_ori)
dset = copy.deepcopy(dset_original)
if dset.internal_reference:
# convert to the nexus type link
dset.data = {'link': self._remove_nexus_annotations(dset.data)}
Expand Down Expand Up @@ -524,8 +524,7 @@ def populate_nx_dataset_and_attribute(
):
"""Construct datasets and attributes for nexus and populate."""

concept_map = copy.deepcopy(CONCEPT_MAP)
for nx_path, arch_path in concept_map.items():
for nx_path, arch_path in CONCEPT_MAP.items():
if arch_path.startswith('archive.'):
data = self.walk_through_object(self.archive, arch_path)
else:
Expand Down

0 comments on commit 17fdf24

Please sign in to comment.