File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 26
26
else :
27
27
from dipy .align .aniso2iso import resample
28
28
from dipy .core .gradients import GradientTable
29
-
30
- try :
31
- package_check ('dipy' , version = '0.7.2' )
32
- except Exception , e :
33
- have_dipy = False
34
- else :
35
- from dipy .denoise .nlmeans import nlmeans
36
29
37
30
38
31
class ResampleInputSpec (TraitedSpec ):
@@ -134,6 +127,15 @@ class Denoise(BaseInterface):
134
127
"""
135
128
input_spec = DenoiseInputSpec
136
129
output_spec = DenoiseOutputSpec
130
+
131
+ def __init__ (self , ** inputs ):
132
+ try :
133
+ package_check ('dipy' , version = '0.8.0.dev' )
134
+ except Exception , e :
135
+ have_dipy = False
136
+ else :
137
+ from dipy .denoise .nlmeans import nlmeans
138
+ BaseInterface .__init__ (self , ** inputs )
137
139
138
140
def _run_interface (self , runtime ):
139
141
out_file = op .abspath (self ._gen_outfilename ())
You can’t perform that action at this time.
0 commit comments