thartbm / PyVMEC

A Python-based GUI to create and run visuo-motor experiments.
GNU General Public License v3.0
1 stars 3 forks source link

Gradual rotations issues #69

Closed thartbm closed 5 years ago

thartbm commented 6 years ago

Gradual rotations are increased trial-by-trial in the actual experiment, BUT:

  1. The rotation for the trial is not recorded: the maximum rotation is recorded. We want the actual rotation on that trial.

  2. The cursor keeps rotating more and more. We have a paradigm with 100 trials for a gradual rotation to 30 degrees, but at trial 70 we get about 70 degrees rotation. It should stop increasing at the maximum rotation.

So for each trial:

if rotation >= 0:
    sign = 1
else:
    sign = -1

trial_rotation = sign * max(abs(task_rotation), trial_number)

And record that trial rotation in the data.

thartbm commented 5 years ago

Gradual rotations were rounded to whole numbers because initial and final rotations were integers causing Python to generate some pretty weird gradual rotations.

thartbm commented 5 years ago

Fixed by converting to floats.