-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing expected flows in FEDEFL_INV #120
Comments
Yes, correct that should be False. The FEDEFL Inventory Methods create a set of inventory methods that only use a subset of flows. The logic for each indicator showing the list of flows included are available here: https://github.com/USEPA/fedelemflowlist/blob/master/fedelemflowlist/subset_list.py#L13-L21 If you want that flow metadata I would go to fedelemflowlist itself. And if you are writing flows to JSON, you can probably leverage the fedelemflowlist writing functions to do that automatically (let me look for the right functions...) |
Okay. Does the version of FEDELEM INV live on the fedelemflowlist repo? Cause I've only seen it here. |
e.g., this writes flow objects from a dataframe of flows: LCIAformatter/lciafmt/jsonld.py Lines 90 to 99 in b16f092
|
I'm already handling the writing of JSON-LD. I just to query for the missing metadata. Thanks for the snippet. I'll try to adapt from that. |
|
certainly up to you how to handle it - I've been trying to route flow writing through fedelemflowlist so that if metadata options change/expand I only have to change it in one spot. For example, until recently our LCIA methods did not include full flow metadata when they were written to JSON. |
Not exactly. Can I assume that LCIAformatter/lciafmt/data/methods.json Line 36 in b16f092
|
No it would use the latest version in fedelemflowlist (v1.2.4): Good point on that version number on the FEDEFL inventory method itself - I suppose that would change if we add/adjust the logic on what flows get included |
Working snippet using Python 3.11.7 and lciafmt v.1.1.3:
The output is false. Visual inspection confirms this. Is that right?
I just want a simple method to pull CAS Number, Formula, Synonyms for a flow in Federal Elementary Flow List to bulk up my flow metadata.
The text was updated successfully, but these errors were encountered: