AllenNeuralDynamics / dynamic-foraging-task

Bonsai/Harp workflow for Dynamic Foraging with Python GUI for visualization and control
MIT License
5 stars 4 forks source link

Update optogenetics #538

Closed XX-Yin closed 1 week ago

XX-Yin commented 2 weeks ago

Pull Request instructions:

Describe changes:

  1. Switch Save button color to magenta when laser calibration changes.
  2. Clear laser calibration data in the optogenetics window after pressing Start button.
  3. Set protocol to constant protocol in calibration panel when copying pulse protocol from optogenetic panel.
  4. Fixed an error when loading optogenetic frequency of pulse protocol.
  5. Set different colors for different optogenetic conditions during visualization.
  6. Add new field MinOptoInterval to set minimum interval between two optogenetic trials.
  7. Add minimum_opto_interval to NWB

What issues or discussions does this update address?

see "Describe changes" section for details.

Describe the expected change in behavior from the perspective of the experimenter

  1. Optogenetic experiments will display different colors depending on the optogenetic conditions.
  2. The default minimum interval between two optogenetics trials is 0 trials.

Describe any manual update steps for task computers

No

Was this update tested in 446/447?

tested in 323_EPHYS3

XX-Yin commented 1 week ago

@alexpiet @hanhou This is ready for review.