Skip to content

Commit

Permalink
feat: changed the behavior of the lower-bound option again
Browse files Browse the repository at this point in the history
  • Loading branch information
MLRichter committed Mar 23, 2022
1 parent 286f3de commit 02e392b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rfa_toolbox/utils/graph_utils.py
Expand Up @@ -302,7 +302,9 @@ def find_max(
r_max = tuple(find_max(rf_max, i) for i in range(cardinality))
if lower_bound:
res = find_smallest_resolution_with_no_unproductive_layer(graph)
r_min = tuple(res[i] if len(res) < i else res[0] for i in range(cardinality))
kernel_r_min = tuple(find_max(kerneL_rf_min, i) for i in range(cardinality))
rf_r_min = tuple(res[i] if len(res) < i else res[0] for i in range(cardinality))
r_min = tuple(min(x, y) for x, y in zip(rf_r_min, kernel_r_min))
else:
r_min = tuple(find_max(rf_min, i) for i in range(cardinality))
return r_min, r_max

0 comments on commit 02e392b

Please sign in to comment.