Skip to content

Commit

Permalink
creating infout.regressor_names list
Browse files Browse the repository at this point in the history
corrected and error in _concatenate_info - when regressor and regressor_names are not defined, the fix fails. Now the regressor_names are created if they were not defined by the user.
  • Loading branch information
hstojic authored Jan 21, 2019
1 parent 072688f commit 7b61f6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nipype/algorithms/modelgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,7 @@ def _concatenate_info(self, infolist):
# insert session regressors
if not hasattr(infoout, 'regressors') or not infoout.regressors:
infoout.regressors = []
infoout.regressor_names = []
onelist = np.zeros((1, sum(nscans)))
onelist[0, sum(nscans[0:i]):sum(nscans[0:(i + 1)])] = 1
infoout.regressors.insert(
Expand Down

0 comments on commit 7b61f6b

Please sign in to comment.