Skip to content

Commit 31f5ecd

Browse files
committed
replaced RuntimeWarning by nipype warning
1 parent 47d05b2 commit 31f5ecd

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

nipype/interfaces/afni/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def version():
4343
terminal_output='allatonce').run()
4444
except IOError:
4545
# If afni_vcheck is not present, return None
46+
warn('afni_vcheck executable not found.')
4647
return None
4748

4849
out = clout.runtime.stdout.split('\n')[1]

nipype/interfaces/afni/preprocess.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,8 +1245,6 @@ def __init__(self, **inputs):
12451245
# As of AFNI 16.0.00, redirect_x is not needed
12461246
if isinstance(v[0], int) and v[0] > 15:
12471247
self._redirect_x = False
1248-
else:
1249-
raise RuntimeWarning('afni_vcheck executable not found.')
12501248

12511249

12521250
class TCatInputSpec(AFNICommandInputSpec):

0 commit comments

Comments
 (0)