-
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make an EIA860m Changelog table (#3331)
* first draft of all eia860m extraction * first draft of transform process: runs through existing 860 transform does not do changelog yet * simplify replaces in tranform and add changelog dropdupes * first pass of adding full transform for eia860 and schema * Fix bad monthly expand_timeseries * [pre-commit.ci] auto fixes from pre-commit.com hooks For more information, see https://pre-commit.ci * clean up settings and add alembic migration * fix the settings grabbing in eia860 settings with new eia860m setup * Convert 860m table into db table * make a new 860m settings class, dont pass in report_date for 860, & use the right table name * remove FK relationships to the changelog table and make expand_timeseries have a dec unit test * change eia86m io manager to our cool new db + parquet manager * add docs and fix b4by missp3lls and change tbl name * add migration and update fast 860m month post new 860m integration * alembic migrations * [pre-commit.ci] auto fixes from pre-commit.com hooks For more information, see https://pre-commit.ci * Fix the working partitions in settings and helpers * Fix settings partitions and be better about selecting 860m only columns * Update nightly build script to distribute parquet (#3399) * Update nightly build script to distribute parquet * Fix logging cut-and-paste error * Name parquet distribution success variable like all the others * [pre-commit.ci] auto fixes from pre-commit.com hooks For more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Zane Selvans <zane.selvans@catalyst.coop>
- Loading branch information
1 parent
9d40b68
commit 6278781
Showing
21 changed files
with
464 additions
and
190 deletions.
There are no files selected for viewing
76 changes: 57 additions & 19 deletions
76
...617469_wipe_alembic_migrations_due_to_.py → ...s/versions/9dfb4295511e_wipe_and_reset.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
"""Definitions of data tables primarily coming from EIA-860m.""" | ||
from typing import Any | ||
|
||
RESOURCE_METADATA: dict[str, dict[str, Any]] = { | ||
"core_eia860m__changelog_generators": { | ||
"description": ( | ||
"This table is a changelog of the monthly reported EIA-860m data. EIA-860m " | ||
"includes generator tables with the most up-to-date catalogue of EIA " | ||
"generators and their operational status and other generator characteristics. " | ||
"EIA-860m is reported monthly, although for the vast majority of the generators " | ||
"nothing changes month-to-month. This table is a changelog of that monthly " | ||
"reported generator data. There is a record cooresponding to the first instance " | ||
"of a generator and associated characteristics with a report_date column and a " | ||
"valid_till_date column. Whenever any of the reported EIA-860m data was changed " | ||
"for a record, there will be a new changelog record with a new report_date." | ||
), | ||
"schema": { | ||
"fields": [ | ||
"report_date", | ||
"valid_till_date", | ||
"plant_id_eia", | ||
"plant_name_eia", | ||
"utility_id_eia", | ||
"utility_name_eia", | ||
"generator_id", | ||
"capacity_mw", | ||
"county", | ||
"current_planned_generator_operating_date", | ||
"data_maturity", | ||
"energy_source_code_1", | ||
"energy_storage_capacity_mwh", | ||
"fuel_type_code_pudl", | ||
"generator_retirement_date", | ||
"latitude", | ||
"longitude", | ||
"net_capacity_mwdc", | ||
"operational_status", | ||
"operational_status_code", | ||
"planned_derate_date", | ||
"planned_generator_retirement_date", | ||
"planned_net_summer_capacity_derate_mw", | ||
"planned_net_summer_capacity_uprate_mw", | ||
"planned_uprate_date", | ||
"prime_mover_code", | ||
"state", | ||
"summer_capacity_mw", | ||
"technology_description", | ||
"winter_capacity_mw", | ||
], | ||
"primary_key": ["plant_id_eia", "generator_id", "report_date"], | ||
}, | ||
"field_namespace": "eia", | ||
"sources": ["eia860"], | ||
"etl_group": "eia860", | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.