Open cmutel opened 6 days ago
Hi Chris,
I built something somewhat similar to this ~year back, see this PR, which may be some useful reference for you https://github.com/LCA-ActivityBrowser/activity-browser/pull/1046
I also used graph traversal to calculate these impacts. Happy to have a quick chat if it helps.
I do have some vague ideas for a more generalized graph traversal as well, that could be interesting to implement in BW at some point.
Thanks @marc-vdm. We will check this out, and of course would be happy to get your feedback once we have an alpha.
Feature request
One can currently see the impact of different processes in the supply chain via a bar chart:
And via a Sankey graph:
Our client would like to have a more interactive contribution analysis based on an expanding tree. This would follow the standard "clickable triangle" pattern where clicking on the triangle expands impacts. The basic interface would look something like this:
Where
Input A
, etc., could be clicked to expand or contract.To calculate the initial set of impacts, run graph traversal in the same way as the Sankey example. This graph traversal object should be kept in memory, so that further calculations can be done quickly. The initial calculation should use a shallow
max_depth
, either 1 or 2, and subsequent calculations (upon clicks) should do the same thing, but starting from the clicked node as the new functional unit.If a
tag system
is chosen, then inputs should be grouped, so one would instead see something like:Specific tasks:
NavigatorWidget
class for contribution tree, and make it available in this row:tags
system. Tags are a part of our fundamental data schema, and are designed to be categorical (quantitative values would normally be aproperty
).Database
object instead of scanning the whole database when doing any initial load.tags
system to the results. Handle missingtags
elegantly.NavigatorWidget
class