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

Utility function to quickly find input nodes, if present #23

Closed cmutel closed 1 year ago

cmutel commented 1 year ago

This cycle: https://www-staging.hestia.earth/cycle/s_iwp86ylxhd?dataState=recalculated#impactDriverChart

Consumes one of the outputs of this cycle: https://www-staging.hestia.earth/cycle/ribhbymfmmt3?dataState=recalculated#impactDriverChart

(though one is 2013, one is 2014, I am not sure if there could be another cycle which is more cleanly linked...)

It would be great, when turning the cycle into a process that Brightway can handle, to be able to find these kinds of links by calling the API.

tfardet commented 1 year ago

Should be supported via #24 and #26

search_hestia({"inputs.term.name": the_name})

It doesn't work with "inputs.term.@id", which is annoying but I think that's a bug on Hestia's side.

tfardet commented 1 year ago

@cmutel can we close this or did you mean something else that is still not implemented?

cswh commented 1 year ago

Here are some more information on how thy cycles are linked within hestia: https://github.com/brightway-lca/bw_hestia_bridge/issues/10#issuecomment-1724002695

The requested utility function is part of that issue. Therefore I will close due to duplicateness.