From bcd3d00960511dd140cfac3b92a3eede7b24d947 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Thu, 9 Jun 2022 23:28:04 +0200 Subject: [PATCH] fixed test this tests should ensure that each Orientation has exactly one symmetrically equivalent representation. It was not fully correct before and works as expected after 8fefc46f388acc97589b9139dca021c65e5c5dbd --- python/tests/test_Orientation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/tests/test_Orientation.py b/python/tests/test_Orientation.py index 5f9b83e70..2cb97d252 100644 --- a/python/tests/test_Orientation.py +++ b/python/tests/test_Orientation.py @@ -224,11 +224,11 @@ class TestOrientation: @pytest.mark.parametrize('family',crystal_families) def test_reduced_corner_cases(self,family): - # test whether there is always a sym-eq rotation that falls into the FZ + # test whether there is always exactly one sym-eq rotation that falls into the FZ N = np.random.randint(10,40) size = np.ones(3)*np.pi**(2./3.) grid = grid_filters.coordinates0_node([N+1,N+1,N+1],size,-size*.5) - evenly_distributed = Orientation.from_cubochoric(x=grid[:-2,:-2,:-2],family=family) + evenly_distributed = Orientation.from_cubochoric(x=grid,family=family) assert evenly_distributed.shape == evenly_distributed.reduced.shape @pytest.mark.parametrize('family',crystal_families)