Skip to content

Commit

Permalink
adjustment to fix app
Browse files Browse the repository at this point in the history
  • Loading branch information
andped10 committed May 14, 2024
1 parent 9547a2e commit 48dbe0a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/easyreflectometry/experiment/model_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,16 @@ class ModelCollection(BaseElementCollection):
# Added in super().__init__
models: list[Model]

def __init__(self, *models: Optional[list[Model]], name: str = 'EasyModels', interface=None, **kwargs):
def __init__(
self,
*models: Optional[list[Model]],
name: str = 'EasyModels',
interface=None,
**kwargs,
):
if models is None:
models = [Model(interface=interface) for _ in range(SIZE_DEFAULT_COLLECTION)]
super().__init__(name, *models, **kwargs)
super().__init__(name, interface, *models, **kwargs)
self.interface = interface

def add_model(self, new_model: Model):
Expand Down

0 comments on commit 48dbe0a

Please sign in to comment.