def probes(self, gid): # Cell 0 has three voltage probes: # 0, 0: end of branch 1 # 0, 1: end of branch 2 # 0, 2: all terminal points # Values sampled from (0, 0) and (0, 1) should correspond # to the values sampled from (0, 2). # Cell 1 has whole cell probes: # 0, 0: all membrane voltages # 0, 1: all expsyn state variable 'g' if gid == 0: return [ A.cable_probe_membrane_voltage('(location 1 1)'), A.cable_probe_membrane_voltage('(location 2 1)'), A.cable_probe_membrane_voltage('(terminal)') ] elif gid == 1: return [ A.cable_probe_membrane_voltage_cell(), A.cable_probe_point_state_cell('expsyn', 'g') ] else: return []
def probes(self, gid): # Use keyword arguments to check that the wrappers have actually declared keyword arguments correctly. # Place single-location probes at (location 0 0.01*j) where j is the index of the probe address in # the returned list. return [ # probe id (0, 0) A.cable_probe_membrane_voltage(where='(location 0 0.00)'), # probe id (0, 1) A.cable_probe_membrane_voltage_cell(), # probe id (0, 2) A.cable_probe_axial_current(where='(location 0 0.02)'), # probe id (0, 3) A.cable_probe_total_ion_current_density(where='(location 0 0.03)'), # probe id (0, 4) A.cable_probe_total_ion_current_cell(), # probe id (0, 5) A.cable_probe_total_current_cell(), # probe id (0, 6) A.cable_probe_density_state(where='(location 0 0.06)', mechanism='hh', state='m'), # probe id (0, 7) A.cable_probe_density_state_cell(mechanism='hh', state='n'), # probe id (0, 8) A.cable_probe_point_state(target=0, mechanism='expsyn', state='g'), # probe id (0, 9) A.cable_probe_point_state_cell(mechanism='exp2syn', state='B'), # probe id (0, 10) A.cable_probe_ion_current_density(where='(location 0 0.10)', ion='na'), # probe id (0, 11) A.cable_probe_ion_current_cell(ion='na'), # probe id (0, 12) A.cable_probe_ion_int_concentration(where='(location 0 0.12)', ion='na'), # probe id (0, 13) A.cable_probe_ion_int_concentration_cell(ion='na'), # probe id (0, 14) A.cable_probe_ion_ext_concentration(where='(location 0 0.14)', ion='na'), # probe id (0, 15) A.cable_probe_ion_ext_concentration_cell(ion='na'), # probe id (0, 15) A.cable_probe_stimulus_current_cell() ]