Closed dt-woods closed 9 months ago
Thanks, just discovered this in some other packages as well (e.g., https://github.com/USEPA/LCIAformatter/issues/94). Appears to be a change on EPA's side. Should have a resolution shortly and will report back here.
This has been resolved on esupy (develop) https://github.com/USEPA/esupy/commit/b481e35262c9387c2e14ddcc8fa114dafe1c641d
Confirmed success in running eGRID on StEWI develop branch: https://github.com/USEPA/standardizedinventories/actions/runs/6148344684/job/16681846069
This issue will be closed when esupy has been updated on main.
I appreciate the update. Any idea on when the next scheduled revision is to be published?
I appreciate the update. Any idea on when the next scheduled revision is to be published?
Do you mean the next release of esupy? v0.3.1 with the fix is now available.
Here's my minimal working example:
So I did some digging.
getInventory
method raises more questions.f = ensure_format(stewiformat)
sets the subdirectory to "flowbyfacility"meta = set_stewi_meta(file_name, str(f))
creates a class withext
attribute set toWRITE_FORMAT
(i.e., parquet); this extension is used in esupy'sfind_file
, which obviously failsread_inventory
is called (globals.py)generate_inventory
is calleddownload_egrid
, which defines the output folder topaths.local_path
/ 'eGRID Data Files'make_url_request
, which failsgenerate_metadata
is run creating a JSON in 'eGRID Data Files'generate_eGRID_files
andgenerate_metadata
again, which appears to create the parquet filesgetInventory
works!generate_metadata
andgenerate_eGRID_files
:(https://github.com/USEPA/standardizedinventories/blob/39b96003865dd261ead51d7e807b190266b0058b/stewi/__init__.py#L63