CDCgov / CDCgov/PyRenew

Simplify infection initialization API

Open
#479 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
29
Forks
9
Avg merge
9d 9h
Merged PRs (30d)
8

Description

in particular, it should be easy to retrieve the number of initialization points.

Right now, you have to do this:

https://github.com/CDCgov/pyrenew-hew/blob/c9e8cacae591bb2d1bd87be7656097bcaa0f0232/pyrenew_hew/pyrenew_hew_model.py#L381

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked location in pyrenew_hew/pyrenew_hew_model.py around line 381 and inspect how infection initialization points are currently represented and accessed. Clarify the intended initialization API and how callers should retrieve the number of points; done means the API is simpler and the count is directly available, with existing behavior preserved.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend-api-design
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.