Skip to content

Commit

Permalink
BF: run_info is the third positional argument.
Browse files Browse the repository at this point in the history
Otherwise it was passing 'events' string when applying Split transformation.
  • Loading branch information
adswa committed Jan 24, 2019
1 parent 5ca9616 commit beba317
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bids/variables/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,7 @@ def split(self, grouper):
subsets = []
for i, (name, g) in enumerate(data.groupby(grouper)):
name = '%s.%s' % (self.name, name)
args = [name, g, self.source]
if hasattr(self, 'run_info'):
args.append(self.run_info)
args = [name, g, getattr(self, 'run_info', None), self.source]
col = self.__class__(*args)
subsets.append(col)
return subsets
Expand Down

0 comments on commit beba317

Please sign in to comment.