Commit 8062aa44 authored by Stuart Berg's avatar Stuart Berg Committed by Tiago Peixoto
Browse files

hierarchy_minimize(): Fix NameError when the caller supplies a hierarchy that...

hierarchy_minimize(): Fix NameError when the caller supplies a hierarchy that is missing the top level
parent 95c0d9f0
Pipeline #562 failed with stage
in 0 seconds
......@@ -1180,7 +1180,7 @@ def hierarchy_minimize(state, B_min=None, B_max=None, b_min=None, b_max=None,
if state.levels[-1].B > 1:
bstate = state.levels[-1].get_block_state(**dict(state.hstate_args,
b=zeros(state.levels[-1].B),
Lrecdx=levels[-1].Lrecdx))
Lrecdx=state.levels[-1].Lrecdx))
state.levels.append(bstate)
state._regen_Lrecdx()
......
Supports Markdown
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