USEPA / ElectricityLCI

Creative Commons Zero v1.0 Universal
24 stars 10 forks source link

Error generating zip file #199

Open balzubair opened 1 year ago

balzubair commented 1 year ago

I'm having an issue in generating the zip file for openLCA. I don't have any experience with python but managed to make my way until the end, where I am asked which model number to use. I've tried all models but received the same error message at the end "KeyError: 'coalmine_msha_id'."

Screen Shot 2023-05-24 at 12 03 59 PM

I'd appreciate any help as this is so foreign to me. Thanks!

m-jamieson commented 1 year ago

This isn't a direct answer to your question, but if you're truly just interested in obtaining the openLCA json-ld zip file from running ELCI_1 - you could get the pre-packaged version from the Federal LCA Commons: https://www.lcacommons.gov/lca-collaboration/Federal_LCA_Commons/US_electricity_baseline/datasets

In the meantime, I'm guessing that something weird is happening in translating the column names from the EIA 923 excel file. II think to troubleshoot I'd have to try running it myself using pythong 3.1 and some new version of pandas.

balzubair commented 1 year ago

@m-jamieson Thanks for your response. I'll check it out.

Ultimately, I was interested in getting more recent (2022 or even 2023) LCI results for US electricity than the 2016 baseline. Do you know if that's available?

m-jamieson commented 1 year ago

Your best chance at generating something new will be using the development branch. I've been working to reduce the dependencies on eGRID there that will limit the master branch code. I haven't tested it on anything past 2020 though. There have also been some recent changes with how EIA provides data that might cause some things to break as well - particularly at generating the consumption mixes.