Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Saad Jbabdi
mcutils
Commits
46bcd8a3
Commit
46bcd8a3
authored
Dec 03, 2020
by
Michiel Cottaar
Browse files
BUG: fix call of randn
parent
8c46c9cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
mcutils/surface/orientation.py
View file @
46bcd8a3
...
...
@@ -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)
"""
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
))
hsph_initial
=
sphere
.
HemiSphere
(
*
rand_orient
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment