cortex-lab / PinkRigs

Shared code for processing data on the pink rigs
4 stars 1 forks source link

ephys alignment issue #26

Closed takacsflora closed 1 year ago

takacsflora commented 2 years ago

Experiment zaru\AV024\2022-10-11\4

Corresponding ephys: AV024_2022-10-11_SparseNoise_part2_g0

Issue: flipperStEnIdx gets partitioned into 3 with the 1 s flipper threshold even though this is one experiment

cbimbo commented 2 years ago

Arduino code is different (100Hz sampling and at each sample attributing a value, vs. taking the delays between flips as a Poisson distribution constrained between 10 and 200 ms). Need to change the arduino code.

pipcoen commented 1 year ago

Okay, this has been changed in the .txt and should work (I have tested at my computer). The flips should be less than 1s always. George will need to update the arduinos with the new code. I will add this to Clickup

nippoo commented 1 year ago

Would you mind submitting the new code as a pull request on https://github.com/nippoo/pipcb/blob/main/firmware/pip_control_board/pip_control_board.ino please? So I can make sure any new boards have the correct implementation!

pipcoen commented 1 year ago

Just needs to be tested. Have pushed to pipcp repo