ElectricityLCI icon indicating copy to clipboard operation
ElectricityLCI copied to clipboard

Error generating zip file

Open balzubair opened this issue 1 year ago • 3 comments

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!

balzubair avatar May 24 '23 16:05 balzubair

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.

m-jamieson avatar May 25 '23 19:05 m-jamieson

@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?

balzubair avatar May 25 '23 22:05 balzubair

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.

m-jamieson avatar May 26 '23 15:05 m-jamieson