Skip to content

Commit c87399e

Browse files
committed
rev: set traits inside __init__
1 parent ac45369 commit c87399e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

nipype/interfaces/bids_utils.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,6 @@ def __init__(self, infields=None, **kwargs):
105105

106106
self._infields = infields or []
107107

108-
def _run_interface(self, runtime):
109-
if not have_pybids:
110-
raise ImportError(
111-
"The BIDSEventsGrabber interface requires pybids."
112-
" Please make sure it is installed.")
113-
return runtime
114-
115-
def _list_outputs(self):
116108
# used for mandatory inputs check
117109
undefined_traits = {}
118110
for key in self._infields:
@@ -121,6 +113,14 @@ def _list_outputs(self):
121113

122114
self.inputs.trait_set(trait_change_notify=False, **undefined_traits)
123115

116+
def _run_interface(self, runtime):
117+
if not have_pybids:
118+
raise ImportError(
119+
"The BIDSEventsGrabber interface requires pybids."
120+
" Please make sure it is installed.")
121+
return runtime
122+
123+
def _list_outputs(self):
124124
layout = gb.BIDSLayout(self.inputs.base_dir)
125125

126126
# If infield is not given nm input value, silently ignore

0 commit comments

Comments
 (0)