Skip to content

Commit ef0c097

Browse files
committed
Split
1 parent f8464bb commit ef0c097

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.github/workflows/non-omv.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@ jobs:
6565
cd CellTypesDatabase/models
6666
nrnivmodl NEURON
6767
68-
echo "Parsing all.."
68+
echo "----- Parsing perisomatic.."
6969
python ParseAll.py
70+
echo "----- Parsing all active.."
71+
python ParseAll.py -all_active
7072
ls -alt NeuroML2
7173
7274
- name: Tune data

CellTypesDatabase/models/ParseAll.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@
4747

4848
print("PA >> Parsing cell dirs: %s" % cell_dirs)
4949

50+
do_all_active = '-all_active' in sys.argv
51+
52+
completed = []
5053
for model_id in cell_dirs:
5154

5255
count+=1
@@ -65,10 +68,14 @@
6568

6669
# configure NEURON
6770
if all_active:
68-
#continue # skip this...
71+
if not do_all_active:
72+
print('Not proceeding with this file...')
73+
continue # skip this...
6974
utils = AllActiveUtils(description, axon_type='stub') # all-active type
7075
else:
71-
continue # skip this...
76+
if do_all_active:
77+
print('Not proceeding with this file...')
78+
continue # skip this...
7279
utils = Utils(description) # perisomatic type
7380

7481

@@ -391,6 +398,7 @@
391398
inst.location = neuroml.Location(x=300*X, y=0, z=300*Z)
392399

393400
print('PA >> Adding to network of all cells at: %s'%inst.location)
401+
completed.append(model_id)
394402

395403

396404
net_file = '%s/%s.net.nml'%(nml2_cell_dir,net_ref)
@@ -400,4 +408,4 @@
400408

401409
pynml.nml2_to_svg(net_file, verbose=False)
402410

403-
print("PA >> Finished parsing cell dirs: %s" % cell_dirs)
411+
print("PA >> Finished parsing cell dirs: %s" % completed)

0 commit comments

Comments
 (0)