diff --git a/src/nomad_measurements/utils.py b/src/nomad_measurements/utils.py index ec60a06d..dd0be820 100644 --- a/src/nomad_measurements/utils.py +++ b/src/nomad_measurements/utils.py @@ -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}".' diff --git a/tests/test_utils.py b/tests/test_first_utils.py similarity index 100% rename from tests/test_utils.py rename to tests/test_first_utils.py