Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
data_pipeline script. Options:
--year
--gtn_years
how many years to calc GTN ratio--small
filters out 95% of plants so pipeline runs faster (testing only)Note: --small makes the run faster, but because the filter currently occurs after
data_cleaning.clean_cems(year)
, it still takes 10+ minutes. If it were faster, we could run it in a commit hook to guarantee that data_cleaning is always functional. To make this possible, we would need to enable filtering indata_cleaning.clean_cems(year)
or create a smaller testing version of all the data sources indata/downloads
Add column checks for files created in data_pipeline.
Note: files created outside data_pipeline, including residual profiles, GTN ratios, and subplant mappings, are not checked currently. We can add checks for these if they become outputs whose contents we want to guarantee
Move residual-related calculations to
residual.py
Note on code structure: Currently all data paths are hardcoded to assume a working directory within
src
(eg../data/downloads/x
. Eventually, we should move this into a variable that can be set, allowing us to treat the code insrc
as a package and movedata_pipeline.py
outside ofsrc
, to treat it as a script calling a package.