Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node.producers() returns production() not actual producers #216

Open
mrvisscher opened this issue Dec 11, 2024 · 0 comments
Open

Node.producers() returns production() not actual producers #216

mrvisscher opened this issue Dec 11, 2024 · 0 comments

Comments

@mrvisscher
Copy link

mrvisscher commented Dec 11, 2024

Right now calling node.producers() will return the same Exchanges as node.products(). This seems incorrect for something like a product-type node where you would expect the result to be the production exchanges flowing from the product node. Meaning, the Exchanges object needs to be instantiated with reverse=True.

Right now there seems no way to get to the producer of a product other than instantiating an Exchanges object yourself like so:

Exchanges(prod.key, kinds=labels.technosphere_positive_edge_types, reverse=True)

Let me know if you want me to make a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant