File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change
1
+ Release 0.9.2 (January 8, 2014)
2
+ ============
3
+
4
+ * FIX: DataFind was broken due to a typo
5
+
1
6
Release 0.9.1 (December 25, 2013)
2
7
============
3
8
Original file line number Diff line number Diff line change @@ -171,6 +171,24 @@ def test_datasink_copydir():
171
171
shutil .rmtree (outdir )
172
172
shutil .rmtree (pth )
173
173
174
+ def test_datafinder_copydir ():
175
+ outdir = mkdtemp ()
176
+ open (os .path .join (outdir , "findme.txt" ), 'a' ).close ()
177
+ open (os .path .join (outdir , "dontfindme" ), 'a' ).close ()
178
+ open (os .path .join (outdir , "findmetoo.txt" ), 'a' ).close ()
179
+
180
+ from nipype .interfaces .io import DataFinder
181
+ df = DataFinder ()
182
+ df .inputs .root_paths = outdir
183
+ df .inputs .match_regex = '.txt'
184
+ result = df .run ()
185
+ expected = ["findme.txt" , "findmetoo.txt" ]
186
+ for path , expected_fname in zip (result .outputs .out_paths , expected ):
187
+ _ , fname = os .path .split (path )
188
+ yield assert_equal , fname , expected_fname
189
+
190
+ shutil .rmtree (outdir )
191
+
174
192
175
193
def test_freesurfersource ():
176
194
fss = nio .FreeSurferSource ()
You can’t perform that action at this time.
0 commit comments