Beispiel #1
0
 def test_validate_array_slices_fail(self):
     arr = [np.random.rand(3, 3)] + [np.random.rand(5, 5)
                                     ] + [np.array([[1, 2], [1, 2, 3]])]
     with pytest.raises(ValueError):
         validate_array_slices(arr, 'float')
Beispiel #2
0
 def test_validate_array_slices_fail(self):
     arr = [np.random.rand(3, 3)] + [np.random.rand(5, 5)] + [np.array([[1, 2],[1, 2, 3]])]
     with pytest.raises(ValueError):
         validate_array_slices(arr, 'float')
Beispiel #3
0
 def test_validate_array_slices(self):
     arr = [np.random.rand(3, 3)] + [np.random.rand(5, 5)
                                     ] + [np.random.rand(7, 7)]
     validate_array_slices(arr, 'float')
Beispiel #4
0
 def test_validate_array_slices(self):
     arr = [np.random.rand(3, 3)] + [np.random.rand(5, 5)] + [np.random.rand(7, 7)]
     validate_array_slices(arr, 'float')