Commit dbc8e6f4 authored by Tiago Peixoto's avatar Tiago Peixoto

Fix initialization of overlapping NestedBlockState

This fixes issue #678
parent 711f2f3d
...@@ -66,7 +66,7 @@ class NestedBlockState(object): ...@@ -66,7 +66,7 @@ class NestedBlockState(object):
if bs is None: if bs is None:
if base_type is OverlapBlockState or state_args.get("overlap", False): if base_type is OverlapBlockState or state_args.get("overlap", False):
b = zeros(2 * g.num_vertices(), dtype="int") b = zeros(2 * g.num_edges(), dtype="int")
else: else:
b = zeros(g.num_vertices(), dtype="int") b = zeros(g.num_vertices(), dtype="int")
bs = [b] + [zeros(1, dtype="int")] * int(ceil(log2(len(b)))) bs = [b] + [zeros(1, dtype="int")] * int(ceil(log2(len(b))))
......
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