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 2929 SimpleInterface
3030)
3131
32+ has_gradunwarp = False
33+ try :
34+ from gradunwarp .core .gradient_unwarp import GradientUnwarpRunner
35+ has_gradunwarp = True
36+ except ImportError :
37+ pass
38+
3239
3340class _GradUnwarpInputSpec (TraitedSpec ):
3441 infile = File (exists = True , mandatory = True , desc = "input image to be corrected" )
@@ -63,7 +70,9 @@ class GradUnwarp(SimpleInterface):
6370
6471 def _run_interface (self , runtime ):
6572
66- from gradunwarp .core .gradient_unwarp import GradientUnwarpRunner
73+ if not has_gradunwarp :
74+ raise RuntimeError ('missing gradunwarp dependency' )
75+
6776 gur = GradientUnwarpRunner (self .inputs )
6877 gur .run ()
6978 gur .write ()
Original file line number Diff line number Diff line change @@ -300,11 +300,7 @@ def test_DerivativesDataSink_build_path(
300300 ** entities ,
301301 )
302302
303- < << << << HEAD
304303 if isinstance (expectation , type ):
305- == == == =
306- if type (expectation ) is type (Exception ):
307- > >> >> >> 601 d1d1f (fix flake8 tests )
308304 with pytest .raises (expectation ):
309305 dds .run ()
310306 return
You can’t perform that action at this time.
0 commit comments