mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-14 06:44:19 -07:00
Issue 1827: Add demographics to tiles and download files (#1833)
* Adding demographics for use in sidebar and download files
This commit is contained in:
parent
e6385c172f
commit
4bf7773797
13 changed files with 304 additions and 46 deletions
|
@ -350,7 +350,8 @@ We have four pickle files that correspond to expected files:
|
|||
|
||||
To update the pickles, let's go one by one:
|
||||
|
||||
For the `score_transformed_expected.pkl`, put a breakpoint on [this line](https://github.com/usds/justice40-tool/blob/main/data/data-pipeline/data_pipeline/etl/score/tests/test_score_post.py#L58), before the `pdt.assert_frame_equal` and run:
|
||||
For the `score_transformed_expected.pkl`, put a breakpoint on [this line]
|
||||
(https://github.com/usds/justice40-tool/blob/main/data/data-pipeline/data_pipeline/etl/score/tests/test_score_post.py#L62), before the `pdt.assert_frame_equal` and run:
|
||||
`pytest data_pipeline/etl/score/tests/test_score_post.py::test_transform_score`
|
||||
|
||||
Once on the breakpoint, capture the df to a pickle as follows:
|
||||
|
@ -378,7 +379,8 @@ score_data_actual.to_pickle(data_path / "data_pipeline" / "etl" / "score" / "tes
|
|||
|
||||
Then take out the breakpoint and re-run the test: `pytest data_pipeline/etl/score/tests/test_score_post.py::test_create_score_data`
|
||||
|
||||
For the `tile_data_expected.pkl`, put a breakpoint on [this line](https://github.com/usds/justice40-tool/blob/main/data/data-pipeline/data_pipeline/etl/score/tests/test_score_post.py#L86), before the `pdt.assert_frame_equal` and run:
|
||||
For the `tile_data_expected.pkl`, put a breakpoint on [this line](https://github
|
||||
.com/usds/justice40-tool/blob/main/data/data-pipeline/data_pipeline/etl/score/tests/test_score_post.py#L90), before the `pdt.assert_frame_equal` and run:
|
||||
`pytest data_pipeline/etl/score/tests/test_score_post.py::test_create_tile_data`
|
||||
|
||||
Once on the breakpoint, capture the df to a pickle as follows:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue