Skip to content

Commit

Permalink
flip sign for + clamp
Browse files Browse the repository at this point in the history
  • Loading branch information
aforren1 committed Apr 8, 2022
1 parent 268ce56 commit c7931e4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions analysis/beta/analyze.R
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ for (i in 1:lt) {
targ <- trial[['target']][[j]]
t_ang <- rad2deg(atan2(targ$y, targ$x))
diff_ang <- signed_diff_angle(ang, t_ang)
# nuke the frame info
#trials$frames[[i]] <- NULL
trials$rt[i] <- rt
trials$target_angle[i] <- t_ang
trials$target_dist[i] <- sqrt(targ$x^2 + targ$y^2)
Expand Down
1 change: 1 addition & 0 deletions analysis/clean.r
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ for (i in 1:length(ids)) {

dat_cyc <- rbindlist(dat_cyc)
dat_cyc[, mega_label := paste0('id: ', id, ' group: ', group, ' clamp angle: ', eventual_angle)]
dat_cyc[, dang := dang * ifelse(eventual_angle > 0, -1, 1)]
#labels <- dat_cyc[label=='PERTURBATION', .SD[1], by=id]

ggplot(dat_cyc, aes(x=seq, y = dang, colour=label)) +
Expand Down

0 comments on commit c7931e4

Please sign in to comment.