Commit 17f3d190 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix a problem with B_min in minimize_nested_blockmodel_dl()

parent ecee9d6f
Pipeline #105 failed with stage
......@@ -683,7 +683,7 @@ def replace_level(l, state, min_B=None, max_B=None, max_b=None, nsweeps=10,
if l > 0 or max_B is None:
max_B = bstate.N
min_B = max(min_B, state.clabel.fa.max() + 1)
min_B = min(max(min_B, state.clabel.fa.max() + 1), bstate.N)
# constraint partitions not to invalidate upper layers
if l < len(state.levels) - 1:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment