ted-hou / mouse-behavior-arduino

You know what else is cool? Horses.
0 stars 0 forks source link

If lever is released before CUE_ON, plots don't work #31

Closed ted-hou closed 7 years ago

ted-hou commented 7 years ago

If lever is released before CUE_ON. There will not be a CUE_ON eventMarker returned for this trial, which will make the trial unplotable if user wants to align each trial to CUE_ON.

A potential solution will be to ignore these trials and only plot those with a reference event.

ahamilos commented 7 years ago

ohhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh!!

On Thu, Nov 10, 2016 at 5:47 PM, ted-hou notifications@github.com wrote:

If lever is released before CUE_ON. There will be no EVENT_CUE_ON for this trial, which will make the trial unplotable user wants to align each trial to CUE_ON

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ted-hou/mouse-behavior-arduino/issues/31, or mute the thread https://github.com/notifications/unsubscribe-auth/AOOUoZwzkakX2Xx-VoEUS7skgisTerzeks5q8579gaJpZM4KvOqp .

Allison E. Hamilos

Harvard Graduate Program in Neuroscience Harvard Medical School Harvard-MIT Division of Health Sciences and Technology MD-PhD Candidate

ted-hou commented 7 years ago

Aligned Plot If CUE_ON events do not occur during a trial, the trial will not be plotted, as shown in the figure above. The latest commit should prevent these errors.

If we want to see spurious lever presses in all trials, I think a good solution would be to use trial_init as reference event. Then plot cue_on, enter_window, leave_window events as reference. Successful trials won't be so nicely aligned, but we'll still be able to see things.