-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcfg.py
19 lines (16 loc) · 844 Bytes
/
cfg.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from netpyne import specs
# Simulation options
cfg = specs.SimConfig() # object of class SimConfig to store simulation configuration
cfg.duration = 1000 # Duration of the simulation, in ms
cfg.dt = 0.025 # Internal integration timestep to use
cfg.verbose = False # Show detailed messages
cfg.recordTraces = {'V_soma':{'sec':'soma','loc':0.5,'var':'v'}} # Dict with traces to record
cfg.recordStep = 0.1 # Step size in ms to save data (eg. V traces, LFP, etc)
cfg.filename = 'joe_proj' # Set file output name
cfg.saveJson = True
cfg.printPopAvgRates = True
cfg.analysis['plotRaster'] = {'saveFig': True} # Plot a raster
cfg.analysis['plotTraces'] = {'include': [20], 'saveFig': True} # Plot recorded traces for this list of cells
# Variable parameters (used in netParams)
cfg.synMechTau2 = 5
cfg.connWeight = 0.01