Skip to content

Commit

Permalink
Value is v not val
Browse files Browse the repository at this point in the history
  • Loading branch information
adelavega committed Feb 7, 2020
1 parent 66b1d2a commit 79288c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neuroscout/populate/annotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ def _annotate_feature(self, pattern, schema, feat, extractor, sub_df,
for _, row in sub_df[sub_df.value.notnull()].iterrows():
if isinstance(row['value'], list) and not self.splat:
raise ValueError("Value is an array and splatting is not True")
val = listify(row['value'].values)
val = listify(row['value'])

for ix, v in enumerate(val):
ee = {
'value': val,
'value': v,
'onset': row['onset']
if not pd.isnull(row['onset']) else None,
'duration': row['duration']
Expand Down

0 comments on commit 79288c2

Please sign in to comment.