File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 29
29
SimpleInterface
30
30
)
31
31
32
+ has_gradunwarp = False
33
+ try :
34
+ from gradunwarp .core .gradient_unwarp import GradientUnwarpRunner
35
+ has_gradunwarp = True
36
+ except ImportError :
37
+ pass
38
+
32
39
33
40
class _GradUnwarpInputSpec (TraitedSpec ):
34
41
infile = File (exists = True , mandatory = True , desc = "input image to be corrected" )
@@ -63,7 +70,9 @@ class GradUnwarp(SimpleInterface):
63
70
64
71
def _run_interface (self , runtime ):
65
72
66
- from gradunwarp .core .gradient_unwarp import GradientUnwarpRunner
73
+ if not has_gradunwarp :
74
+ raise RuntimeError ('missing gradunwarp dependency' )
75
+
67
76
gur = GradientUnwarpRunner (self .inputs )
68
77
gur .run ()
69
78
gur .write ()
Original file line number Diff line number Diff line change @@ -300,11 +300,7 @@ def test_DerivativesDataSink_build_path(
300
300
** entities ,
301
301
)
302
302
303
- < << << << HEAD
304
303
if isinstance (expectation , type ):
305
- == == == =
306
- if type (expectation ) is type (Exception ):
307
- > >> >> >> 601 d1d1f (fix flake8 tests )
308
304
with pytest .raises (expectation ):
309
305
dds .run ()
310
306
return
You can’t perform that action at this time.
0 commit comments