def Bg2Pyr(syn_params, sec_x, sec_id): """Create a bg2pyr synapse :param syn_params: parameters of a synapse :param sec_x: normalized distance along the section :param sec_id: target section :return: NEURON synapse object """ lsyn = h.bg2pyr(sec_x, sec=sec_id) if syn_params.get('initW'): lsyn.initW = float(syn_params['initW']) if syn_params.get('taun1'): lsyn.taun1 = float(syn_params['taun1']) if syn_params.get('taun2'): lsyn.taun2 = float(syn_params['taun2']) if syn_params.get('gNMDAmax'): lsyn.gNMDAmax = float(syn_params['gNMDAmax']) if syn_params.get('enmda'): lsyn.enmda = float(syn_params['enmda']) if syn_params.get('taua1'): lsyn.taua1 = float(syn_params['taua1']) if syn_params.get('taua2'): lsyn.taua2 = float(syn_params['taua2']) if syn_params.get('gAMPAmax'): lsyn.gAMPAmax = float(syn_params['gAMPAmax']) if syn_params.get('eampa'): lsyn.eampa = float(syn_params['eampa']) return lsyn
def Bg2Pyr(syn_params, sec_x, sec_id): """Create a bg2pyr synapse :param syn_params: parameters of a synapse :param sec_x: normalized distance along the section :param sec_id: target section :return: NEURON synapse object """ lsyn = h.bg2pyr(sec_x, sec=sec_id) if syn_params.get('initW'): lsyn.initW = float(syn_params['initW']) elif syn_params.get('initW_lognormal_mean') and syn_params.get('initW_lognormal_std'): lsyn.initW = lognorm(syn_params['initW_lognormal_mean'],syn_params['initW_lognormal_std']) return lsyn
def bg2PN(syn_params, sec_x, sec_id): lsyn = h.bg2pyr(sec_x, sec=sec_id) if syn_params.get('initW'): lsyn.initW = float(syn_params['initW']) return lsyn