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

Add geographical information to the plant static attributes data frame #364

Closed rouille closed 1 month ago

rouille commented 1 month ago

Purpose

Add the following fields to the plant static attributes: "latitude", "longitude", "county", "city", "zip_code", "street_address" and "capacity_mw". Closes CAR-4208.

Add missing typehints and add/format docstrings in modules that were edited.

What the code is doing

Testing

Successfully ran the 2010 pipeline.

Where to look

The oge.load_data module where the new function load the geographical information from the raw EIA-860 and the oge.helpers module where fields to the plant static attributes data frame are added.

Usage Example/Visuals

Screen shot of the exported 2010 plant static attributes table

Screenshot 2024-05-21 at 1 25 23 AM

Review estimate

15min

Future work

CAR-4205

Checklist

rouille commented 1 month ago

I'm going to go ahead and approve assuming that you will be making the changes discussed in the previous review just so I don't hold up your progress.

Thanks. I launched the pipeline overnight to make sure the changes did not break it. Il will check the result when I am at my desk and commit my changes if it looks good.