@@ -21,7 +21,7 @@ def test_TorchOperator(par):
2121 """
2222 # temporarily, skip tests on mac as torch seems not to recognized
2323 # numpy when v2 is installed
24- if platform .system is not "Darwin" :
24+ if platform .system () != "Darwin" :
2525 Dop = MatrixMult (np .random .normal (0.0 , 1.0 , (par ["ny" ], par ["nx" ])))
2626 Top = TorchOperator (Dop , batch = False )
2727
@@ -47,7 +47,7 @@ def test_TorchOperator_batch(par):
4747 """Apply forward for input with multiple samples (= batch) and flattened arrays"""
4848 # temporarily, skip tests on mac as torch seems not to recognized
4949 # numpy when v2 is installed
50- if platform .system is not "Darwin" :
50+ if platform .system () != "Darwin" :
5151 Dop = MatrixMult (np .random .normal (0.0 , 1.0 , (par ["ny" ], par ["nx" ])))
5252 Top = TorchOperator (Dop , batch = True )
5353
@@ -66,7 +66,7 @@ def test_TorchOperator_batch_nd(par):
6666 """Apply forward for input with multiple samples (= batch) and nd-arrays"""
6767 # temporarily, skip tests on mac as torch seems not to recognized
6868 # numpy when v2 is installed
69- if platform .system is not "Darwin" :
69+ if platform .system () != "Darwin" :
7070 Dop = MatrixMult (
7171 np .random .normal (0.0 , 1.0 , (par ["ny" ], par ["nx" ])), otherdims = (2 ,)
7272 )
0 commit comments