Skip to content

Updates for ELCI2023 + other minor bug fixes#15

Merged
frankhanna94 merged 2 commits intoKeyLogicLCA:developmentfrom
frankhanna94:development
Oct 14, 2025
Merged

Updates for ELCI2023 + other minor bug fixes#15
frankhanna94 merged 2 commits intoKeyLogicLCA:developmentfrom
frankhanna94:development

Conversation

@frankhanna94
Copy link

1- Updated egrid_facilities.py to account for the fuel category column name in new StEWI data.
2022 and earlier data had a column called 'Plant primary coal/oil/gas/ other fossil fuel category' containing 'Fuel Category' information. Fuel category in new StEWI data falls under 'Plant primary fuel category' column. Changes were made in the code to extract this info in ELCI2023 config.

2- Updated eia_trans_dist_grid_loss.py to account for new link format for 2023 EIA data: both url_a (archive data) and 'url_b' don't work for 2023 data. url_b ended up downloaded 2022 data and failing on new hampshire. i added a new url format that works for 2023 data.

- updated egrid_facilities.py to account for FuelCategory column name
in new stewi data
- updated eia_trans_dist_grid_loss.py to account for new link format
for 2023 data
@frankhanna94 frankhanna94 requested a review from dt-woods October 9, 2025 19:29
Updated parameter type for 'year' to accept both string and integer. Added type check to convert 'year' to string if passed as an integer. Adjusted DataFrame selection to use double brackets for consistency.
Copy link
Author

@frankhanna94 frankhanna94 left a comment

Choose a reason for hiding this comment

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

reviewed changes with TWD

@frankhanna94 frankhanna94 merged commit f849bb4 into KeyLogicLCA:development Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant