1515import pyNN .utility .plotting as plot
1616import matplotlib .pyplot as plt
1717
18+
1819def run_script (* , split : bool = True ) -> None :
1920 """
2021 Runs the example script
@@ -45,14 +46,10 @@ def run_script(*, split: bool = True) -> None:
4546 populations [0 ].set (tau_syn_I = 4 )
4647
4748 # define the projections
48- exc_proj = p .Projection (pop_src1 , populations [0 ],
49- p .OneToOneConnector (),
50- p .StaticSynapse (weight = 1 , delay = 1 ),
51- receptor_type = "excitatory" )
52- inh_proj = p .Projection (pop_src1 , populations [0 ],
53- p .OneToOneConnector (),
54- p .StaticSynapse (weight = 1 , delay = 10 ),
55- receptor_type = "inhibitory" )
49+ p .Projection (pop_src1 , populations [0 ], p .OneToOneConnector (),
50+ p .StaticSynapse (weight = 1 , delay = 1 ), receptor_type = "excitatory" )
51+ p .Projection (pop_src1 , populations [0 ], p .OneToOneConnector (),
52+ p .StaticSynapse (weight = 1 , delay = 10 ), receptor_type = "inhibitory" )
5653
5754 populations [0 ].record ("all" )
5855 p .run (runtime )
@@ -61,6 +58,7 @@ def run_script(*, split: bool = True) -> None:
6158 gsyn_exc = populations [0 ].get_data ("gsyn_exc" )
6259 gsyn_inh = populations [0 ].get_data ("gsyn_inh" )
6360 spikes = populations [0 ].get_data ("spikes" )
61+ print (spikes )
6462
6563 plot .Figure (
6664 plot .Panel (v .segments [0 ].filter (name = 'v' )[0 ],
0 commit comments