Skip to content

Commit

Permalink
Add index file for HH
Browse files Browse the repository at this point in the history
  • Loading branch information
pgleeson committed May 2, 2024
1 parent cbf7c32 commit d8ec8bf
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions NetPyNE/HHSmall/HHSmall.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,8 @@ def generate_netParams(*argv):
simConfig.analysis['plotRaster'] = True # Plot raster
simConfig.analysis['plotTraces'] = {'include': [2]} # Plot raster
simConfig.analysis['plot2Dnet'] = True # Plot 2D net cells and connections

simConfig.validateNetParams=True

cfg = simConfig
netParams = generate_netParams(None)
6 changes: 6 additions & 0 deletions NetPyNE/HHSmall/index.npjson
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"mod_folder": "../HHSmall",
"simConfig": "HHSmall.py",
"python_run": "init.py",
"netParams": "HHSmall.py"
}
10 changes: 10 additions & 0 deletions NetPyNE/HHSmall/init.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""
init.py
Starting script to run NetPyNE-based model.
"""

from netpyne import sim

cfg, netParams = sim.loadFromIndexFile('index.npjson')
sim.createSimulateAnalyze(netParams, cfg)

0 comments on commit d8ec8bf

Please sign in to comment.