0 votes
421 views
Dear openlca team,

I would like to get some help after a couple of hours spent on this issue.

I'm running openlca with the olca-ipc package, I would like to select the impact result values when running a Simple-Calculation type setup. Is it possible to extract only the impactResult values from a simple_calculation type setup in olca-ipc ?

Thanks in advance !
in openLCA by (140 points)

1 Answer

0 votes
by (5.3k points)

I'll assume you've at least gotten as far as generating the calc_setup. I think this is what you're looking for:

results=olca_client.calculate(calc_setup)
imp_results = olca_client.lcia(results)
    if imp_results is not None:
        for imp_result in imp_results:
            #imp_result.to_json get the info out of the impact_result type
            imp_result.to_json()
...