示例#1
0
                            'sec_id': 0,
                            'sec_x': 0.9
                        },
                        dtypes=[np.float, np.int32, np.float])

##########################################################################
############################### GAPJUNC ##################################

gap_list = []

if i2i_gap:
    conn = net.add_gap_junctions(source={'pop_name': ['Bask']},
                                 target={'pop_name': ['Bask']},
                                 resistance=0.0001,
                                 target_sections=['somatic'],
                                 connection_rule=syn_percent,
                                 connection_params={
                                     'p': 0.08,
                                     'track_list': gap_list
                                 })
    conn._edge_type_properties['sec_id'] = 0
    conn._edge_type_properties['sec_x'] = 0.9

##########################################################################
############################### INT2INT ##################################
####################### Coupled Unidirectional Pair ######################

##########################################################################
############################### INT2INT ##################################
####################### Coupled Bidirectional Pair #######################
示例#2
0
#         conn.add_properties(names=['delay', 'sec_id', 'sec_x'],
#                         rule=syn_dist_delay_section,
#                         rule_params={'min_delay':syn[dynamics_file]['delay'], 
#                         'sec_id':0, 'sec_x':0.9},
#                         dtypes=[np.float, np.int32, np.float])
#     else:
#         conn.add_properties(names=['delay'], rule=syn_delay, 
#             rule_params={'min_delay':syn[dynamics_file]['delay']}, dtypes=[np.float])

add_delays.append(False)
min_delays.append(-1)#Want to append -1 if not adding delays.

net.add_gap_junctions(source={'pop_name': ['Bask']}, 
		      target={'pop_name': ['Bask']},
 		      resistance = 0.0001, target_sections=['somatic'], 
		      connection_rule=dist_conn_perc,
		      connection_params={'min_dist':0.0,
					'max_dist':300.0,'min_syns':1,
					'max_syns':2,'A':0.08,'B':0.0})
conn._edge_type_properties['sec_id'] = 0
conn._edge_type_properties['sec_x'] = 0.9

net.add_edges(source=thalamus.nodes(), target=net.nodes(pop_name='PyrA'),
                   connection_rule=one_to_one,
                   syn_weight=7.0e-03,
                   weight_function='lognormal',
                   weight_sigma=2.0e-03,
                   target_sections=['basal'],
                   delay=0.1,
                   distance_range=[0.0, 300.0],
                   dynamics_params='AMPA_ExcToExc.json',