Skip to content

Commit

Permalink
Additional starter scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
clorton committed Jun 26, 2024
1 parent e7f21a0 commit 577a54e
Show file tree
Hide file tree
Showing 5 changed files with 597 additions and 45 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,26 @@
- runs the model
- plots SEIR trajectories for a node
- plots a trajectory of %I vs. %S over time
- note: the first time you run a cell in a Jupyter notebook in a Codespace, you will get some questions from VSCode in the command bar at the top of the window -
- "Select Kernel" → "Install/Enable suggested extensions Python + Jupyter"
- "Select Another Kernel" &rarr; "Python Environment" &rarr; "Python 3.10.13 ~/python/current/bin/python3" <br> (the version on the last one may change over time)

----

## Schedule

### First 30 Days (EOY 2023)

- <strike>firm up team/stakeholders/advisory committee</strike>
- <strike>firm up team/stakeholders/advisory committee</strike>
- enumerate necessary features for reproducing/supporting previous and in-progress modeling efforts
- <strike>measles (kmccarthy)</strike>
- <strike>measles (kmccarthy)</strike>
- malaria (cbever/pselvaraj)
- <strike>end-game/end-stage polio</strike>
- <strike>enumerate necessary features for outstanding questions and issues</strike>
- <strike>end-game/end-stage polio</strike>
- <strike>enumerate necessary features for outstanding questions and issues</strike>

### First 60 Days (January 31, 2024)

- <strike>"paper search" / investigate potential existing solutions</strike>
- <strike>"paper search" / investigate potential existing solutions</strike>
- capture development requirements
- tools for preparing data (demographics, networks, etc.)
- file formats
Expand All @@ -58,7 +61,7 @@

### First 120 Days (February 29, 2024)

- <strike>technical considerations</strike>
- <strike>technical considerations</strike>
- <strike>single laptop</strike>
- <strike>single laptop w/Nvidia GPU</strike>
- <strike>multicore</strike>
Expand Down
269 changes: 269 additions & 0 deletions onenode.ipynb

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions src/idmlaser/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,3 +320,19 @@ def predicted_day_of_death(age_days, max_year=100):
dod = yod * 365 + doy

return dod

class GrabBag:
def __init__(self, *bags):
for bag in bags:
assert isinstance(bag, (type(self), dict))
for key, value in (bag.__dict__ if isinstance(bag, type(self)) else bag).items():
setattr(self, key, value)

def __add__(self, other):
return GrabBag(self, other)

def __iadd__(self, other):
assert isinstance(other, (type(self), dict))
for key, value in (other.__dict__ if isinstance(other, type(self)) else other).items():
setattr(self, key, value)
return self
151 changes: 112 additions & 39 deletions start.ipynb

Large diffs are not rendered by default.

191 changes: 191 additions & 0 deletions twonodes.ipynb

Large diffs are not rendered by default.

0 comments on commit 577a54e

Please sign in to comment.