-
Notifications
You must be signed in to change notification settings - Fork 0
/
simutils.c
5981 lines (5099 loc) · 295 KB
/
simutils.c
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
/* Generated by Pyrex 0.9.5.1a on Wed Jun 27 13:15:54 2007 */
#include "Python.h"
#include "structmember.h"
#ifndef PY_LONG_LONG
#define PY_LONG_LONG LONG_LONG
#endif
#ifdef __cplusplus
#define __PYX_EXTERN_C extern "C"
#else
#define __PYX_EXTERN_C extern
#endif
__PYX_EXTERN_C double pow(double, double);
#include "randmtzig.c"
#include "math.h"
#include "stdlib.h"
#include "numpy/arrayobject.h"
typedef struct {PyObject **p; char *s;} __Pyx_InternTabEntry; /*proto*/
typedef struct {PyObject **p; char *s; long n;} __Pyx_StringTabEntry; /*proto*/
static PyObject *__pyx_m;
static PyObject *__pyx_b;
static int __pyx_lineno;
static char *__pyx_filename;
static char **__pyx_f;
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list); /*proto*/
static int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type); /*proto*/
static int __Pyx_PrintItem(PyObject *); /*proto*/
static int __Pyx_PrintNewline(void); /*proto*/
static void __Pyx_WriteUnraisable(char *name); /*proto*/
static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name); /*proto*/
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb); /*proto*/
static int __Pyx_InternStrings(__Pyx_InternTabEntry *t); /*proto*/
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /*proto*/
static PyTypeObject *__Pyx_ImportType(char *module_name, char *class_name, long size); /*proto*/
static void __Pyx_AddTraceback(char *funcname); /*proto*/
/* Declarations from c_python */
/* Declarations from c_numpy */
static PyTypeObject *__pyx_ptype_7c_numpy_dtype = 0;
static PyTypeObject *__pyx_ptype_7c_numpy_ndarray = 0;
static PyTypeObject *__pyx_ptype_7c_numpy_flatiter = 0;
/* Declarations from simutils */
struct __pyx_t_8simutils_Connection_Group_struct {
int output_num;
int input_num;
double (*weights);
double sign;
double dt;
char (*outspike);
char (*inspike);
char (*old_outspike);
char (*old_inspike);
double (*in_V);
double (*out_V);
int type;
double (*weight_saturation);
double (*x);
double (*xtmp);
double (*y);
double (*ytmp);
double (*th);
double (*beta);
int use_beta;
double tau_beta;
double activation_magnitude;
double tau_activation;
double tau_thresh;
double thresh_o;
double xo;
double yo;
double eta;
double lambda_decay;
int learning_rule;
double (*v_backspike_slow);
double (*v_backspike_fast);
double (*v_total);
double (*g_nmda);
double (*I_nmda);
double (*I_nmda_slow);
double (*I_nmda_fast);
double (*Ca);
double peak_backspike_slow;
double peak_backspike_fast;
double backspike_amplitude;
double k_minus;
double k_plus;
double g_t;
double Vo;
double Vp;
double i_nmda_mu;
double i_nmda_s;
double i_nmda_f;
double tau_nmda_s;
double tau_nmda_f;
double mg1;
double mg2;
double tau_ca;
double omega_offset;
double alpha1;
double alpha2;
double beta1;
double beta2;
double theta_o;
double omega_max;
double eta_down;
double eta_up;
double eta_p1;
double eta_p2;
double eta_p3;
double eta_p4;
double eta_gamma0;
double tau_backspike_fast;
double tau_backspike_slow;
double tau_minus;
double tau_plus;
double a_minus;
double a_plus;
double g_max;
int nearest_neighbor;
double (*M);
double (*P);
double tau_x;
double tau_y;
double A2_minus;
double A2_plus;
double A3_minus;
double A3_plus;
double (*r1);
double (*r2);
double (*o1);
double (*o2);
};
struct __pyx_t_8simutils_Neuron_Group_struct {
int quantity;
double dt;
char (*spike);
char (*old_spike);
int number_of_connection_groups_to;
int type;
double (save_spike_range[2]);
char (*(c_old_spike[31]));
int (c_num_incell[31]);
int (c_num_outcell[31]);
int (c_sign[31]);
double (*(c_g[31]));
double (*(c_weights[31]));
double (*V);
double (*time_to_next_spike);
double min_latency;
double max_latency;
double time_between_rates;
double time_to_next_rate;
double (*rate);
int number_of_rates;
int sequential;
int which_rate;
double (*time_to_stop_refract);
double (*V_reset);
double tau_m;
double tau_ex;
double tau_in;
double reset_adaptation;
double t_refract;
double V_rev_exc;
double V_rev_inh;
double V_thresh;
double g_exc_max;
double g_inh_max;
double (*y);
double activation_magnitude;
double tau_activation;
double time_to_next_pattern;
double time_for_last_pattern;
int (*pattern_count);
int (*pattern_length);
double rate_val;
double (*u);
double (*epsp1);
double (*epsp2);
double (*ipsp1);
double (*ipsp2);
double a;
double b;
double c;
double d;
double I;
double V_peak;
double tau_epsp1;
double tau_epsp2;
double epsp_scale;
};
static double (*(__pyx_f_8simutils_DoubleData(PyArrayObject *))); /*proto*/
static char (*(__pyx_f_8simutils_CharData(PyArrayObject *))); /*proto*/
static int (*(__pyx_f_8simutils_IntData(PyArrayObject *))); /*proto*/
static int (__pyx_f_8simutils_Dim0(PyArrayObject *)); /*proto*/
static int (__pyx_f_8simutils_Dim1(PyArrayObject *)); /*proto*/
static PyObject *(__pyx_f_8simutils_saturate(struct __pyx_t_8simutils_Connection_Group_struct (*))); /*proto*/
static double (__pyx_f_8simutils_sig(double ,double )); /*proto*/
static struct __pyx_t_8simutils_Connection_Group_struct (__pyx_f_8simutils_init_Connection_Group(PyObject *)); /*proto*/
static PyObject *(__pyx_f_8simutils_Constant_Connection_update(struct __pyx_t_8simutils_Connection_Group_struct (*),PyObject *,double )); /*proto*/
static PyObject *(__pyx_f_8simutils_Spiking_Rate_update(struct __pyx_t_8simutils_Connection_Group_struct (*),PyObject *,double )); /*proto*/
static PyObject *(__pyx_f_8simutils_Calcium_update(struct __pyx_t_8simutils_Connection_Group_struct (*),PyObject *,double )); /*proto*/
static PyObject *(__pyx_f_8simutils_STDP_update(struct __pyx_t_8simutils_Connection_Group_struct (*),PyObject *,double )); /*proto*/
static PyObject *(__pyx_f_8simutils_Gerstner06_update(struct __pyx_t_8simutils_Connection_Group_struct (*),PyObject *,double )); /*proto*/
static PyObject *(__pyx_f_8simutils_cupdate(struct __pyx_t_8simutils_Connection_Group_struct (*),PyObject *,double )); /*proto*/
static PyObject *(__pyx_f_8simutils_copy_spikes(struct __pyx_t_8simutils_Neuron_Group_struct (*))); /*proto*/
static struct __pyx_t_8simutils_Neuron_Group_struct (__pyx_f_8simutils_init_Neuron_Group(PyObject *)); /*proto*/
static PyObject *(__pyx_f_8simutils_save_spikes(struct __pyx_t_8simutils_Neuron_Group_struct (*),PyObject *,double )); /*proto*/
static PyObject *(__pyx_f_8simutils_Silent_Neuron_update(struct __pyx_t_8simutils_Neuron_Group_struct (*),PyObject *,double )); /*proto*/
static PyObject *(__pyx_f_8simutils_Constant_Fixed_update(struct __pyx_t_8simutils_Neuron_Group_struct (*),PyObject *,double )); /*proto*/
static PyObject *(__pyx_f_8simutils_Constant_Poisson_update(struct __pyx_t_8simutils_Neuron_Group_struct (*),PyObject *,double )); /*proto*/
static PyObject *(__pyx_f_8simutils_Variable_Poisson_update(struct __pyx_t_8simutils_Neuron_Group_struct (*),PyObject *,double )); /*proto*/
static PyObject *(__pyx_f_8simutils_Integrate_and_Fire_update(struct __pyx_t_8simutils_Neuron_Group_struct (*),PyObject *,double )); /*proto*/
static PyObject *(__pyx_f_8simutils_Stochastic_Rate_update(struct __pyx_t_8simutils_Neuron_Group_struct (*),PyObject *,double )); /*proto*/
static PyObject *(__pyx_f_8simutils_Spike_Pattern_update(struct __pyx_t_8simutils_Neuron_Group_struct (*),PyObject *,double )); /*proto*/
static PyObject *(__pyx_f_8simutils_Izh_update(struct __pyx_t_8simutils_Neuron_Group_struct (*),PyObject *,double )); /*proto*/
static PyObject *(__pyx_f_8simutils_nupdate(struct __pyx_t_8simutils_Neuron_Group_struct (*),PyObject *,double )); /*proto*/
/* Implementation of simutils */
static PyObject *__pyx_n_c_python;
static PyObject *__pyx_n_c_numpy;
static PyObject *__pyx_n_sys;
static PyObject *__pyx_n_time;
static PyObject *__pyx_n_Waitbar;
static PyObject *__pyx_n_sim;
static PyObject *__pyx_n_run_sim;
static PyObject *__pyx_n_run_sim_working;
static double (*__pyx_f_8simutils_DoubleData(PyArrayObject *__pyx_v_M)) {
double (*__pyx_r);
Py_INCREF(__pyx_v_M);
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/simutils.pxi":12 */
__pyx_r = ((double (*))__pyx_v_M->data);
goto __pyx_L0;
__pyx_L0:;
Py_DECREF(__pyx_v_M);
return __pyx_r;
}
static char (*__pyx_f_8simutils_CharData(PyArrayObject *__pyx_v_M)) {
char (*__pyx_r);
Py_INCREF(__pyx_v_M);
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/simutils.pxi":15 */
__pyx_r = ((char (*))__pyx_v_M->data);
goto __pyx_L0;
__pyx_L0:;
Py_DECREF(__pyx_v_M);
return __pyx_r;
}
static int (*__pyx_f_8simutils_IntData(PyArrayObject *__pyx_v_M)) {
int (*__pyx_r);
Py_INCREF(__pyx_v_M);
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/simutils.pxi":18 */
__pyx_r = ((int (*))__pyx_v_M->data);
goto __pyx_L0;
__pyx_L0:;
Py_DECREF(__pyx_v_M);
return __pyx_r;
}
static int __pyx_f_8simutils_Dim0(PyArrayObject *__pyx_v_M) {
int __pyx_r;
Py_INCREF(__pyx_v_M);
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/simutils.pxi":22 */
__pyx_r = (__pyx_v_M->dimensions[0]);
goto __pyx_L0;
__pyx_r = 0;
__pyx_L0:;
Py_DECREF(__pyx_v_M);
return __pyx_r;
}
static int __pyx_f_8simutils_Dim1(PyArrayObject *__pyx_v_M) {
int __pyx_r;
Py_INCREF(__pyx_v_M);
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/simutils.pxi":25 */
__pyx_r = (__pyx_v_M->dimensions[1]);
goto __pyx_L0;
__pyx_r = 0;
__pyx_L0:;
Py_DECREF(__pyx_v_M);
return __pyx_r;
}
static PyObject *__pyx_f_8simutils_saturate(struct __pyx_t_8simutils_Connection_Group_struct (*__pyx_v_s)) {
int __pyx_v_output_num;
int __pyx_v_input_num;
int __pyx_v_count;
int __pyx_v_o;
int __pyx_v_i;
double (*__pyx_v_weights);
double (*__pyx_v_weight_saturation);
PyObject *__pyx_r;
int __pyx_1;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":61 */
__pyx_v_weights = __pyx_v_s->weights;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":62 */
__pyx_v_output_num = __pyx_v_s->output_num;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":63 */
__pyx_v_input_num = __pyx_v_s->input_num;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":64 */
__pyx_v_weight_saturation = __pyx_v_s->weight_saturation;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":66 */
__pyx_v_count = 0;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":67 */
for (__pyx_v_i = 0; __pyx_v_i < __pyx_v_input_num; ++__pyx_v_i) {
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":68 */
for (__pyx_v_o = 0; __pyx_v_o < __pyx_v_output_num; ++__pyx_v_o) {
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":70 */
__pyx_1 = ((__pyx_v_weights[__pyx_v_count]) < (__pyx_v_weight_saturation[0]));
if (__pyx_1) {
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":71 */
(__pyx_v_weights[__pyx_v_count]) = (__pyx_v_weight_saturation[0]);
goto __pyx_L6;
}
__pyx_L6:;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":73 */
__pyx_1 = ((__pyx_v_weights[__pyx_v_count]) > (__pyx_v_weight_saturation[1]));
if (__pyx_1) {
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":74 */
(__pyx_v_weights[__pyx_v_count]) = (__pyx_v_weight_saturation[1]);
goto __pyx_L7;
}
__pyx_L7:;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":76 */
__pyx_v_count = (__pyx_v_count + 1);
}
}
__pyx_r = Py_None; Py_INCREF(Py_None);
return __pyx_r;
}
static double __pyx_f_8simutils_sig(double __pyx_v_x,double __pyx_v_beta) {
double __pyx_r;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":82 */
__pyx_r = ((tanh(((__pyx_v_beta * __pyx_v_x) / 2.0)) + 1.0) / 2.0);
goto __pyx_L0;
__pyx_r = 0;
__pyx_L0:;
return __pyx_r;
}
static PyObject *__pyx_n_sign;
static PyObject *__pyx_n_dt;
static PyObject *__pyx_n_weights;
static PyObject *__pyx_n_outcell;
static PyObject *__pyx_n_spike;
static PyObject *__pyx_n_incell;
static PyObject *__pyx_n_V;
static PyObject *__pyx_n_old_spike;
static PyObject *__pyx_n_weight_saturation;
static PyObject *__pyx_n___module__;
static PyObject *__pyx_n_activation_magnitude;
static PyObject *__pyx_n_tau_activation;
static PyObject *__pyx_n_tau_thresh;
static PyObject *__pyx_n_thresh_o;
static PyObject *__pyx_n_learning_rule;
static PyObject *__pyx_n_xo;
static PyObject *__pyx_n_yo;
static PyObject *__pyx_n_eta;
static PyObject *__pyx_n_use_beta;
static PyObject *__pyx_n_tau_beta;
static PyObject *__pyx_n_lambda_decay;
static PyObject *__pyx_n_x;
static PyObject *__pyx_n_xtmp;
static PyObject *__pyx_n_y;
static PyObject *__pyx_n_ytmp;
static PyObject *__pyx_n_th;
static PyObject *__pyx_n_beta;
static PyObject *__pyx_n_v_backspike_slow;
static PyObject *__pyx_n_v_backspike_fast;
static PyObject *__pyx_n_v_total;
static PyObject *__pyx_n_g_nmda;
static PyObject *__pyx_n_I_nmda;
static PyObject *__pyx_n_I_nmda_slow;
static PyObject *__pyx_n_I_nmda_fast;
static PyObject *__pyx_n_Ca;
static PyObject *__pyx_n_peak_backspike_slow;
static PyObject *__pyx_n_peak_backspike_fast;
static PyObject *__pyx_n_backspike_amplitude;
static PyObject *__pyx_n_k_minus;
static PyObject *__pyx_n_k_plus;
static PyObject *__pyx_n_g_t;
static PyObject *__pyx_n_Vo;
static PyObject *__pyx_n_Vp;
static PyObject *__pyx_n_i_nmda_mu;
static PyObject *__pyx_n_i_nmda_s;
static PyObject *__pyx_n_i_nmda_f;
static PyObject *__pyx_n_tau_nmda_s;
static PyObject *__pyx_n_tau_nmda_f;
static PyObject *__pyx_n_mg1;
static PyObject *__pyx_n_mg2;
static PyObject *__pyx_n_tau_ca;
static PyObject *__pyx_n_omega_offset;
static PyObject *__pyx_n_alpha1;
static PyObject *__pyx_n_alpha2;
static PyObject *__pyx_n_beta1;
static PyObject *__pyx_n_beta2;
static PyObject *__pyx_n_theta_o;
static PyObject *__pyx_n_omega_max;
static PyObject *__pyx_n_eta_down;
static PyObject *__pyx_n_eta_up;
static PyObject *__pyx_n_eta_p1;
static PyObject *__pyx_n_eta_p2;
static PyObject *__pyx_n_eta_p3;
static PyObject *__pyx_n_eta_p4;
static PyObject *__pyx_n_eta_gamma0;
static PyObject *__pyx_n_tau_backspike_fast;
static PyObject *__pyx_n_tau_backspike_slow;
static PyObject *__pyx_n_tau_minus;
static PyObject *__pyx_n_tau_plus;
static PyObject *__pyx_n_a_minus;
static PyObject *__pyx_n_a_plus;
static PyObject *__pyx_n_g_max;
static PyObject *__pyx_n_nearest_neighbor;
static PyObject *__pyx_n_M;
static PyObject *__pyx_n_P;
static PyObject *__pyx_n_tau_x;
static PyObject *__pyx_n_tau_y;
static PyObject *__pyx_n_A2_minus;
static PyObject *__pyx_n_A2_plus;
static PyObject *__pyx_n_A3_minus;
static PyObject *__pyx_n_A3_plus;
static PyObject *__pyx_n_R1;
static PyObject *__pyx_n_R2;
static PyObject *__pyx_n_O1;
static PyObject *__pyx_n_O2;
static PyObject *__pyx_k6p;
static PyObject *__pyx_k7p;
static PyObject *__pyx_k8p;
static PyObject *__pyx_k9p;
static PyObject *__pyx_k10p;
static PyObject *__pyx_k11p;
static char (__pyx_k6[]) = "splikes.connection_groups.Constant_Connection";
static char (__pyx_k7[]) = "splikes.connection_groups.Spiking_Rate";
static char (__pyx_k8[]) = "splikes.connection_groups.Calcium";
static char (__pyx_k9[]) = "splikes.connection_groups.STDP";
static char (__pyx_k10[]) = "splikes.connection_groups.Gerstner06";
static char (__pyx_k11[]) = "Unimplemented Connection_Group Update";
static struct __pyx_t_8simutils_Connection_Group_struct __pyx_f_8simutils_init_Connection_Group(PyObject *__pyx_v_self) {
struct __pyx_t_8simutils_Connection_Group_struct __pyx_v_s;
struct __pyx_t_8simutils_Connection_Group_struct __pyx_r;
PyObject *__pyx_1 = 0;
double __pyx_2;
PyObject *__pyx_3 = 0;
int __pyx_4;
Py_INCREF(__pyx_v_self);
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":93 */
__pyx_v_s.type = (-1);
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":94 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_sign); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 94; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 94; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
__pyx_v_s.sign = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":95 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_dt); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
__pyx_v_s.dt = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":96 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_weights); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 96; goto __pyx_L1;}
if (!__Pyx_TypeTest(__pyx_1, __pyx_ptype_7c_numpy_ndarray)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 96; goto __pyx_L1;}
__pyx_v_s.weights = __pyx_f_8simutils_DoubleData(((PyArrayObject *)__pyx_1));
Py_DECREF(__pyx_1); __pyx_1 = 0;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":97 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_outcell); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 97; goto __pyx_L1;}
__pyx_3 = PyObject_GetAttr(__pyx_1, __pyx_n_spike); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 97; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
if (!__Pyx_TypeTest(__pyx_3, __pyx_ptype_7c_numpy_ndarray)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 97; goto __pyx_L1;}
__pyx_v_s.outspike = __pyx_f_8simutils_CharData(((PyArrayObject *)__pyx_3));
Py_DECREF(__pyx_3); __pyx_3 = 0;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":98 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_incell); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; goto __pyx_L1;}
__pyx_3 = PyObject_GetAttr(__pyx_1, __pyx_n_spike); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
if (!__Pyx_TypeTest(__pyx_3, __pyx_ptype_7c_numpy_ndarray)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; goto __pyx_L1;}
__pyx_v_s.inspike = __pyx_f_8simutils_CharData(((PyArrayObject *)__pyx_3));
Py_DECREF(__pyx_3); __pyx_3 = 0;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":100 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_incell); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 100; goto __pyx_L1;}
__pyx_3 = PyObject_GetAttr(__pyx_1, __pyx_n_V); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 100; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
if (!__Pyx_TypeTest(__pyx_3, __pyx_ptype_7c_numpy_ndarray)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 100; goto __pyx_L1;}
__pyx_v_s.in_V = __pyx_f_8simutils_DoubleData(((PyArrayObject *)__pyx_3));
Py_DECREF(__pyx_3); __pyx_3 = 0;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":101 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_outcell); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 101; goto __pyx_L1;}
__pyx_3 = PyObject_GetAttr(__pyx_1, __pyx_n_V); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 101; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
if (!__Pyx_TypeTest(__pyx_3, __pyx_ptype_7c_numpy_ndarray)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 101; goto __pyx_L1;}
__pyx_v_s.out_V = __pyx_f_8simutils_DoubleData(((PyArrayObject *)__pyx_3));
Py_DECREF(__pyx_3); __pyx_3 = 0;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":102 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_outcell); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 102; goto __pyx_L1;}
__pyx_3 = PyObject_GetAttr(__pyx_1, __pyx_n_old_spike); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 102; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
if (!__Pyx_TypeTest(__pyx_3, __pyx_ptype_7c_numpy_ndarray)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 102; goto __pyx_L1;}
__pyx_v_s.old_outspike = __pyx_f_8simutils_CharData(((PyArrayObject *)__pyx_3));
Py_DECREF(__pyx_3); __pyx_3 = 0;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":103 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_incell); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 103; goto __pyx_L1;}
__pyx_3 = PyObject_GetAttr(__pyx_1, __pyx_n_old_spike); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 103; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
if (!__Pyx_TypeTest(__pyx_3, __pyx_ptype_7c_numpy_ndarray)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 103; goto __pyx_L1;}
__pyx_v_s.old_inspike = __pyx_f_8simutils_CharData(((PyArrayObject *)__pyx_3));
Py_DECREF(__pyx_3); __pyx_3 = 0;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":104 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_outcell); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; goto __pyx_L1;}
__pyx_3 = PyObject_GetAttr(__pyx_1, __pyx_n_spike); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
if (!__Pyx_TypeTest(__pyx_3, __pyx_ptype_7c_numpy_ndarray)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; goto __pyx_L1;}
__pyx_v_s.output_num = __pyx_f_8simutils_Dim0(((PyArrayObject *)__pyx_3));
Py_DECREF(__pyx_3); __pyx_3 = 0;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":105 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_incell); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 105; goto __pyx_L1;}
__pyx_3 = PyObject_GetAttr(__pyx_1, __pyx_n_spike); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 105; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
if (!__Pyx_TypeTest(__pyx_3, __pyx_ptype_7c_numpy_ndarray)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 105; goto __pyx_L1;}
__pyx_v_s.input_num = __pyx_f_8simutils_Dim0(((PyArrayObject *)__pyx_3));
Py_DECREF(__pyx_3); __pyx_3 = 0;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":106 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_weight_saturation); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 106; goto __pyx_L1;}
if (!__Pyx_TypeTest(__pyx_1, __pyx_ptype_7c_numpy_ndarray)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 106; goto __pyx_L1;}
__pyx_v_s.weight_saturation = __pyx_f_8simutils_DoubleData(((PyArrayObject *)__pyx_1));
Py_DECREF(__pyx_1); __pyx_1 = 0;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":108 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n___module__); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 108; goto __pyx_L1;}
if (PyObject_Cmp(__pyx_3, __pyx_k6p, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 108; goto __pyx_L1;}
__pyx_4 = __pyx_4 == 0;
Py_DECREF(__pyx_3); __pyx_3 = 0;
if (__pyx_4) {
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":109 */
__pyx_v_s.type = 0;
goto __pyx_L2;
}
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n___module__); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 110; goto __pyx_L1;}
if (PyObject_Cmp(__pyx_1, __pyx_k7p, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 110; goto __pyx_L1;}
__pyx_4 = __pyx_4 == 0;
Py_DECREF(__pyx_1); __pyx_1 = 0;
if (__pyx_4) {
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":111 */
__pyx_v_s.type = 1;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":113 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_activation_magnitude); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 113; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 113; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
__pyx_v_s.activation_magnitude = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":114 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_tau_activation); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
__pyx_v_s.tau_activation = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":115 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_tau_thresh); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 115; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 115; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
__pyx_v_s.tau_thresh = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":116 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_thresh_o); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 116; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 116; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
__pyx_v_s.thresh_o = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":117 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_learning_rule); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 117; goto __pyx_L1;}
__pyx_4 = PyInt_AsLong(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 117; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
__pyx_v_s.learning_rule = __pyx_4;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":118 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_xo); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
__pyx_v_s.xo = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":119 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_yo); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
__pyx_v_s.yo = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":120 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_eta); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 120; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 120; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
__pyx_v_s.eta = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":121 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_use_beta); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 121; goto __pyx_L1;}
__pyx_4 = PyInt_AsLong(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 121; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
__pyx_v_s.use_beta = __pyx_4;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":122 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_tau_beta); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 122; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 122; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
__pyx_v_s.tau_beta = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":123 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_lambda_decay); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 123; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 123; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
__pyx_v_s.lambda_decay = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":125 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_x); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 125; goto __pyx_L1;}
if (!__Pyx_TypeTest(__pyx_1, __pyx_ptype_7c_numpy_ndarray)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 125; goto __pyx_L1;}
__pyx_v_s.x = __pyx_f_8simutils_DoubleData(((PyArrayObject *)__pyx_1));
Py_DECREF(__pyx_1); __pyx_1 = 0;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":126 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_xtmp); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 126; goto __pyx_L1;}
if (!__Pyx_TypeTest(__pyx_3, __pyx_ptype_7c_numpy_ndarray)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 126; goto __pyx_L1;}
__pyx_v_s.xtmp = __pyx_f_8simutils_DoubleData(((PyArrayObject *)__pyx_3));
Py_DECREF(__pyx_3); __pyx_3 = 0;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":127 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_y); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 127; goto __pyx_L1;}
if (!__Pyx_TypeTest(__pyx_1, __pyx_ptype_7c_numpy_ndarray)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 127; goto __pyx_L1;}
__pyx_v_s.y = __pyx_f_8simutils_DoubleData(((PyArrayObject *)__pyx_1));
Py_DECREF(__pyx_1); __pyx_1 = 0;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":128 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_ytmp); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; goto __pyx_L1;}
if (!__Pyx_TypeTest(__pyx_3, __pyx_ptype_7c_numpy_ndarray)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; goto __pyx_L1;}
__pyx_v_s.ytmp = __pyx_f_8simutils_DoubleData(((PyArrayObject *)__pyx_3));
Py_DECREF(__pyx_3); __pyx_3 = 0;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":129 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_th); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; goto __pyx_L1;}
if (!__Pyx_TypeTest(__pyx_1, __pyx_ptype_7c_numpy_ndarray)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; goto __pyx_L1;}
__pyx_v_s.th = __pyx_f_8simutils_DoubleData(((PyArrayObject *)__pyx_1));
Py_DECREF(__pyx_1); __pyx_1 = 0;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":130 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_beta); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 130; goto __pyx_L1;}
if (!__Pyx_TypeTest(__pyx_3, __pyx_ptype_7c_numpy_ndarray)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 130; goto __pyx_L1;}
__pyx_v_s.beta = __pyx_f_8simutils_DoubleData(((PyArrayObject *)__pyx_3));
Py_DECREF(__pyx_3); __pyx_3 = 0;
goto __pyx_L2;
}
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n___module__); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 132; goto __pyx_L1;}
if (PyObject_Cmp(__pyx_1, __pyx_k8p, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 132; goto __pyx_L1;}
__pyx_4 = __pyx_4 == 0;
Py_DECREF(__pyx_1); __pyx_1 = 0;
if (__pyx_4) {
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":133 */
__pyx_v_s.type = 2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":135 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_v_backspike_slow); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 135; goto __pyx_L1;}
if (!__Pyx_TypeTest(__pyx_3, __pyx_ptype_7c_numpy_ndarray)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 135; goto __pyx_L1;}
__pyx_v_s.v_backspike_slow = __pyx_f_8simutils_DoubleData(((PyArrayObject *)__pyx_3));
Py_DECREF(__pyx_3); __pyx_3 = 0;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":136 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_v_backspike_fast); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 136; goto __pyx_L1;}
if (!__Pyx_TypeTest(__pyx_1, __pyx_ptype_7c_numpy_ndarray)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 136; goto __pyx_L1;}
__pyx_v_s.v_backspike_fast = __pyx_f_8simutils_DoubleData(((PyArrayObject *)__pyx_1));
Py_DECREF(__pyx_1); __pyx_1 = 0;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":137 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_v_total); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 137; goto __pyx_L1;}
if (!__Pyx_TypeTest(__pyx_3, __pyx_ptype_7c_numpy_ndarray)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 137; goto __pyx_L1;}
__pyx_v_s.v_total = __pyx_f_8simutils_DoubleData(((PyArrayObject *)__pyx_3));
Py_DECREF(__pyx_3); __pyx_3 = 0;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":139 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_g_nmda); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 139; goto __pyx_L1;}
if (!__Pyx_TypeTest(__pyx_1, __pyx_ptype_7c_numpy_ndarray)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 139; goto __pyx_L1;}
__pyx_v_s.g_nmda = __pyx_f_8simutils_DoubleData(((PyArrayObject *)__pyx_1));
Py_DECREF(__pyx_1); __pyx_1 = 0;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":140 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_I_nmda); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 140; goto __pyx_L1;}
if (!__Pyx_TypeTest(__pyx_3, __pyx_ptype_7c_numpy_ndarray)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 140; goto __pyx_L1;}
__pyx_v_s.I_nmda = __pyx_f_8simutils_DoubleData(((PyArrayObject *)__pyx_3));
Py_DECREF(__pyx_3); __pyx_3 = 0;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":141 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_I_nmda_slow); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 141; goto __pyx_L1;}
if (!__Pyx_TypeTest(__pyx_1, __pyx_ptype_7c_numpy_ndarray)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 141; goto __pyx_L1;}
__pyx_v_s.I_nmda_slow = __pyx_f_8simutils_DoubleData(((PyArrayObject *)__pyx_1));
Py_DECREF(__pyx_1); __pyx_1 = 0;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":142 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_I_nmda_fast); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 142; goto __pyx_L1;}
if (!__Pyx_TypeTest(__pyx_3, __pyx_ptype_7c_numpy_ndarray)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 142; goto __pyx_L1;}
__pyx_v_s.I_nmda_fast = __pyx_f_8simutils_DoubleData(((PyArrayObject *)__pyx_3));
Py_DECREF(__pyx_3); __pyx_3 = 0;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":143 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_Ca); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 143; goto __pyx_L1;}
if (!__Pyx_TypeTest(__pyx_1, __pyx_ptype_7c_numpy_ndarray)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 143; goto __pyx_L1;}
__pyx_v_s.Ca = __pyx_f_8simutils_DoubleData(((PyArrayObject *)__pyx_1));
Py_DECREF(__pyx_1); __pyx_1 = 0;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":146 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_peak_backspike_slow); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 146; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
__pyx_v_s.peak_backspike_slow = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":147 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_peak_backspike_fast); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
__pyx_v_s.peak_backspike_fast = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":148 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_backspike_amplitude); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 148; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 148; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
__pyx_v_s.backspike_amplitude = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":149 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_k_minus); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 149; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 149; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
__pyx_v_s.k_minus = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":150 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_k_plus); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 150; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 150; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
__pyx_v_s.k_plus = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":151 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_g_t); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 151; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 151; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
__pyx_v_s.g_t = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":152 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_Vo); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 152; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 152; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
__pyx_v_s.Vo = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":153 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_Vp); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 153; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 153; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
__pyx_v_s.Vp = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":154 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_i_nmda_mu); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 154; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 154; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
__pyx_v_s.i_nmda_mu = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":155 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_i_nmda_s); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 155; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 155; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
__pyx_v_s.i_nmda_s = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":156 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_i_nmda_f); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 156; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 156; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
__pyx_v_s.i_nmda_f = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":157 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_tau_nmda_s); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
__pyx_v_s.tau_nmda_s = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":158 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_tau_nmda_f); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 158; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 158; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
__pyx_v_s.tau_nmda_f = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":159 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_mg1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 159; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 159; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
__pyx_v_s.mg1 = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":160 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_mg2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 160; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 160; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
__pyx_v_s.mg2 = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":161 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_g_t); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 161; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 161; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
__pyx_v_s.g_t = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":162 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_tau_ca); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 162; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 162; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
__pyx_v_s.tau_ca = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":163 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_learning_rule); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 163; goto __pyx_L1;}
__pyx_4 = PyInt_AsLong(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 163; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
__pyx_v_s.learning_rule = __pyx_4;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":164 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_omega_offset); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 164; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 164; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
__pyx_v_s.omega_offset = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":165 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_alpha1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
__pyx_v_s.alpha1 = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":166 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_alpha2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 166; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 166; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
__pyx_v_s.alpha2 = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":167 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_beta1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 167; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 167; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
__pyx_v_s.beta1 = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":168 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_beta2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 168; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 168; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
__pyx_v_s.beta2 = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":169 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_theta_o); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 169; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 169; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
__pyx_v_s.theta_o = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":170 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_omega_max); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 170; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 170; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
__pyx_v_s.omega_max = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":171 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_eta_down); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 171; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 171; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
__pyx_v_s.eta_down = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":172 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_eta_up); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 172; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 172; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
__pyx_v_s.eta_up = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":173 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_eta_p1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 173; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 173; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
__pyx_v_s.eta_p1 = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":174 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_eta_p2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 174; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 174; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
__pyx_v_s.eta_p2 = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":175 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_eta_p3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 175; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 175; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
__pyx_v_s.eta_p3 = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":176 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_eta_p4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 176; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 176; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
__pyx_v_s.eta_p4 = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":177 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_eta_gamma0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
__pyx_v_s.eta_gamma0 = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":178 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_lambda_decay); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 178; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 178; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
__pyx_v_s.lambda_decay = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":179 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_tau_backspike_fast); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 179; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 179; goto __pyx_L1;}
Py_DECREF(__pyx_1); __pyx_1 = 0;
__pyx_v_s.tau_backspike_fast = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":180 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_tau_backspike_slow); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 180; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 180; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
__pyx_v_s.tau_backspike_slow = __pyx_2;
goto __pyx_L2;
}
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n___module__); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; goto __pyx_L1;}
if (PyObject_Cmp(__pyx_1, __pyx_k9p, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; goto __pyx_L1;}
__pyx_4 = __pyx_4 == 0;
Py_DECREF(__pyx_1); __pyx_1 = 0;
if (__pyx_4) {
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":183 */
__pyx_v_s.type = 3;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":184 */
__pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_tau_minus); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 184; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 184; goto __pyx_L1;}
Py_DECREF(__pyx_3); __pyx_3 = 0;
__pyx_v_s.tau_minus = __pyx_2;
/* "/home/bblais/python/work/splikes/splikes_orig/trunk/c_connection_groups.pyx":185 */
__pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_tau_plus); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 185; goto __pyx_L1;}
__pyx_2 = PyFloat_AsDouble(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 185; goto __pyx_L1;}