Sunday, June 24, 2012

Synapse Calibration procedure

on ng-thalamu

There are 4 steps to the calibration:
  1. gleak
  2. Erev
  3. txmt
  4. tau_lpf
For gleak (Erev)
  1. Arrange the board's xml file so the chip and synapse numbers you are looking to calibrate are first in the file
  2. Match the chip and synapse numbers in syn_f_vs_g_sleak.py (f_vs_erev_sleak.py) to the desired chip and synapse numbers AND BE SURE TO SAVE.
  3. In spring, run  syn_f_vs_g_sleak.py (f_vs_erev_sleak.py)
  4. Set the chip and synapse numbers in calib_syn_f_vs_g_sleak.py (calib_f_vs_erev_sleak.py) to the desired chip and synapse numbers AND BE SURE TO SAVE.
  5. Run calib_syn_f_vs_g_sleak.py (calib_f_vs_erev_sleak.py) in ipython --pylab
  6. Execute extract_syn_param_g_lksoma.py (extract_syn_param_erev_lksoma.py) in ipython --pylab, and then call run_default with the appropriate bif file, board name, chip number, and synapse number.
  7. Use median values in histogram as parameters in xml file
For txmt (tau_lpf)
  1. In neuro-boa/apps/calibrate_neuron/calibrate_synapse/calibrate_pe/calibrate_pe.cpp (calibrate_vleakpf/calibrate_vleakpf.cpp):
    1.  make sure the appropriate chip calibration is pushed back
      • CALIBRATION_DAC_FILE.push_back(<check this>);
      • CALIBRATION_ADC_FILE.push_back(<check this>);
    2. make sure the appropriate chip number is pushed back
      • selected_chips.push_back(<chip number>);
    3. select the appropriate chip in the for loop around ~line 621
  2. run make
  3. run calibrate_pe (calibrate_vleakpf)
  4. For txmt:
    1. change pw_values.csv to pw_values_<board>_<chip>.csv
    2. In fit_2d_1coeff.py
      • change filename to match data
      • select synapse
    3. run fit_2d_1coeff.py
    4. set C1 to median value
    5. set C3 to 0
  5. For tau_lpf:
    1. change the data/ folder name to data<chip num>/
    2. In fit_tau.py
      1. change data folder to match chip number
    3. run fit_tau.py
    4. set tau_lpf to median value

No comments:

Post a Comment