File tree Expand file tree Collapse file tree 2 files changed +17
-7
lines changed
Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -51,17 +51,23 @@ jobs:
5151 pip install pyneuroml airspeed
5252 python data_summary.py -test
5353
54- - name : Extract NeuroML2 models from NEURON files
54+ - name : Download selected NEURON models
5555 run : |
5656 pip install neuron
57-
5857 cd CellTypesDatabase/models
5958 pip install markupsafe==2.0.1
6059 python download.py
6160 ls -alt 4*
6261
62+
63+ - name : Extract NeuroML2 models from NEURON files
64+ run : |
65+ cd CellTypesDatabase/models
6366 nrnivmodl NEURON
67+
68+ echo "Parsing all.."
6469 python ParseAll.py
70+ ls -alt NeuroML2
6571
6672 - name : Tune data
6773 run : |
Original file line number Diff line number Diff line change 4545
4646ca_dynamics = {}
4747
48+ print ("Parsing cell dirs: %s" % cell_dirs )
49+
4850for model_id in cell_dirs :
4951
52+ count += 1
5053 if os .path .isdir (model_id ):
5154 os .chdir (model_id )
5255 else :
6265
6366 # configure NEURON
6467 if all_active :
68+ continue # skip this...
6569 utils = AllActiveUtils (description , axon_type = 'stub' ) # all-active type
6670 else :
67- continue
71+ # continue
6872 utils = Utils (description ) # perisomatic type
6973
7074
378382 pop .instances .append (inst )
379383
380384 width = 7
381- X = count % width
382- Z = (count - X ) / width
385+ X = ( count - 1 ) % width
386+ Z = (( count - 1 ) - X ) / width
383387 inst .location = neuroml .Location (x = 300 * X , y = 0 , z = 300 * Z )
384388
385- count += 1
386-
387389
388390net_file = '%s/%s.net.nml' % (nml2_cell_dir ,net_ref )
389391neuroml .writers .NeuroMLWriter .write (net_doc , net_file )
390392
391393print ("Written network with %i cells in network to: %s" % (count ,net_file ))
392394
393395pynml .nml2_to_svg (net_file )
396+
397+ print ("Finished parsing cell dirs: %s" % cell_dirs )
You can’t perform that action at this time.
0 commit comments