Skip to content

Commit 0c2b5a2

Browse files
committed
moves tomobar import under condition
1 parent 45f3d88 commit 0c2b5a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

httomolibgpu/recon/algorithm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828

2929
from unittest.mock import Mock
3030

31-
from tomobar.methodsDIR import RecToolsDIR
32-
3331
if cupy_run:
32+
from tomobar.methodsDIR import RecToolsDIR
3433
from tomobar.methodsDIR_CuPy import RecToolsDIRCuPy
3534
from tomobar.methodsIR_CuPy import RecToolsIRCuPy
3635
else:
36+
RecToolsDIR = Mock()
3737
RecToolsDIRCuPy = Mock()
3838
RecToolsIRCuPy = Mock()
3939

0 commit comments

Comments
 (0)