fix typo
This commit is contained in:
parent
dc3893f52a
commit
d3d16afbcf
1 changed files with 4 additions and 1 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue