Skip to content

Commit

Permalink
fix a couple bugs with naming
Browse files Browse the repository at this point in the history
  • Loading branch information
patricktnast committed Dec 13, 2023
1 parent d33a4ee commit d00c301
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def columns_required(self) -> List[str]:

@property
def initialization_requirements(self) -> Dict[str, List[str]]:
return {"requires_streams": [self.name], "requires_columns": [self.columns_required]}
return {"requires_streams": [self.name], "requires_columns": self.columns_required}

# noinspection PyAttributeOutsideInit
def setup(self, builder: Builder) -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def __init__(self, state_id, *args, **kwargs):


class PregnantState(DiseaseState):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
def __init__(self, state_id, *args, **kwargs):
super().__init__(state_id, *args, **kwargs)
self.new_children = NewChildren()

##############
Expand Down Expand Up @@ -212,6 +212,10 @@ def get_initial_event_times(self, pop_data: SimulantData) -> pd.DataFrame:


class PregnancyModel(DiseaseModel):
def __init__(self, cause: str, **kwargs):
super().__init__(cause, **kwargs)
self._name = f"disease_model.{cause}"

@property
def time_step_priority(self) -> int:
return 3
Expand Down

0 comments on commit d00c301

Please sign in to comment.