You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This should be added so that future data has this key when the json file is saved from the GUI.
There should be backwards compatibility so that if data does not have a weight key it is added when loading the graph from the JSON.
Currently, this code only works because calc_root_length is always run on all of the roots before getting the pareto-related calcs when quantify.analyze(graph) is used. This is always the case from the GUI, but people trying to use the API will not be able to use the pareto functions modularly, and can only analyze results using quantify.analyze. This makes unit tests impossible.
The weight attribute is referenced in graph_costs which is used by pareto_front and random_tree`.
The json file representing the root structure has the following format
where "weight" is not a key for the edges.
Currently, this code only works because
calc_root_length
is always run on all of the roots before getting the pareto-related calcs whenquantify.analyze(graph)
is used. This is always the case from the GUI, but people trying to use the API will not be able to use the pareto functions modularly, and can only analyze results usingquantify.analyze
. This makes unit tests impossible.The weight attribute is referenced in
graph_costs
which is used bypareto_front
and random_tree`.Ariadne/src/ariadne_roots/pareto_functions.py
Line 81 in b46fd64
Ariadne/src/ariadne_roots/quantify.py
Lines 228 to 239 in 9c728d2
Ariadne/src/ariadne_roots/quantify.py
Lines 592 to 632 in 9c728d2
The text was updated successfully, but these errors were encountered: