Hi,
I am trying to calculate a setup with a self-created normalization set ('test') using Python. The end result should be a table containing the name of the product system, the impact category (Ozon depletion etc.), the value, the unit and the normalized value. All in seperate columns. Everything works except for the normalization. I do not know how to implement this correctly. Below you can see my code. Unfortunately, I cannot find an answer in the API documentation, I hope you can help. Thank you!
setup = olca.CalculationSetup()
setup.calculation_type = olca.CalculationType.UPSTREAM_ANALYSIS
setup.amount = 0.79
setup.impact_method = client.find(olca.ImpactMethod, 'EF 3.0 Method')
setup.nw_set = client.find(olca.NwSet, 'test')
result_correspoding_product_system = []
result_category_list =[]
result_value_list = []
result_unit_list = []
result_normalization_list = []
for ps in range(len(product_system_names)):
setup.product_system = client.find(olca.ProductSystem, product_system_names[ps])
calc_result = client.calculate(setup)
for i in range(len(calc_result.impact_results)):
result_correspoding_product_system.append(product_system_names[ps])
result_category_list.append(calc_result.impact_results[i].impact_category.name)
result_value_list.append(calc_result.impact_results[i].value)
result_unit_list.append(calc_result.impact_results[i].impact_category.ref_unit)
result_normalization_list.append(calc_result.impact_results[i].nw_set)
client.dispose(calc_result)
Hi,
I am trying to calculate a setup with a self-created normalization set ('test') using Python. The end result should be a table containing the name of the product system, the impact category (Ozon depletion etc.), the value, the unit and the normalized value. All in seperate columns. Everything works except for the normalization. I do not know how to implement this correctly. Below you can see my code. Unfortunately, I cannot find an answer in the API documentation, I hope you can help. Thank you!