brightway-lca / bw_hestia_bridge

Consume the HESTIA API in Brightway
https://docs.brightway.dev/projects/hestiabridge/
MIT License
1 stars 0 forks source link

Searching for products.term.name for type of impactassessment seems not to work #34

Closed cswh closed 1 year ago

cswh commented 1 year ago

While

bhb.search_hestia({"products.term.name": "Saplings", "@type": "cycle"})

yields perfect results,

bhb.search_hestia({"products.term.name": "Soybean, seed (whole)", "@type": "impactassessment"})

yields only an emtpy list. But there is actually at least one Impact Assessment who has "Soybean, seed (whole)" as a product name. See: https://www-staging.hestia.earth/impactassessment/bv2ktx0jjkub?dataState=recalculated

cswh commented 1 year ago

In contrast to cycles, impactassessments do have only one product. Therefore the following is working correctly:

bhb.search_hestia({"products.term.name": "Saplings", "@type": "cycle"})
bhb.search_hestia({"product.term.name": "Soybean, seed (whole)", "@type": "impactassessment"})

Mind the products != product