Closed shirubana closed 1 year ago
@shirubana,
OpenLCA -- v1.1.10
Sorry not sure what do you mean by fixure
A fixture can be a the set of data or variable values that help you test something 👉https://en.wikipedia.org/wiki/Test_fixture#Software 🤓 Your previous comment does add what I suppose is necessary to be able to reproduce the bug and be able to find solutions.
Issue closed during cleanup for Brightcon 2023
Wanted to suggest maybe a Hackaton topic in case it gets traction/interest, but will be happy to work on anything there and learn some mroe.
Describe the Major Goal OpenLCA allows multiple exchange outputs (BW lingo: multiple productions) in a process beyond their main technosphere flow one (openLCA lingo: quantitative reference, LCA lingo: reference flow. BW lingo: production)
If these outputs are of the category 'technosphere', when they get imported into BW, they are imported into multiple processes with single productions each.
If these outputs are of the category 'waste', they get imported into BW as multiple productions. This causes issues when attempting to run bc.lci() because the matrix is not square
Expected behavior When importing, identify 'waste' exchange outputs, and save as multiple processes with single product.
To Reproduce
Screenshots![image](https://user-images.githubusercontent.com/22824806/191860244-8a6ccb60-e36e-4882-b053-5249d3134cb6.png)
Versions: Some updates for getting to this point on importing the JSON in bw2data and bw2io bw2data:
-BW requires to have a location and if the JSON has a "None" it fails. When running the calculations, it would throw an error otherwise.
bw2io:
-Failed allocation when trying to do one of the strategies.
-Bug that only allowed Waste flows to be outputs; when Waste flows are inputs it allows them to be a technosphere input.
-allow bw2io>strategies>special.py to identify dummy processes by exchanges that don't have inputs or amounts which is the new way that USLCI is handling it. Old way (with "dummy" in the name is commented out.
![image](https://user-images.githubusercontent.com/22824806/191862124-d30b0067-6632-4c2f-a3a1-f0d891ccada8.png)
Other "minor" things to address [ ] units for flows do not get imported. They are present in exchanges though. [ ] if bw2data.projects.set_current runs twice, score is 0 as a result. [ ] regionalization is not working because codes don't match the mapping for brightways.
Goals for contribution