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
ttk
spam
Commits
a20f3f85
Commit
a20f3f85
authored
Oct 21, 2020
by
Gustavo Pinzon
Browse files
fix test on meanOrientation
parent
0b901389
Pipeline
#51262
passed with stages
in 23 minutes and 41 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
tools/tests/test_label.py
View file @
a20f3f85
...
...
@@ -412,7 +412,7 @@ class TestFunctionLabel(unittest.TestCase):
def
test_meanOrientation
(
self
):
# Generate random main direction
theta
=
numpy
.
radians
(
random
.
randrange
(
0
,
3
6
0
,
1
))
theta
=
numpy
.
radians
(
random
.
randrange
(
3
0
,
3
0
0
,
1
))
phi
=
numpy
.
radians
(
random
.
randrange
(
0
,
90
,
1
))
# Generate n random vector near the main direction
n
=
1000
#number of vectors
...
...
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