File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -592,20 +592,20 @@ class DataFinder(IOBase):
592
592
>>> df = DataFinder()
593
593
>>> df.inputs.root_paths = '.'
594
594
>>> df.inputs.match_regex = '.+/(?P<series_dir>.+(qT1|ep2d_fid_T1).+)/(?P<basename>.+)\.nii.gz'
595
- >>> result = df.run()
596
- >>> print result.outputs.out_paths
595
+ >>> result = df.run() # doctest: +SKIP
596
+ >>> print result.outputs.out_paths # doctest: +SKIP
597
597
['./027-ep2d_fid_T1_Gd4/acquisition.nii.gz',
598
598
'./018-ep2d_fid_T1_Gd2/acquisition.nii.gz',
599
599
'./016-ep2d_fid_T1_Gd1/acquisition.nii.gz',
600
600
'./013-ep2d_fid_T1_pre/acquisition.nii.gz']
601
601
602
- >>> print result.outputs.series_dir
602
+ >>> print result.outputs.series_dir # doctest: +SKIP
603
603
['027-ep2d_fid_T1_Gd4',
604
604
'018-ep2d_fid_T1_Gd2',
605
605
'016-ep2d_fid_T1_Gd1',
606
606
'013-ep2d_fid_T1_pre']
607
607
608
- >>> print result.outputs.basename
608
+ >>> print result.outputs.basename # doctest: +SKIP
609
609
['acquisition',
610
610
'acquisition',
611
611
'acquisition',
@@ -695,6 +695,8 @@ def _run_interface(self, runtime):
695
695
for key , vals in self .result .iteritems ():
696
696
self .result [key ] = vals [0 ]
697
697
698
+ if not self .result :
699
+ raise RuntimeError ("Regular expression did not match any files!" )
698
700
return runtime
699
701
700
702
def _list_outputs (self ):
You can’t perform that action at this time.
0 commit comments