Skip to content

fix: port RoutineImmunization to step protocol and new API (closes #195) - #231

Open
botbikamordehai2-sketch wants to merge 1 commit into
laser-base:mainfrom
botbikamordehai2-sketch:fix/issue-195-1783425110
Open

fix: port RoutineImmunization to step protocol and new API (closes #195)#231
botbikamordehai2-sketch wants to merge 1 commit into
laser-base:mainfrom
botbikamordehai2-sketch:fix/issue-195-1783425110

Conversation

@botbikamordehai2-sketch

Copy link
Copy Markdown

What

RoutineImmunization used __call__(self, model, tick) with an unused model parameter and relied on susceptibility arrays, which are outdated. The model's run() expects c.step(tick), and the new data model uses people.state and nodes.R.

Fix

  • Rename __call__(self, model, tick) to step(self, tick).
  • Replace population.susceptibility[idx] = 0 with self.model.nodes.state[idx] = self.model.nodes.R (immune state).
  • Remove unused model parameter and clean up docstrings.

Closes #195

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RoutineImmunization and ImmunizationCampaign use wrong API

1 participant