Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Naming Bugs in Component Refactor #76

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading