Skip to content

Commit

Permalink
yet more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
quaquel committed Sep 14, 2024
1 parent a4c70fa commit ddc5959
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions mesa/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
from mesa.datacollection import DataCollector


class BaseClass:
def __init__(self, seed=None):
super().__init__()
self.seed = seed

class Model:
"""Base class for models in the Mesa ABM library.
Expand Down
6 changes: 2 additions & 4 deletions tests/test_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
SimultaneousActivation,
StagedActivation,
)
from mesa.model import BaseClass

RANDOM = "random"
STAGED = "staged"
Expand Down Expand Up @@ -102,10 +103,7 @@ def model_stage(self):
self.log.append("model_stage")


class BaseClass:
def __init__(self, seed=None):
super().__init__()
self.seed = seed



class SomeModel(BaseClass):
Expand Down

0 comments on commit ddc5959

Please sign in to comment.