singularity-energy / open-grid-emissions

Tools for producing high-quality hourly generation and emissions data for U.S. electric grids
MIT License
67 stars 4 forks source link

Get EIA-860 data from latest validated year #355

Closed grgmiller closed 2 months ago

grgmiller commented 2 months ago

Purpose

In https://github.com/singularity-energy/open-grid-emissions/pull/353, we required that the subplant identification code load raw EIA-860 data from the latest validated year (2022). However, if running the pipeline for the first time for any year other than the latest validated year, this would lead to an error, since that file is not downloaded. This PR adds code to download the EIA-860 file for the latest validated year.

Fixed CAR-3907

What the code is doing

See data_pipeline.py

Testing

Ran the download part of the data pipeline for 2019.

Where to look

See data_pipeline.py

Usage Example/Visuals

image

Review estimate

1 min

Future work

What issues were identified that are not being addressed in this PR but should be addressed in future work?

Checklist