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.
Overview
This PR fixes several issues that we identified in the
analysis.allocate_gen_fuel
module and had fixed in our fork of pudl for OGE. We are now trying to get rid of our dependency on the pudl code, so want to migrate all of our changes over to pudl so that we can directly use the output table from this module.This is part of work we are tracking in OGE here: singularity-energy/open-grid-emissions#369
First, this addresses an issue where some retiring generators were incorrectly identified and being dropped: singularity-energy#1
Second, this addresses issues with duplicate generators, as described in this PR: singularity-energy#3
Testing
We have successfully run this after importing pudl and running it in the OGE pipeline. However, we had previously been testing this with an older release of pudl (v2023.12.01).
I have a Windows machine so there are not great instructions on getting the pudl dev environment set up on Windows. This is a pretty small amount of code change, so I'm hoping that someone with the dev environment already set up may be able to help test this.
To-do list
test_minmax_rows()
)make pytest-coverage
(otherwise the merge queue may reject your PR)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 usingpytest
and--live-dbs
.make pytest-coverage
passes, ensure the full ETL runs locally and run data validation tests usingmake pytest-validate
(a ~10 hour run). If you can't run this locally, run thebuild-deploy-pudl
GitHub Action (or ask someone with permissions to). Then, check the logs on the#pudl-deployments
Slack channel orgs://builds.catalyst.coop
.