Skip to content

Commit

Permalink
Fixed so unit test passes
Browse files Browse the repository at this point in the history
  • Loading branch information
rogersbw committed Aug 27, 2024
1 parent b1acc80 commit 08d5193
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pip install git+[GITHUB LINK TO YOUR REPO]

To run it:
```bash
reichlab_python_template
jacques_flu
```

## Setup for local development
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dev = [
]

[project.entry-points."console_scripts"]
reichlab_python_template = "jacques_flu.app:main"
jacques_flu = "jacques_flu.app:main"

[build-system]
# Minimum requirements for the build system to execute.
Expand Down
6 changes: 2 additions & 4 deletions src/jacques_flu/app.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import structlog

from reichlab_python_template.util.date import get_current_date
from reichlab_python_template.util.logs import setup_logging
from jacques_flu.util.date import get_current_date
from jacques_flu.util.logs import setup_logging

setup_logging()
logger = structlog.get_logger()
Expand All @@ -18,5 +18,3 @@ def main():

if __name__ == "__main__":
main()


14 changes: 14 additions & 0 deletions src/jacques_flu/jacques_flu_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@
" select(['location', 'source', 'wk_end_date', 'inc_trans_cs'])).to_pandas()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": []
},
{
"cell_type": "code",
"execution_count": 9,
Expand Down Expand Up @@ -124,6 +129,15 @@
"source": [
"state_dat.head()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Featurizing the Data\n",
"\n",
"We make use of the `timeseriesutils` module to featurize the data"
]
}
],
"metadata": {
Expand Down
4 changes: 2 additions & 2 deletions src/jacques_flu/util/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

import structlog

import reichlab_python_template
import jacques_flu


def add_custom_info(logger, method_name, event_dict):
event_dict["version"] = reichlab_python_template.__version__
event_dict["version"] = jacques_flu.__version__
return event_dict


Expand Down
2 changes: 1 addition & 1 deletion tests/jacques_flu/test_app.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from freezegun import freeze_time
from reichlab_python_template.app import main
from jacques_flu.app import main


@freeze_time("2019-07-13")
Expand Down
2 changes: 1 addition & 1 deletion tests/jacques_flu/unit/util/test_date.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Unit tests for the date module."""

from freezegun import freeze_time
from reichlab_python_template.util.date import get_current_date
from jacques_flu.util.date import get_current_date


@freeze_time("2024-01-02")
Expand Down

0 comments on commit 08d5193

Please sign in to comment.