Skip to content

Migrate eia930 metadata #4420

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Migrate eia930 metadata #4420

wants to merge 7 commits into from

Conversation

aesharpe
Copy link
Member

@aesharpe aesharpe commented Jul 15, 2025

Overview

What problem does this address?

Migrates the metadata for EIA930 tables into the new metadata format

What did you change?

table description metadata in pudl/metadata/resources/eia930.py

Documentation

Make sure to update relevant aspects of the documentation:

  • Update the release notes: reference the PR and related issues.
  • Update relevant Data Source jinja templates (see docs/data_sources/templates).
  • Update relevant table or source description metadata (see src/metadata).
  • Review and update any other aspects of the documentation that might be affected by this PR.

Testing

How did you make sure this worked? How can a reviewer verify this?

To-do list

  • If updating analyses or data processing functions: make sure to update row count expectations in dbt tests.
  • Run make pytest-coverage locally to ensure that the merge queue will accept your PR.
  • Review the PR yourself and call out any questions or issues you have.
  • For minor ETL changes or data additions, once make pytest-coverage passes, make sure you have a fresh full PUDL DB downloaded locally, materialize new/changed assets and all their downstream assets and run relevant data validation tests using pytest and --live-dbs.
  • For bigger ETL or data changes run the full ETL locally and then run the data validations using make pytest-validate.
  • Alternatively, run the build-deploy-pudl GitHub Action manually.

@aesharpe aesharpe self-assigned this Jul 15, 2025
@aesharpe aesharpe added docs Documentation for users and contributors. eia930 Related to the EIA Form 930 metadata Anything having to do with the content, formatting, or storage of metadata. Mostly datapackages. labels Jul 15, 2025
@aesharpe aesharpe marked this pull request as ready for review July 15, 2025 17:40
Base automatically changed from metadata-table-name-based to main July 15, 2025 20:10
@aesharpe aesharpe moved this from New to In review in Catalyst Megaproject Jul 15, 2025
@krivard krivard self-requested a review July 21, 2025 18:41
@krivard krivard force-pushed the migrate-eia930-metadata branch from 0138cc7 to a3cb7ef Compare July 22, 2025 13:03
Copy link
Contributor

@krivard krivard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking: one date change we should make sure is intentional, but I trust you and don't need to review again to approve.

Remaining comments are nonblocking.

There are three experimental tables in this PR alone; is that enough to add a built-in warning to use in all three places? Could be a quick/easy followup.

Comment on lines +59 to +60
In theory, the sum of net generation across all energy sources should equal the total net generation reported in the balancing authority operations table. In practice,
there are many cases in which these values diverge significantly, which require further investigation.""",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd throw in a known_discrepancies Usage Warning for this to make it more likely people will look for and see this text

"""EXPERIMENTAL / WORK-IN-PROGRESS, 2025-04-04.
"description": {
"additional_summary_text": "balancing authority net generation, interchange, and demand with imputed demand.",
"additional_details_text": """(EXPERIMENTAL / WORK-IN-PROGRESS, 2025-03-31)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Date change on purpose or accident?

vetted yet."""
),
This table is based on ``core_eia930__hourly_operations``, but adds imputed demand where the original data was missing or anomalous. Codes explaining why values have been imputed can be found in the ``core_pudl__codes_imputation_reasons`` table.""",
"usage_warnings": ["imputed_values"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good use of imputed_values here.

Comment on lines -165 to -166
This table is available in the nightly builds during development, but has not been fully
vetted yet."""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't feel great about removing this text. Is the idea that it's already covered by the EXPERIMENTAL header on additional details?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation for users and contributors. eia930 Related to the EIA Form 930 metadata Anything having to do with the content, formatting, or storage of metadata. Mostly datapackages.
Projects
Status: In review
Development

Successfully merging this pull request may close these issues.

Migrate resource description metadata for eia930 (7 tables, 564 words)
2 participants