Skip to content

Commit

Permalink
Initial test on index.npjson
Browse files Browse the repository at this point in the history
  • Loading branch information
pgleeson committed Mar 21, 2024
1 parent 564eced commit f876044
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NetPyNE/HybridSmall/HybridSmall.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,5 @@
simConfig.analysis['plotRaster'] = {'orderInverse': False} #True # Whether or not to plot a raster
simConfig.analysis['plotTraces'] = {'include': [1,51]} # plot recorded traces for this list of cells
#simConfig.analysis['plotRatePSD'] = {'include': ['allCells', 'PYR_HH', 'PYR_Izhi'], 'smooth': 10} # plot recorded traces for this list of cells

cfg = simConfig
6 changes: 6 additions & 0 deletions NetPyNE/HybridSmall/index.npjson
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"mod_folder": "../HybridSmall",
"simConfig": "HybridSmall.py",
"python_run": "init.py",
"netParams": "HybridSmall.py"
}
10 changes: 10 additions & 0 deletions NetPyNE/HybridSmall/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)
2 changes: 1 addition & 1 deletion NetPyNE/UI/clean.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
rm -rf x86_64 __pycache__
rm -rf x86_64 arm64 __pycache__ *dat
mv *mod *hoc *nrn_py *netpyne.py *nrn.py *dat *spikes *props *txt NET*nml LEMS*json test*json /tmp

0 comments on commit f876044

Please sign in to comment.