Commit 44f3a2bc authored by Gustavo Pinzon's avatar Gustavo Pinzon
Browse files

Update on test_DirectionalErosion

parent f9bdf37a
Pipeline #63158 passed with stages
in 25 minutes and 30 seconds
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
from __future__ import print_function
import unittest
......@@ -61,7 +61,7 @@ class testAll(unittest.TestCase):
def test_DirectionalErosion(self):
#Generate random ellipsoid grain
theta = numpy.radians(random.randrange(0,360,1))
theta = numpy.radians(random.randrange(30,300,1))
phi = numpy.radians(random.randrange(0,90,1))
vect = numpy.array([numpy.cos(phi), numpy.sin(phi)*numpy.sin(theta), numpy.sin(phi)*numpy.cos(theta)])
if vect[0]<0: vect[:]=-1*vect[:]
......
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