We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 406c729 commit 0915a9dCopy full SHA for 0915a9d
nipype/interfaces/bids.py
@@ -14,7 +14,7 @@
14
>>> os.chdir(datadir)
15
16
"""
17
-
+from .. import logging
18
from .base import (traits,
19
DynamicTraitedSpec,
20
Directory,
@@ -30,7 +30,7 @@
30
else:
31
have_pybids = True
32
33
-from warnings import warn
+LOGGER = logging.getLogger('workflows')
34
35
class BIDSDataGrabberInputSpec(DynamicTraitedSpec):
36
base_dir = Directory(exists=True,
@@ -165,7 +165,7 @@ def _list_outputs(self):
165
if self.inputs.raise_on_empty:
166
raise IOError(msg)
167
168
- warn(msg)
+ LOGGER.warning(msg)
169
filelist = Undefined
170
171
outputs[key] = filelist
0 commit comments