fileName='createsimulation.hoc',
cellName='bAC217_L4_BP_d04c4872bd',
importSynMechs=True)
## Population parameters
netParams.popParams['PYR'] = {'cellType': 'PYR', 'numCells': 5, 'yRange': [700,800]}
netParams.cellParams['PYR_HH3D_hoc']['conds'] = {'cellType': ['PYR']}
## Synaptic mechanism parameters
netParams.synMechParams['exc'] = {'mod': 'Exp2Syn', 'tau1': 0.8, 'tau2': 5.3, 'e': 0} # NMDA synaptic mechanism
# Stimulation parameters
netParams.stimSourceParams['bkg'] = {'type': 'NetStim', 'rate': 50, 'noise': 0.0}
netParams.stimTargetParams['bkg->all'] = {'source': 'bkg', 'conds': {'cellType': ['PYR']}, 'weight': 10.0, 'sec': 'soma', 'delay': 15, 'synMech': 'exc'}
# Simulation options
simConfig = specs.SimConfig() # object of class SimConfig to store simulation configuration
simConfig.duration = 0.05*1e3 # Duration of the simulation, in ms
simConfig.dt = 0.1 # Internal integration timestep to use
simConfig.verbose = False # Show detailed messages
simConfig.recordTraces = {'V_soma':{'sec':'soma','loc':0.5,'var':'v'}}
simConfig.recordStep = 1 # Step size in ms to save data (eg. V traces, LFP, etc)
simConfig.filename = 'cell_lfp' # Set file output name
simConfig.recordLFP = [[x, y, 35] for y in range(280, 1000, 150) for x in [30, 90]]
simConfig.analysis['plotTraces'] = {'include': [('E',0)], 'oneFigPer':'cell', 'overlay': True, 'figSize': (5,3),'saveFig': True} # Plot recorded traces for this list of cells
simConfig.analysis['plotLFP'] = {'includeAxon': False, 'plots': ['timeSeries', 'locations'], 'figSize': (5,9), 'saveFig': True}
simConfig.analysis['getCSD'] = {'spacing_um': 150, 'vaknin': True}
#simConfig.analysis['plotCSD'] = {'timeRange': [10,45],'saveFig': True}
#sim.analysis.getCSD(spacing_um= 150, vaknin= True)
#simConfig.analysis['plotCSD'] = {'saveFig': True}
# Create network and run simulation