From 4fa44d388db595d3dcecbe153e23d66359e5a9ce Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Mon, 2 Nov 2020 18:21:51 -0500 Subject: [PATCH] shortened test for monotonous increase of material index after sorting --- python/tests/test_Geom.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/tests/test_Geom.py b/python/tests/test_Geom.py index c8197aa9f..671a3ff4a 100644 --- a/python/tests/test_Geom.py +++ b/python/tests/test_Geom.py @@ -208,8 +208,7 @@ class TestGeom: def test_sort(self): grid = np.random.randint(5,20,3) m = Geom(np.random.randint(1,20,grid)*3,np.ones(3)).sort().material.flatten(order='F') - assert m[0] == m.min() - for i,v in enumerate(m[1:]): + for i,v in enumerate(m): assert v > m[:i+1].max() or v in m[:i+1] @pytest.mark.parametrize('axis_angle',[np.array([1,0,0,86.7]), np.array([0,1,0,90.4]), np.array([0,0,1,90]),