Skip to content

Commit c5761be

Browse files
committed
Tweaks to enable better debugging
1 parent 58a2e82 commit c5761be

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

.github/workflows/non-omv.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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: |

CellTypesDatabase/models/ParseAll.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,11 @@
4545

4646
ca_dynamics = {}
4747

48+
print("Parsing cell dirs: %s" % cell_dirs)
49+
4850
for model_id in cell_dirs:
4951

52+
count+=1
5053
if os.path.isdir(model_id):
5154
os.chdir(model_id)
5255
else:
@@ -62,9 +65,10 @@
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

@@ -378,16 +382,16 @@
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

388390
net_file = '%s/%s.net.nml'%(nml2_cell_dir,net_ref)
389391
neuroml.writers.NeuroMLWriter.write(net_doc, net_file)
390392

391393
print("Written network with %i cells in network to: %s"%(count,net_file))
392394

393395
pynml.nml2_to_svg(net_file)
396+
397+
print("Finished parsing cell dirs: %s" % cell_dirs)

0 commit comments

Comments
 (0)