Skip to content

Commit

Permalink
pr response
Browse files Browse the repository at this point in the history
  • Loading branch information
andped10 committed May 17, 2024
1 parent 09b1c19 commit d06ba7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/easyreflectometry/experiment/model_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ class ModelCollection(BaseElementCollection):

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

0 comments on commit d06ba7a

Please sign in to comment.