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 should increase differently #92

Closed thartbm closed 5 years ago

thartbm commented 5 years ago

Right now, in a task where the rotation changes gradually, it does so by making sure the first trial actually has the specified initial rotation, while the last trial has the final rotation. This was not intended, and there are 2 problems with it:

Solution, the rotation on the trials should be:

start = 30 final = -30 trials = 12

In [20]: (((final - start) / trials) * numpy.arange(trials)) + start Out[20]: array([ 30, 25, 20, 15, 10, 5, 0, -5, -10, -15, -20, -25])

That is... if trials are zero-indexed internally...