Closed ntropy-esa closed 3 years ago
Thanks for this !
I think I will add some tests in the code for basic non-regression checks. Currently I have one script only checking that the example Notebook runs well.
I will integrate this use case as one of the tests. I will merge it once I do this.
Brightway2 activities can have exchanges of type "production" to refer to the products they produce. It's often associated with tag for "reference product" e.g. in the activity browser.
When an activity has several exchanges of type "production" it means that the activity is producing several products, the reference ones, and others defined in another activity.
bw2 LCA calculations supports this, and performs substitutions on the co-products, as long as the database / technosphere matrix is well-defined (i.e. square)
For lca_algebraic to support this, in the graph traversal, we need to check if the exchange is of type production and not referring to the current activity.
Use case:
with bw2 function
with lca_algebraic function
Now yield the same results.