Skip to content

Commit

Permalink
Changed repeats to not is_scalar in merge_sections (#136)
Browse files Browse the repository at this point in the history
Updated `merge_sections` util function to work with the latest nomad-lab version
  • Loading branch information
hampusnasstrom authored Nov 14, 2024
1 parent 237dd2b commit 230852c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nomad_measurements/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def merge_sections( # noqa: PLR0912
elif (
quantity.is_scalar
and section.m_get(quantity) != update.m_get(quantity)
or quantity.repeats
or not quantity.is_scalar
and (section.m_get(quantity) != update.m_get(quantity)).any()
):
warning = f'Merging sections with different values for quantity "{name}".'
Expand Down
File renamed without changes.

0 comments on commit 230852c

Please sign in to comment.