Commit 46bcd8a3 authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

BUG: fix call of randn

parent 8c46c9cb
...@@ -76,7 +76,7 @@ class WeightedOrientation(object): ...@@ -76,7 +76,7 @@ class WeightedOrientation(object):
4. number between 0 and 0.5 indicating location along shortest line (0 if at edge, 0.5 if in middle of gyrus) 4. number between 0 and 0.5 indicating location along shortest line (0 if at edge, 0.5 if in middle of gyrus)
""" """
if self.smooth_orient.shape[0] != norient: if self.smooth_orient.shape[0] != norient:
rand_orient = np.randn(3, norient) rand_orient = np.random.randn(3, norient)
rand_orient /= np.sqrt(np.sum(rand_orient ** 2, 0)) rand_orient /= np.sqrt(np.sum(rand_orient ** 2, 0))
hsph_initial = sphere.HemiSphere(*rand_orient) hsph_initial = sphere.HemiSphere(*rand_orient)
......
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