Skip to content

Commit

Permalink
added not
Browse files Browse the repository at this point in the history
Co-authored-by: Sarthak Kapoor <[email protected]>
  • Loading branch information
aalbino2 and ka-sarthak authored Dec 3, 2024
1 parent 3ee7944 commit 56ea767
Showing 1 changed file 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 @@ -84,7 +84,7 @@ def merge_sections( # noqa: PLR0912
if section is None:
section = update.m_copy()
return
if update.m_def in [section.m_def, *section.m_def.all_base_sections]:
if update.m_def not in [section.m_def, *section.m_def.all_base_sections]:
raise TypeError(
'Cannot merge sections of different types: '
f'{type(section)} and {type(update)}'
Expand Down

0 comments on commit 56ea767

Please sign in to comment.