Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

so when I try to plot the trial-averaged hand-pos trajectory, problems ocuured #1

Open
JasonNerd opened this issue Apr 14, 2023 · 0 comments

Comments

@JasonNerd
Copy link

---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
Cell In[22], line 19
     17 traj = trial_data.groupby('align_time')[[('hand_pos', 'x'), ('hand_pos', 'y')]].mean().to_numpy()
     18 # Determine reach angle for color
---> 19 active_target = dataset.trial_info[mask].target_pos.iloc[0][dataset.trial_info[mask].active_target.iloc[0]]
     20 reach_angle = np.arctan2(*active_target[::-1])
     21 # Plot reach

IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant