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

Document/Clarify Removal of GraphTraversal Functionality #91

Open
2 tasks
Tracked by #143
michaelweinold opened this issue Mar 6, 2024 · 6 comments
Open
2 tasks
Tracked by #143

Document/Clarify Removal of GraphTraversal Functionality #91

michaelweinold opened this issue Mar 6, 2024 · 6 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@michaelweinold
Copy link
Contributor

michaelweinold commented Mar 6, 2024

@cmutel, you moved (some?) graph traversal functionality to the bw_graph_tools package with 273c520. This is not documented in the changelog (or anywhere else except in the commit title). The last changelog entry related to graph traversal simply mentions:

Changed GraphTraversal to AssumedDiagonalGraphTraversal

This means that on the current main branch, there is no graph traversal functionality in the bw2calc package at all.

However, in the latest dev version, there is a bw2calc/graph_traversal.py file . bw_graph_tools is not called anywhere.

Is there some reason to this madness 🙈?

  • On the current version of Brightway2 (main), how should one use the GraphTraversal class? Import bw_graph_tools directly?
  • On the current version of Brightway25 (dev), how should one use the GraphTraversal class? Call it from bw2calc? What is the role of bw_graph_tools in this case?
@cmutel
Copy link
Member

cmutel commented Mar 6, 2024

However, in the latest dev version, there is a bw2calc/graph_traversal.py file

You posted a link to 2.0.dev12 - the latest dev release is 2.0.dev16 :)

@michaelweinold
Copy link
Contributor Author

michaelweinold commented Mar 6, 2024

...oh - it seems that GH can't sort tags properly:

Screenshot 2024-03-06 at 08 14 45

But in any case, the file is also present in the dev16 version.

@cmutel
Copy link
Member

cmutel commented Mar 6, 2024

You're right, sorry about that. The DEV16 release was on October 22, and the graph traversal was removed on October 26.

Brightway2 is pinned to bw2calc < 2.0.

On the current version of Brightway25 (dev), how should one use the GraphTraversal class? Call it from bw2calc? What is the role of bw_graph_tools in this case?

One should only use bw_graph_tools, this is strictly better in every way than the old graph traversal class.

@michaelweinold
Copy link
Contributor Author

Ok, thank you for the clarification. Can I therefore:

?

@cmutel
Copy link
Member

cmutel commented Mar 6, 2024

Changelog update in 1dd1132. But the main branch isn't ready for a release yet (yes, yes, this should have been a feature branch and not merged to main...).

So I think for now you will just need to manually use bw_graph_utils instead.

@michaelweinold
Copy link
Contributor Author

Fine, we'll keep this open until then. Thank you!
I will update the documentation of the bw_graph_tools package in the coming weeks, as I go through the code in detail.

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

No branches or pull requests

2 participants