This commit is contained in:
linarphy 2025-07-13 01:47:16 +02:00
parent dc3893f52a
commit d3d16afbcf
Signed by: linarphy
GPG key ID: 0CBF02E039B4FFFF

View file

@ -95,13 +95,16 @@ class Measurement(Section):
# Make sure that every component are unique (two scatterers can # Make sure that every component are unique (two scatterers can
# be associated with the same component) # be associated with the same component)
for component in self.components: for component in self.components:
unique = True
for unique_component in unique_components: for unique_component in unique_components:
if ( if (
component.metadata.name component.metadata.name
== unique_component.metadata.name == unique_component.metadata.name
): ):
unique = False
continue # already in the list continue # already in the list
unique_components.append(component) if unique:
unique_components.append(component)
for component in unique_components: for component in unique_components:
_ = component.to_hdf5( _ = component.to_hdf5(