-
-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make core ferc1 asset names plural and rename exploded ferc1 assets #2914
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## rename-mcoe-assets #2914 +/- ##
==================================================
Coverage 88.5% 88.5%
==================================================
Files 90 90
Lines 10819 10821 +2
==================================================
+ Hits 9580 9582 +2
Misses 1239 1239
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pluralizing is fine, but I'm not 100% following the logic of which assets are getting pluralized - seems like there are at least a few that haven't been but could logically also be (e.g. summary vs summaries, cash flow vs cash flows).
There are a few other assets (e.g. calculation_components_xbrl_ferc1
, table_dimensions_xbrl_ferc1
) added by the explosion process in pudl.transform.ferc1
and pudl.output.ferc1
that should also get renamed, probably in this PR?
Otherwise fast ETL runs as expected.
@@ -223,7 +224,7 @@ Data Cleaning | |||
* Fixed column naming issues in the | |||
:ref:`core_ferc1__yearly_electric_operating_revenues` table. | |||
* Made minor calculation fixes in the metadata for | |||
:ref:`core_ferc1__yearly_income_statement`, | |||
:ref:`core_ferc1__yearly_income_statements`, | |||
:ref:`core_ferc1__yearly_utility_plant_summary`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plant_summaries
by this logic, or no?
@@ -97,7 +97,8 @@ Data Coverage | |||
:pr:`2134`. | |||
* :ref:`core_ferc1__yearly_depreciation_amortization_summary`, see issue :issue:`1816` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
depreciation_amortization_summaries
?
@@ -1037,7 +1037,10 @@ def exploded_table_asset_factory( | |||
} | |||
ins |= {table_name: AssetIn(table_name) for table_name in table_names_to_explode} | |||
|
|||
@asset(name=f"exploded_{root_table}", ins=ins, io_manager_key=io_manager_key) | |||
asset_group, asset_name = root_table.split("__") | |||
asset_name = f"{asset_group}__exploded_{asset_name}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is exploded
the asset type in this model? Seems like something might be missing here, possibly yearly
?
Closed in favor of #2995 |
PR Overview
This PR renames a few core ferc1 asset names to be plural (
core_ferc1__yearly_plants_hydro -> core_ferc1__yearly_hydro_plants
) plural and renames the exploded ferc1 output assets.PR Checklist
dev
).