Commit 146184bc authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

NestedBlockState.mcmc_sweep(): Fix issue with single-group levels

parent 18bea80f
......@@ -548,7 +548,8 @@ class NestedBlockState(object):
rs = rs[:N_]
self.levels[l].empty_blocks.resize(len(rs))
self.levels[l].empty_blocks.a = rs
reverse_map(rs, self.levels[l].empty_pos)
if len(rs) > 0:
reverse_map(rs, self.levels[l].empty_pos)
ret = algo(self.levels[l], **args)
......
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