Commit d3411dcf authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

(overlap_)blockmodel.py: Convert clabel to "int" type

parent ab0da1a4
......@@ -181,7 +181,7 @@ class BlockState(object):
if clabel is not None:
if isinstance(clabel, PropertyMap):
self.clabel = self.g.own_property(clabel.copy())
self.clabel = self.g.own_property(clabel.copy("int"))
else:
self.clabel = self.g.new_vertex_property("int")
self.clabel.a = clabel
......
......@@ -206,7 +206,7 @@ class OverlapBlockState(BlockState):
if _bm_test():
assert len(clabel.a) < self.g.num_vertices()
self.clabel = self.node_index.copy()
pmap(self.clabel, clabel)
pmap(self.clabel, clabel.copy("int"))
else:
# if clabel is an array, we will assume it constraints the *half-edges*
self.clabel = self.g.new_vertex_property("int")
......
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