cellRule = params.importCellParams(
label='CA1_swc',
conds={'cellType': 'PYR', 'cellModel': 'HH3D'},
fileName='n127.swc',
cellName='swc_cell')
params.renameCellParamsSec('CA1_swc', 'soma_0', 'soma') # rename imported section 'soma_0' to 'soma'
for secName in cellRule['secs']:
cellRule['secs'][secName]['mechs']['pas'] = {'g': 0.0000357, 'e': -70}
cellRule['secs'][secName]['geom']['cm'] = 1
if secName.startswith('soma'):
cellRule['secs'][secName]['mechs']['hh'] = {'gnabar': 0.12, 'gkbar': 0.036, 'gl': 0.003, 'el': -70}
params.cellParams['CA1_swc']['conds'] = {'cellType': ['PYR']}
# Populations in the network
params.popParams['pop1'] = {
'cellType': 'PYR', #Before stablished
'numCells': 1, #Number of total cells in this pop
'xRange': [0, params.sizeX], #Position of this pop in the size defined in params
'yRange': [0, params.sizeY],
'zRange': [0, params.sizeZ]
}