Brightway2 - Get LCA scores of immediate exchanges

后端 未结 2 826
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-27 08:40

I\'m having some problems regarding the post-processing analysis of my LCA results from brightway2. After running a LCA calculation, if, for example, I type top_activities() I g

2条回答
  •  借酒劲吻你
    2021-01-27 09:03

    It is pretty easy to traverse the supply chain manually, and everyone wants to do this a slightly different way, so it isn't built in to Brightway yet. Here is a simple example:

    from brightway2 import *
    
    func_unit = Database("ecoinvent 3.4 cutoff").random()
    
    lca = LCA({func_unit: 1}, methods.random())
    lca.lci()
    lca.lcia()
    
    print(func_unit)
    
    for exc in func_unit.technosphere():
        lca.redo_lcia({exc.input: exc['amount']})
        print(exc.input, exc['amount'], lca.score)
    

提交回复
热议问题