-
Notifications
You must be signed in to change notification settings - Fork 13
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
Unexpected mis-matched flows in eLCI.csv #274
Comments
Can you remind me where this is done in the code? I think it could make more sense to pull out the flows in the dataframe which are already in the FEDEFL or have UUID's and only map the remaining? rather than change the mapping file to try to map flows to itself |
Starts on L232 in the current development branch of combinator.py's concat_map_upstream_databases method: This basically throws away all non-mapped flows, including those already mapped because they're not in the target list. Your solution seems practical. |
Another option would be to use esupy's Though seems reasonable to add to that function another parameter to ignore existing FEDEFL before mapping, much like I suggest above. |
@dt-woods - any tips on the setup to be able to get to a place to test this? I am trying to run: but get a This is on KeyLogic dev branch ETA: nevermind I needed to remove old f923 downloads |
Because of how the flow names were adjusted (made lowercase) and contexts were added, but FEDEFL UUIDs were not maintained, I determined this solution above is not possible at this time. In the future it would be good to revisit when and how different input files are integrated and mapped. |
In the latest eLCI model inventories (e.g., solar, solarthermal, wind), emissions are already mapped to the FEDEFL, which is causing our flow mapping to fail. For example, '1,3-Butadiene' does not match any source flows in eLCI, but matches a target flow.
https://github.com/USEPA/fedelemflowlist/blob/7f2550a383a026ade3d23c8b0e3f6d1ba411bdd3/fedelemflowlist/flowmapping/eLCI.csv#L1206
The result is that mapped flows are being dropped from our inventories.
It would be nice if all the mapped FEDEFL flows were also listed in the sources (i.e., no change; map to itself). If there is an alternative recommendation to updating the CSV, I'm happy to take suggestions.
The text was updated successfully, but these errors were encountered: