Add specialized compton diagram generation function for much improved runtime

This commit is contained in:
2024-02-06 10:58:29 +01:00
parent 3ac9954d32
commit 007d970a12
3 changed files with 89 additions and 2 deletions

View File

@@ -7,7 +7,8 @@ function get_properties(graph::DAG)
# make sure the graph is fully generated
apply_all!(graph)
if (graph.properties.computeEffort == 0.0)
# TODO: tests stop working without the if condition, which means there is probably a bug in the lazy evaluation and in the tests
if (graph.properties.computeEffort <= 0.0)
graph.properties = GraphProperties(graph)
end