Skip to content

Commit 06b45ee

Browse files
committed
sty: cleanup
1 parent 992a81b commit 06b45ee

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

nipype/interfaces/io.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,17 +1186,20 @@ def _list_outputs(self):
11861186
class SelectFilesInputSpec(DynamicTraitedSpec, BaseInterfaceInputSpec):
11871187

11881188
base_directory = Directory(exists=True,
1189-
desc="Root path common to templates.")
1189+
desc="Root path common to templates.")
11901190
sort_filelist = traits.Bool(True, usedefault=True,
1191-
desc="When matching mutliple files, return them in sorted order.")
1191+
desc="When matching mutliple files, return them"
1192+
" in sorted order.")
11921193
raise_on_empty = traits.Bool(True, usedefault=True,
1193-
desc="Raise an exception if a template pattern matches no files.")
1194+
desc="Raise an exception if a template pattern "
1195+
"matches no files.")
11941196
force_lists = traits.Either(traits.Bool(), traits.List(Str()),
1195-
default=False, usedefault=True,
1196-
desc=("Whether to return outputs as a list even when only one file "
1197-
"matches the template. Either a boolean that applies to all "
1198-
"output fields or a list of output field names to coerce to "
1199-
" a list"))
1197+
default=False, usedefault=True,
1198+
desc=("Whether to return outputs as a list even"
1199+
" when only one file matches the template. "
1200+
"Either a boolean that applies to all output "
1201+
"fields or a list of output field names to "
1202+
"coerce to a list"))
12001203

12011204

12021205
class SelectFiles(IOBase):
@@ -1296,9 +1299,7 @@ def _list_outputs(self):
12961299

12971300
for field, template in list(self._templates.items()):
12981301

1299-
find_dirs = False
1300-
if template[-1] == os.sep:
1301-
find_dirs = True
1302+
find_dirs = template[-1] == os.sep
13021303

13031304
# Build the full template path
13041305
if isdefined(self.inputs.base_directory):

0 commit comments

Comments
 (0)