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

Sound intensity calibration function and corresponding setting file #481

Closed hagikent closed 1 month ago

hagikent commented 1 month ago

Describe changes:

1.Dedicated setting file to specify attenuation value - SoundAttenuation.csv in the templates folder

  1. GoCueChecker.bonsai is updated to read this file. Screen Shot 2024-05-30 at 13 58 25

Main foraging-bonsai should follow this change. @XX-Yin @alexpiet

What issues or discussions does this update address?

Sound Intensity control/standardization across rigs.

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

No. Only during deploying.

Describe any manual update steps for task computers

SoundAttenuation.csv template should be copy pasted to Documents\ForagingSettings folder.

Was this update tested in 446/447?

Tested in 428

XX-Yin commented 1 month ago

@hagikent Is the purpose of this PR to help perform calibration?

To make changes to the existing bonsai workflow, we can directly save the AttenuationLeft to the Settings_box#.csv. The bonsai workflow already reads the Settings_box#.csv. no need to create another csv file for each rig.

hagikent commented 1 month ago

@XX-Yin

Is the purpose of this PR to help perform calibration?

Yes, then the value will be copy pasted to Settings_box#.csv. As Scis/RAs will be changing the value multiple times during calibration, keeping this file separate from main setting file would be safer to avoid erroneous change in other entries. Please add the SoundAttenuation entry when you update the main foraging.bonsai. Default should be 0 for now (at least while "0.08" file stay in 447).

hagikent commented 1 month ago

please approve if this makes sense and we can go forward (so that we can start calibration in main from next Wed)