Beispiel #1
0
 def test_switch_to_numpy(self):
     assert dtcwt.Transform2d is npbackend.Transform2d
     assert dtcwt.Pyramid is npbackend.Pyramid
     assert dtcwt.backend_name == 'numpy'
     dtcwt.push_backend('numpy')
     assert dtcwt.Transform2d is npbackend.Transform2d
     assert dtcwt.Pyramid is npbackend.Pyramid
     assert dtcwt.backend_name == 'numpy'
     dtcwt.pop_backend()
     assert dtcwt.Transform2d is npbackend.Transform2d
     assert dtcwt.Pyramid is npbackend.Pyramid
     assert dtcwt.backend_name == 'numpy'
Beispiel #2
0
 def test_no_pop_default_backend(self):
     with raises(IndexError):
         dtcwt.pop_backend()
Beispiel #3
0
 def test_no_pop_default_backend(self):
     dtcwt.pop_backend()