-
Notifications
You must be signed in to change notification settings - Fork 1
/
actions.g
1469 lines (953 loc) · 27 KB
/
actions.g
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//genesis
//
// $Id: actions.g 1.13.1.1.1.5 Thu, 04 Apr 2002 11:55:56 +0200 hugo $
//
//////////////////////////////////////////////////////////////////////////////
//'
//' Purkinje tutorial
//'
//' (C) 1998-2002 BBF-UIA
//'
//' see our site at http://www.bbf.uia.ac.be/ for more information regarding
//' the Purkinje cell and genesis simulation software.
//'
//'
//' functional ideas ... Erik De Schutter, erik@bbf.uia.ac.be
//' genesis coding ..... Hugo Cornelis, hugo@bbf.uia.ac.be
//'
//' general feedback ... Reinoud Maex, Erik De Schutter
//'
//////////////////////////////////////////////////////////////////////////////
// actions.g : parallel fiber and climbing fiber actions
int include_actions
if ( {include_actions} == 0 )
include_actions = 1
include mapping.g
//v climbing step delay while climbing fiber is firing
int climbingDelaySteps = 0
//v climbing fiber active synapse
int climbingSynapse = 0
///
/// SH: ActionBasket
///
/// PA: level.: level of activation
///
/// DE: Simulate a basket axon firing
///
function ActionBasket(level)
float level
//- if the state is inactive
if ({getfield {cellpath}/basket_presyn state} == "INACT")
//- set the level of activation
setfield {cellpath}/basket_presyn z {level}
//- remember we the basket axon is active
setfield {cellpath}/basket_presyn \
state "ACT"
//- else the state is inactive
else
//- reset the level of activation
setfield {cellpath}/basket_presyn z 0
//- remember we are inactive
setfield {cellpath}/basket_presyn \
state "INACT"
//- stop the action
setfield /actions/basket \
command ""
end
end
///
/// SH: ActionBasketInit
///
/// PA: path..: path to contain action (ending in '/')
///
/// DE: Initialize basket axons for firing
///
function ActionBasketInit(path)
str path
//- create a script object
create script_out {path}basket
//- make basket axon presynaptic elements
//- and add messages to appropriate channels
create neutral {cellpath}/basket_presyn
disable ^
setfield ^ z 0
addmsg {cellpath}/basket_presyn {cellpath}/#[]/basket \
ACTIVATION z
//- add status field to the element
addfield ^ \
state -description "Status of basket axon"
//- initialize status
setfield ^ \
state "INACT"
end
///
/// SH: ActionBasketStart
///
/// PA: level.: level of activation
///
/// DE: Fire basket axon
///
function ActionBasketStart(level)
float level
//- set field in script object
setfield /actions/basket \
command "ActionBasket "{level / dt}
end
///
/// SH: ActionClimbing
///
/// DE: Simulate a climbing fiber firing
///
function ActionClimbing(strength)
float strength
//- decrement the delay
climbingDelaySteps = {climbingDelaySteps - 1}
//- if there is no synapse active
if (climbingSynapse == 0)
//- activate the first climbing fiber synapse
setfield {cellpath}/climb_presyn1 z {strength}
//- set active synapse
climbingSynapse = 1
//- if the first synapse is active
elif (climbingSynapse == 1)
//- if we are coming from the first synapse
if (climbingDelaySteps == -1)
//- unset activation of first synapse
setfield {cellpath}/climb_presyn1 z 0
//- set delay
climbingDelaySteps = {delaysteps}
//- if we reached the next synapse
elif (climbingDelaySteps == 0)
//- activate second climbing fiber synapse
setfield {cellpath}/climb_presyn2 z {strength}
//- set active synapse
climbingSynapse = 2
end
//- if the second synapse is active
elif (climbingSynapse == 2)
//- check if we are coming from the first synapse
if (climbingDelaySteps == -1)
//- unset activation of second synapse
setfield {cellpath}/climb_presyn2 z 0
//- set delay
climbingDelaySteps = {delaysteps}
//- if we reached the next synapse
elif (climbingDelaySteps == 0)
//- activate third climbing fiber synapse
setfield {cellpath}/climb_presyn3 z {strength}
//- set active synapse
climbingSynapse = 3
end
//- if the third synapse is active
elif (climbingSynapse == 3)
//- check if we are coming from the first synapse
if (climbingDelaySteps == -1)
//- unset activation of third synapse
setfield {cellpath}/climb_presyn3 z 0
//- set delay
climbingDelaySteps = {delaysteps}
//- if we reached the next synapse
elif (climbingDelaySteps == 0)
//- activate fourth climbing fiber synapse
setfield {cellpath}/climb_presyn4 z {strength}
//- set active synapse
climbingSynapse = 4
end
//- if the fourth synapse is active
elif (climbingSynapse == 4)
//- check if we are coming from the first synapse
if (climbingDelaySteps == -1)
//- unset activation of fourth synapse
setfield {cellpath}/climb_presyn4 z 0
//- set delay
climbingDelaySteps = {delaysteps}
//- if we reached the next synapse
elif (climbingDelaySteps == 0)
//- activate fifth climbing fiber synapse
setfield {cellpath}/climb_presyn5 z {strength}
//- set active synapse
climbingSynapse = 5
end
//- if the fifth synapse is active
elif (climbingSynapse == 5)
//- check if we are coming from the first synapse
if (climbingDelaySteps == -1)
//- unset activation of fourth synapse
setfield {cellpath}/climb_presyn5 z 0
//- set delay
climbingDelaySteps = {delaysteps}
//- if we reached the next synapse (but there is none)
elif (climbingDelaySteps == 0)
//- initialize delay
climbingDelaySteps = 1
//- unset active synapse
climbingSynapse = 0
//- stop the action
setfield /actions/climbing \
command ""
end
end
end
///
/// SH: ActionClimbingInit
///
/// PA: path..: path to contain action (ending in '/')
///
/// DE: Initialize climbing fiber messages
///
function ActionClimbingInit(path)
str path
//- create a script object
create script_out {path}climbing
//- initialize number of delay steps
climbingDelaySteps = 1
//- make climbing fiber presynaptic elements
//- and add messages to appropriate channels
create neutral {cellpath}/climb_presyn1
disable {cellpath}/climb_presyn1
setfield {cellpath}/climb_presyn1 z 0
addmsg {cellpath}/climb_presyn1 {cellpath}/main[0-2]/climb \
ACTIVATION z
create neutral {cellpath}/climb_presyn2
disable {cellpath}/climb_presyn2
setfield {cellpath}/climb_presyn2 z 0
addmsg {cellpath}/climb_presyn2 {cellpath}/main[3-8]/climb \
ACTIVATION z
create neutral {cellpath}/climb_presyn3
disable {cellpath}/climb_presyn3
setfield {cellpath}/climb_presyn3 z 0
addmsg {cellpath}/climb_presyn3 {cellpath}/br1[0-6]/climb \
ACTIVATION z
addmsg {cellpath}/climb_presyn3 {cellpath}/br2[0-6]/climb \
ACTIVATION z
create neutral {cellpath}/climb_presyn4
disable {cellpath}/climb_presyn4
setfield {cellpath}/climb_presyn4 z 0
addmsg {cellpath}/climb_presyn4 {cellpath}/br1[7-12]/climb \
ACTIVATION z
addmsg {cellpath}/climb_presyn4 {cellpath}/br2[7-12]/climb \
ACTIVATION z
addmsg {cellpath}/climb_presyn4 {cellpath}/br3[0-8]/climb \
ACTIVATION z
create neutral {cellpath}/climb_presyn5
disable {cellpath}/climb_presyn5
setfield {cellpath}/climb_presyn5 z 0
addmsg {cellpath}/climb_presyn5 {cellpath}/br1[13-20]/climb \
ACTIVATION z
addmsg {cellpath}/climb_presyn5 {cellpath}/br2[13-21]/climb \
ACTIVATION z
addmsg {cellpath}/climb_presyn5 {cellpath}/br3[9-16]/climb \
ACTIVATION z
end
///
/// SH: ActionClimbingStart
///
/// DE: Fire climbing fiber
///
function ActionClimbingStart(strength)
float strength
//- set field in script object
setfield /actions/climbing \
command "ActionClimbing "{strength / dt}
end
///
/// SH: ActionIClamp
///
/// PA: elSource.: source element
/// fiSource.: source field
/// elTarget.: target element
/// fiTarget.: target field
///
/// DE: Simulate current injection
///
/// Copies elSource->fiSource to elTarget->fiTarget.
///
function ActionIClamp(elSource,fiSource,elTarget,fiTarget)
str elSource
str fiSource
str elTarget
str fiTarget
//echo "current clamp : "{elTarget}"."{fiTarget}" = "{getfield {elSource} {fiSource}}
//- set current injection as given in parameters
setfield {elTarget} {fiTarget} {getfield {elSource} {fiSource}}
end
///
/// SH: ActionIClampSetGenerator
///
/// PA: path..: path of parent to contain the object
///
/// DE: Set the generator settings to respect the global variables
/// vars : {iClampCurrentBase}
/// {iClampCurrentOffset}
/// {iClampCurrentWidth}
/// {iClampCurrentPeriod}
/// {iClampCurrentTarget}
///
function ActionIClampSetGenerator(path)
str path
//- set fields of generator
setfield {path}current \
level1 {{iClampCurrentBase + iClampCurrentOffset} * 1.0e-9} \
baselevel {iClampCurrentBase * 1.0e-9} \
width1 {iClampCurrentWidth * 1.0e-3} \
delay2 {iClampCurrentPeriod * 1.0e-3} \
ctecurrent {iClampCurrentBase * 1.0e-9} \
target {iClampCurrentTarget} \
delay1 0 \
level2 0 \
width2 0 \
trig_mode 0
end
///
/// SH: ActionIClampCreateGenerator
///
/// PA: path..: path of parent to contain the object
///
/// DE: create the pulse generator for current injection experiments
///
function ActionIClampCreateGenerator(path)
str path
//- go to the given element
pushe {path}
//- create the pulsegen object
create pulsegen current
//- set fields for pulse generator
setfield ^ \
level1 2.0e-9 \
width1 30 \
delay1 0 \
level2 0 \
width2 0 \
delay2 0 \
baselevel 0 \
trig_mode 0
//- add a field for a constant current
addfield ^ ctecurrent \
-description "Constant current"
//- set this field to something sensible
setfield ^ ctecurrent 2.0e-9
//- add a field for current target element
addfield ^ target \
-description "Target element"
//- set this field to something sensible
setfield ^ target "soma"
//- set the fields for current clamp to registered globals
ActionIClampSetGenerator {path}
//- go to previous current element
pope
end
///
/// SH: ActionIClampInit
///
/// PA: path..: path to contain action (ending in '/')
///
/// DE: Create current injection elements and messages
///
function ActionIClampInit(path)
str path
//- create a script object
create script_out {path}iClamp
//- create elements
ActionIClampCreateGenerator {path}iClamp/
end
///
/// SH: ActionIClampStart
///
/// PA: mode..: 0 : constant current
/// 1 : current pulses
///
/// DE: Start injection of current with given parameters
///
/// NO: This setup interferes with settings.g/UpdateFrequencies, see notes
/// overthere to understand.
///
function ActionIClampStart(mode)
int mode
//- if pulse train requested
if (mode == 1)
//- give some info
echo "Switching to current pulses"
//- set command for script object
//! two commands : for hsolve and original element
setfield /actions/iClamp \
command {"ActionIClamp " \
@ "/actions/iClamp/current " \
@ "output " \
@ {cellpath} \
@ "/solve " \
@ {findsolvefield \
{cellpath}/solve \
{getfield \
/actions/iClamp/current \
target} \
inject} \
@ " ; " \
@ "ActionIClamp " \
@ "/actions/iClamp/current " \
@ "output " \
@ {cellpath} \
@ "/" \
@ {getfield \
/actions/iClamp/current \
target} \
@ " inject" \
}
//- if constant current requested
elif (mode == 0)
//- give some info
echo "Switching to constant current"
//- set command for script object
//! two commands : for hsolve and original element
setfield /actions/iClamp \
command {"ActionIClamp " \
@ "/actions/iClamp/current " \
@ "ctecurrent " \
@ {cellpath} \
@ "/solve " \
@ {findsolvefield \
{cellpath}/solve \
{getfield \
/actions/iClamp/current \
target} \
inject} \
@ " ; " \
@ "ActionIClamp " \
@ "/actions/iClamp/current " \
@ "ctecurrent " \
@ {cellpath} \
@ "/" \
@ {getfield \
/actions/iClamp/current \
target} \
@ " inject" \
}
//- else (illegal mode)
else
//- give diagnostics
echo "Somebody messed up the code"
end
//- reset the pulse generator
call /actions/iClamp/current RESET
end
///
/// SH: ActionIClampStop
///
/// DE: Stop ongoing current injection
///
function ActionIClampStop
//- set field in script object
setfield /actions/iClamp \
command ""
//- clear inject field of target compartment
setfield \
{cellpath}/solve \
{findsolvefield \
{cellpath}/solve \
{getfield \
/actions/iClamp/current \
target} \
inject} \
0
setfield {getfield \
/actions/iClamp/current \
target} \
inject 0
//! in earlier versions of the tutorial :
//! after these commands the original soma->inject field can still
//! be non-zero. Take care : hsolve uses that field to initialize its
//! own compartment injection fields (e.g. during reset).
end
///
/// SH: ActionParallelCreateBigDistr
///
/// DE: Create presynaptic neutral elements for distributed parallel activation
/// Within {cellpath} neutral elements are created for distributed
/// synchronous activation of parallel fibers
///
function ActionParallelCreateBigDistr
// 100 : 3,6,9,12 + 14
// 50 : 5 + 28
// 25 : 11 + 56
//- create neutral elements
create neutral {cellpath}/ds100_synchro[0]
create neutral {cellpath}/ds100_synchro[1]
create neutral {cellpath}/ds100_synchro[2]
create neutral {cellpath}/ds100_synchro[3]
create neutral {cellpath}/ds050_synchro
create neutral {cellpath}/ds025_synchro
//- disable the elements from simulation
disable {cellpath}/ds100_synchro[0]
disable {cellpath}/ds100_synchro[1]
disable {cellpath}/ds100_synchro[2]
disable {cellpath}/ds100_synchro[3]
disable {cellpath}/ds050_synchro
disable {cellpath}/ds025_synchro
//- set messaged value to zero
setfield {cellpath}/ds100_synchro[0] \
z 0
setfield {cellpath}/ds100_synchro[1] \
z 0
setfield {cellpath}/ds100_synchro[2] \
z 0
setfield {cellpath}/ds100_synchro[3] \
z 0
setfield {cellpath}/ds050_synchro \
z 0
setfield {cellpath}/ds025_synchro \
z 0
//- add messages to elements
int i
for (i = 0; i < 100; i = i + 1)
// calculate indices
int i1 = {3+i*14}
int i2 = {6+i*14}
int i3 = {9+i*14}
int i4 = {12+i*14}
// genesis 2.1
// i1 = 0
// i2 = 0
// i3 = 0
// i4 = 0
addmsg {cellpath}/ds100_synchro[0] \
{cellpath}/spine[{i1}]/head[{i1}]/par \
ACTIVATION z
addmsg {cellpath}/ds100_synchro[1] \
{cellpath}/spine[{i2}]/head[{i2}]/par \
ACTIVATION z
addmsg {cellpath}/ds100_synchro[2] \
{cellpath}/spine[{i3}]/head[{i3}]/par \
ACTIVATION z
addmsg {cellpath}/ds100_synchro[3] \
{cellpath}/spine[{i4}]/head[{i4}]/par \
ACTIVATION z
if (i % 2 == 0)
int i5 = {5+i*14}
// genesis 2.1
// i5 = 0
addmsg {cellpath}/ds050_synchro \
{cellpath}/spine[{i5}]/head[{i5}]/par \
ACTIVATION z
if (i % 4 == 0)
int i6 = {11+i*14}
// genesis 2.1
// i6 = 0
addmsg {cellpath}/ds025_synchro \
{cellpath}/spine[{i6}]/head[{i6}]/par \
ACTIVATION z
end
end
end
end
///
/// SH: ActionParallelCreateSmallDistr
///
/// DE: Create distributed activation msgs for small cell
///
function ActionParallelCreateSmallDistr
// 10 : 3,6,9,12 + 14
// 5 : 5 + 28
// 3 : 11 + 56
//- create neutral elements
create neutral {cellpath}/ds010_synchro[0]
create neutral {cellpath}/ds010_synchro[1]
create neutral {cellpath}/ds010_synchro[2]
create neutral {cellpath}/ds010_synchro[3]
create neutral {cellpath}/ds005_synchro
create neutral {cellpath}/ds003_synchro
//- disable the elements from simulation
disable {cellpath}/ds010_synchro[0]
disable {cellpath}/ds010_synchro[1]
disable {cellpath}/ds010_synchro[2]
disable {cellpath}/ds010_synchro[3]
disable {cellpath}/ds005_synchro
disable {cellpath}/ds003_synchro
//- set messaged value to zero
setfield {cellpath}/ds010_synchro[0] \
z 0
setfield {cellpath}/ds010_synchro[1] \
z 0
setfield {cellpath}/ds010_synchro[2] \
z 0
setfield {cellpath}/ds010_synchro[3] \
z 0
setfield {cellpath}/ds005_synchro \
z 0
setfield {cellpath}/ds003_synchro \
z 0
//- add messages to elements
int i
for (i = 0; i < 10; i = i + 1)
// calculate indices
int i1 = {3+i*14}
int i2 = {6+i*14}
int i3 = {9+i*14}
int i4 = {12+i*14}
// genesis 2.1
// i1 = 0
// i2 = 0
// i3 = 0
// i4 = 0
addmsg {cellpath}/ds010_synchro[0] \
{cellpath}/spine[{i1}]/head[{i1}]/par \
ACTIVATION z
addmsg {cellpath}/ds010_synchro[1] \
{cellpath}/spine[{i2}]/head[{i2}]/par \
ACTIVATION z
addmsg {cellpath}/ds010_synchro[2] \
{cellpath}/spine[{i3}]/head[{i3}]/par \
ACTIVATION z
addmsg {cellpath}/ds010_synchro[3] \
{cellpath}/spine[{i4}]/head[{i4}]/par \
ACTIVATION z
if (i % 2 == 0)
int i5 = {5+i*14}
// genesis 2.1
// i5 = 0
addmsg {cellpath}/ds005_synchro \
{cellpath}/spine[{i5}]/head[{i5}]/par \
ACTIVATION z
if (i % 4 == 0)
int i6 = {11+i*14}
// genesis 2.1
// i6 = 0
addmsg {cellpath}/ds003_synchro \
{cellpath}/spine[{i6}]/head[{i6}]/par \
ACTIVATION z
end
end
end
end
///
/// SH: ActionParallelCreateDistr
///
/// DE: Create presynaptic neutral elements for distributed parallel activation
/// Within {cellpath} neutral elements are created for distributed
/// synchronous activation of parallel fibers
///
/// NO: Expanding a wildcard list with as result a very long string gives a
/// segmentation fault. So we must use an entry in the config file to
/// determine the number of spines in the read cell.
///
function ActionParallelCreateDistr
//- create status element
create neutral {cellpath}/dssts_synchro
//- disable the element from simulation
disable {cellpath}/dssts_synchro
//- add field for status
addfield {cellpath}/dssts_synchro \
state -description "Status for distributed firing"
//- default status is inactive
setfield {cellpath}/dssts_synchro \
state "INACT"
//- add field for number of firings
addfield {cellpath}/dssts_synchro \
iFirings -description "Number of synchro activated synapses"
//- determine number of spines
// following line gives a segmentation fault
//int iSpines = {NumberOfElements {cellpath}/spine}
// that's why the number of spines is set up in the config
int iSpines = {getfield /config iSpines}
//- give diagnostics
echo Setting up distribution for {iSpines} spines
//- if we are working with the big model
if (iSpines == 1474)
//- setup distributions for big model
ActionParallelCreateBigDistr
//- if we are working with the small model
elif (iSpines == 142)
//- setup distributions for small model
ActionParallelCreateSmallDistr
end
end
///
/// SH: ActionParallelCreateLocal
///
/// DE: Create presynaptic neutral elements for local parallel activation
/// Searches /mappings/ for dendrites that need simultanous activation
/// For every dendrite branch 20 messages are set up (so we need at least
/// 20 spines per mapping).
/// The neutral elements are created within {cellpath} and are named to
/// the dendrite branchlets they activate.
///
function ActionParallelCreateLocal
//- loop over all elements that have been mapped
str mappedDend