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

draw.random_layout(): Remove Numpy warning

parent e173b204
Pipeline #155 failed with stage
......@@ -149,8 +149,8 @@ def random_layout(g, shape=None, pos=None, dim=2):
d = r[1] - r[0]
# deal with filtering
p = pos[i].ma
p[:] = numpy.random.random(len(p)) * d + r[0]
p = pos[i].fa
pos[i].fa = numpy.random.random(len(p)) * d + r[0]
pos = group_vector_property(pos)
return pos
......
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