Skip to content

Commit

Permalink
add poetry package env simple, incomplete; edit README
Browse files Browse the repository at this point in the history
  • Loading branch information
AFg6K7h4fhy2 committed Aug 26, 2024
1 parent a4222e9 commit fc58b6a
Show file tree
Hide file tree
Showing 17 changed files with 33 additions and 3 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@

_`pyrenew-flu-light` is an instantiation of an [Epidemia](https://imperialcollegelondon.github.io/epidemia/) influenza forecasting model in [PyRenew](https://github.com/CDCgov/PyRenew)._

NOTE: Presently, this `pyrenew-flu-light` cannot be installed and used with current NHSN, as its author is validating it on historical influenza data, which is .
NOTE: Presently, this `pyrenew-flu-light` cannot be installed and used with current NHSN, as its author is validating it on historical influenza data.

Run command typically used:

```
poetry run python tut_epim_port_msr.py --reporting_date 2024-01-20 --regions NY --historical --forecast
python3 tut_epim_port_msr.py --reporting_date 2024-01-20 --regions NY --historical --forecast
```

## ...Contained Within This Repository

Expand Down
22 changes: 22 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[tool.poetry]
name = "pyrenew-flu-light"
version = "0.0.1"
description = "An instantiation of an Epidemia influenza forecasting model in PyRenew."
authors = ["CFA"]
license = "Apache-2.0"
readme = "README.md"
packages = [{include = "pyrenew_flu_light"}]


[tool.poetry.dependencies]
python = "^3.11"
polars = "^1.5.0"
numpyro = "^0.15.2"
arviz = "^0.19.0"

[tool.poetry.group.dev.dependencies]
rpy2 = "^3.5.16"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def ensure_output_directory(args: dict[str, any]): # numpydoc ignore=GL08
def assert_historical_data_files_exist(
reporting_date: str,
): # numpydoc ignore=GL08
data_directory = f"../../data/{reporting_date}/"
data_directory = f"../data/{reporting_date}/"
assert os.path.exists(
data_directory
), f"Data directory {data_directory} does not exist."
Expand Down Expand Up @@ -1744,7 +1744,7 @@ def main(args): # numpydoc ignore=GL08

# load historical configuration file (modified from cfaepim)
config = load_config(
config_path=f"../../config/params_{args.reporting_date}_historical.toml"
config_path=f"../config/params_{args.reporting_date}_historical.toml"
)
logging.info("Configuration (historical) loaded.")

Expand Down
Empty file removed src/model/__init__.py
Empty file.
Empty file removed src/utils/__init__.py
Empty file.

0 comments on commit fc58b6a

Please sign in to comment.