Skip to content

Commit

Permalink
another test
Browse files Browse the repository at this point in the history
  • Loading branch information
quaquel committed Sep 14, 2024
1 parent a2f2d7c commit c2198a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions mesa/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,12 @@ class Model:
# obj = object.__new__(cls)
# return obj

def __init__(self, *args, seed=None, **kwargs):
def __init__(self, seed=None):
"""Create a new model. Overload this method with the actual code to
start the model. Always start with super().__init__() to initialize the
model object properly.
"""
print(args)
print(kwargs)
super().__init__(*args, **kwargs)
super().__init__()
self.running = True
self.schedule = None
self.steps: int = 0
Expand Down
2 changes: 1 addition & 1 deletion tests/test_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def model_stage(self):
self.log.append("model_stage")


class SomeModel(BaseClass):
class SomeModel(Model):
def __init__(self, some_number, seed=None, some_other_argument=5):
super().__init__(seed=seed)
self.some_number = some_number
Expand Down

0 comments on commit c2198a5

Please sign in to comment.