0 votes
47 views

Dear all,

again it´s me. still at the hunt for units...

In my model I need masses, energies and items.

mass_flow_property=client.get(schema.FlowProperty, name="Mass") # unit Mass
energy_flow_property=client.get(schema.FlowProperty,name="Energy") # unit energy
item_flow_property=client.get(schema.FlowProperty,name="Items") # unit items
print(mass_flow_property)
print(item_flow_property)

This code leads to the following error messages:

WARNING:root:failed to get entity of type <class 'olca_schema.schema.FlowProperty'>: 404: resource not found

FlowProperty(id='93a60a56-a3c8-11da-a746-0800200b9a66', category='Technical flow properties', description=None, flow_property_type=<FlowPropertyType.PHYSICAL_QUANTITY: 'PHYSICAL_QUANTITY'>, last_change='2024-11-29T10:39:13.667072Z', name='Mass', tags=None, unit_group=Ref(id='93a60a57-a4c8-11da-a746-0800200c9a66', category='Technical unit groups', description=None, flow_type=None, location=None, name='Units of mass', process_type=None, ref_unit=None, ref_type=<RefType.UnitGroup: 'UnitGroup'>), version='00.00.000')

None

Due to the printout it seems that the first error message belongs to the Item_flow_property, which cannot be generated since the Item group was not found (I tried this with the UUID too..). Can anybody help me on that? My combination is OpenLCA 2.3 and ecoinvent 3.9.

Kind regards, Dieter

in openLCA by (700 points)

1 Answer

+1 vote
by (7.0k points)
selected by
 
Best answer

Hi Dieter,

Could you double-check that the flow property is named Items? The default name from openLCA reference data would be Number of items.

Also, when using the UUID, make sure to remove name=. For example:

item_flow_property = client.get(schema.FlowProperty, "01846770-4cfe-4a25-8ad9-919d8d378345")

Regards,

François

by (700 points)
Thanks, "Number of items" worked but not the UUID (I tried it in the right way before) :) moving now to the next mineflied... :)
ask.openLCA is a question-and-answer (Q&A) website on Life Cycle Assessment (LCA).

It is also the public support platform for openLCA, openLCA Nexus, data.openLCA and the LCA Collaboration Server.

Before asking questions please also consult our online manuals for openLCA and the LCA Collaboration Server.

Receive guaranteed and prioritised professional support via GreenDelta's help desk.

ask.openLCA is run by GreenDelta, the creators of openLCA.

openLCA

LCA Collaboration Server
...