Skip to content

Commit

Permalink
Archiving the project (#192)
Browse files Browse the repository at this point in the history
* Adding gitattributes file

* Updating gitattributes

* Adding the artifact

* Adding all 51 artifacts, updates to Readme and model specs

* Updating artifact files

* Reverting to old artifacts, editing files to have 3 example states

* Returning to Jim's new files since Steve fixed the vivarium function

* update vph pin

* Update README.rst to include model spec file name

* Update .zenodo.json with author information

* Update README.rst to include artifact path on the command line

* Commenting out the artifact path in model spec 

Since its now in the command line call instead

* Update setup.py to include ==

Co-authored-by: Rajan Mudambi <[email protected]>

* Update .zenodo.json to include Matt and Kjell

---------

Co-authored-by: Sylvia Lutze <[email protected]>
Co-authored-by: Sylvia Lutze <[email protected]>
Co-authored-by: Sylvia Lutze <[email protected]>
Co-authored-by: Sylvia Lutze <[email protected]>
Co-authored-by: Steve Bachmeier <[email protected]>
Co-authored-by: Rajan Mudambi <[email protected]>
  • Loading branch information
7 people authored Feb 16, 2024
1 parent fbc7031 commit 2c981cb
Show file tree
Hide file tree
Showing 57 changed files with 214 additions and 25 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.hdf filter=lfs diff=lfs merge=lfs -text
**/*.hdf filter=lfs diff=lfs merge=lfs -text
52 changes: 46 additions & 6 deletions .zenodo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,52 @@
"title": "ihmeuw/vivarium_nih_us_cvd: Archival release",
"upload_type": "software",
"creators": [
// {
// "orcid": "0000-0000-0000-0000",
// "affiliation": "Institute for Health Metrics and Evaluation",
// "name": "TODO: Add authors names, affiliation, and orcid (if applicable) to `creators` array"
// }
{
"orcid": "0000-0001-8649-7561",
"affiliation": "Institute for Health Metrics and Evaluation",
"name": "Rajan Mudambi"
},
{
"orcid": "0009-0004-6649-7010",
"affiliation": "Institute for Health Metrics and Evaluation",
"name": "Steve Bachmeier"
},
{
"orcid": "0000-0002-7556-2740",
"affiliation": "Institute for Health Metrics and Evaluation",
"name": "Hussain Jafari"
},
{
"orcid": "0000-0003-0778-295X",
"affiliation": "Institute for Health Metrics and Evaluation",
"name": "Kjell Swedin"
},
{
"orcid": "0000-0003-2430-5661",
"affiliation": "Institute for Health Metrics and Evaluation",
"name": "Matthew Kappel"
},
{
"orcid": "0009-0005-7858-0222",
"affiliation": "Institute for Health Metrics and Evaluation",
"name": "Sylvia Lutze"
},
{
"orcid": "0000-0003-1585-5100",
"affiliation": "Institute for Health Metrics and Evaluation",
"name": "Alison Bowman"
},
{
"orcid": "0009-0009-3789-5382",
"affiliation": "Institute for Health Metrics and Evaluation",
"name": "Caroline Kinuthia"
},
{
"orcid": "0000-0001-6033-4713",
"affiliation": "Institute for Health Metrics and Evaluation",
"name": "Abraham Flaxman"
}
],
"access_right": "open",
"description": "<p>TODO: add description (e.g., Archival release of simulation software.)</p>"
}
}
22 changes: 8 additions & 14 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,22 +103,16 @@ You'll find six directories inside the main
Running Simulations
-------------------

With your conda environment active, the first step to running simulations
is making the model specification files. A model specification is a
complete description of a vivarium model. The command to generate model
specifications is installed with this repository and it can be run
from any directory.::
You can run your simulation from the command line.
With your conda environment active, you can run with, e.g.::

(vivarium_nih_us_cvd) :~$ make_specs -v
2020-06-18 18:18:28.311 | 0:00:00.679701 | build_model_specifications:48 - Writing model spec(s) to "/REPO_INSTALLATION_DIRECTORY/vivarium_nih_us_cvd/src/vivarium_nih_us_cvd/model_specifications"
(vivarium_nih_us_cvd) :~$ simulate run -vvv /<REPO_INSTALLATION_DIRECTORY>/vivarium_nih_us_cvd/src/vivarium_nih_us_cvd/model_specifications/nih_us_cvd.yaml -o /FILE/PATH/TO/SAVE/RESULTS -i src/vivarium_nih_us_cvd/artifacts/<STATE_NAME>.hdf

As the log message indicates, the model specifications will be written to
the ``model_specifications`` subdirectory in this repository. You can then
run simulations by, e.g.::
The simulation will run in one location at a time, enter the state you wish to
run the simulation for in your call. The state name should be in lower case with
an underscore between words. For example 'alabama', 'new_jersey' and 'district_of_columbia'.

(vivarium_nih_us_cvd) :~$ simulate run -v /<REPO_INSTALLATION_DIRECTORY>/vivarium_nih_us_cvd/src/vivarium_nih_us_cvd/model_specifications/china.yaml

The ``-v`` flag will log verbosely, so you will get log messages every time
The ``-vvv`` flag will log verbosely, so you will get log messages every time
step. For more ways to run simulations, see the tutorials at
https://vivarium.readthedocs.io/en/latest/tutorials/running_a_simulation/index.html
and https://vivarium.readthedocs.io/en/latest/tutorials/exploration.html
and https://vivarium.readthedocs.io/en/latest/tutorials/exploration.html
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
install_requirements = [
"gbd_mapping>=3.1.0, <4.0.0",
"vivarium>=2.1.1",
"vivarium_public_health>=2.0.0",
"vivarium_public_health==2.2.0",
"click",
"jinja2",
"loguru",
Expand Down
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/alabama.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/alaska.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/arizona.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/arkansas.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/california.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/colorado.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/connecticut.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/delaware.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/district_of_columbia.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/florida.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/georgia.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/hawaii.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/idaho.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/illinois.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/indiana.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/iowa.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/kansas.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/kentucky.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/louisiana.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/maine.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/maryland.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/massachusetts.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/michigan.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/minnesota.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/mississippi.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/missouri.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/montana.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/nebraska.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/nevada.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/new_hampshire.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/new_jersey.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/new_mexico.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/new_york.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/north_carolina.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/north_dakota.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/ohio.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/oklahoma.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/oregon.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/pennsylvania.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/rhode_island.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/south_carolina.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/south_dakota.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/tennessee.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/texas.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/utah.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/vermont.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/virginia.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/washington.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/west_virginia.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/wisconsin.hdf
Git LFS file not shown
3 changes: 3 additions & 0 deletions src/vivarium_nih_us_cvd/artifacts/wyoming.hdf
Git LFS file not shown
2 changes: 1 addition & 1 deletion src/vivarium_nih_us_cvd/constants/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
BASE_DIR = Path(vivarium_nih_us_cvd.__file__).resolve().parent
BASE_OUTPUT_DIR = Path("/mnt/team/simulation_science/pub/models/")

ARTIFACT_ROOT = BASE_OUTPUT_DIR / metadata.PROJECT_NAME / "artifacts"
ARTIFACT_ROOT = BASE_DIR / "artifacts"
DATA_ROOT = BASE_DIR / "data"

CAUSE_RISK_CONFIG = BASE_DIR / "components" / "causes" / "causes.yaml"
Expand Down
6 changes: 3 additions & 3 deletions src/vivarium_nih_us_cvd/model_specifications/nih_us_cvd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ components:


configuration:
# input_data:
# input_draw_number: 0
# artifact_path: '/mnt/team/simulation_science/pub/models/vivarium_nih_us_cvd/artifacts/51-locations/v3-20231019/alabama.hdf'
input_data:
input_draw_number: 0
#artifact_path: '../artifacts/alabama.hdf'
interpolation:
order: 0
extrapolate: True
Expand Down

0 comments on commit 2c981cb

Please sign in to comment.