Skip to content

Commit 0c724e9

Browse files
committed
stimulus_side
1 parent 609dfc3 commit 0c724e9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lecilab_behavior_analysis/df_transforms.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,10 @@ def parameters_for_fit(df):
839839
# Add the correct column as numeric, 1 for correct, 0 for incorrect
840840
df_copy['correct_numeric'] = df_copy['correct'].astype(int)
841841

842+
df_copy['correct_side_numeric'] = df_copy['correct_side'].apply(
843+
utils.transform_side_choice_to_numeric
844+
)
845+
842846
# Add the past trials impact by time kernel
843847

844848

0 commit comments

Comments
 (0)