Skip to content

Commit 780bd5f

Browse files
committed
flake8
1 parent 598e6c9 commit 780bd5f

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

examples/extra_models_examples/vogels_2011.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ def plot(
351351
# Show figures
352352
pylab.show()
353353

354+
354355
def run_script(*, split: bool = False) -> None:
355356
"""
356357
Runs the example script

examples/if_curr_alpha.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import pyNN.utility.plotting as plot
1616
import matplotlib.pyplot as plt
1717

18+
1819
def 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

Comments
 (0)