Skip to content

Commit 03e9a83

Browse files
committed
updates to formatting for bumping psf/black version #3330
1 parent 78c9764 commit 03e9a83

10 files changed

+21
-21
lines changed

pynest/examples/EI_clustered_network/network_EI.py

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,18 @@ def create_populations(self):
147147
"t_ref": self._params["t_ref"],
148148
"V_th": self._params["V_th_E"],
149149
"V_reset": self._params["V_r"],
150-
"I_e": I_xE
151-
if self._params["delta_I_xE"] == 0
152-
else I_xE * nest.random.uniform(1 - self._params["delta_I_xE"] / 2, 1 + self._params["delta_I_xE"] / 2),
150+
"I_e": (
151+
I_xE
152+
if self._params["delta_I_xE"] == 0
153+
else I_xE * nest.random.uniform(1 - self._params["delta_I_xE"] / 2, 1 + self._params["delta_I_xE"] / 2)
154+
),
153155
"tau_syn_ex": self._params["tau_syn_ex"],
154156
"tau_syn_in": self._params["tau_syn_in"],
155-
"V_m": self._params["V_m"]
156-
if not self._params["V_m"] == "rand"
157-
else self._params["V_th_E"] - 20 * nest.random.lognormal(0, 1),
157+
"V_m": (
158+
self._params["V_m"]
159+
if not self._params["V_m"] == "rand"
160+
else self._params["V_th_E"] - 20 * nest.random.lognormal(0, 1)
161+
),
158162
}
159163
I_neuron_params = {
160164
"E_L": self._params["E_L"],
@@ -163,14 +167,18 @@ def create_populations(self):
163167
"t_ref": self._params["t_ref"],
164168
"V_th": self._params["V_th_I"],
165169
"V_reset": self._params["V_r"],
166-
"I_e": I_xI
167-
if self._params["delta_I_xE"] == 0
168-
else I_xI * nest.random.uniform(1 - self._params["delta_I_xE"] / 2, 1 + self._params["delta_I_xE"] / 2),
170+
"I_e": (
171+
I_xI
172+
if self._params["delta_I_xE"] == 0
173+
else I_xI * nest.random.uniform(1 - self._params["delta_I_xE"] / 2, 1 + self._params["delta_I_xE"] / 2)
174+
),
169175
"tau_syn_ex": self._params["tau_syn_ex"],
170176
"tau_syn_in": self._params["tau_syn_in"],
171-
"V_m": self._params["V_m"]
172-
if not self._params["V_m"] == "rand"
173-
else self._params["V_th_I"] - 20 * nest.random.lognormal(0, 1),
177+
"V_m": (
178+
self._params["V_m"]
179+
if not self._params["V_m"] == "rand"
180+
else self._params["V_th_I"] - 20 * nest.random.lognormal(0, 1)
181+
),
174182
}
175183

176184
# iaf_psc_exp allows stochasticity, if not used - don't supply the parameters and use

pynest/examples/lin_rate_ipn_network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
# time constant of neuronal dynamics in ms
7575
"mu": 2.0,
7676
# mean input
77-
"sigma": 5.0
77+
"sigma": 5.0,
7878
# noise parameter
7979
}
8080

testsuite/pytests/test_erfc_neuron.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ def activation_function_theory(sigma, theta):
7171

7272

7373
class ErfcNeuronTheoryTestCase(unittest.TestCase):
74-
7574
"""Compare results to theoretical predictions"""
7675

7776
def setUp(self):

testsuite/pytests/test_rate_copy_model.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
@nest.ll_api.check_stack
2929
class RateCopyModelTestCase(unittest.TestCase):
30-
3130
"""
3231
Test whether a rate connection created by copy model behaves
3332
identical to the original version

testsuite/pytests/test_rate_instantaneous_and_delayed.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
@nest.ll_api.check_stack
2929
class RateInstantaneousAndDelayedTestCase(unittest.TestCase):
30-
3130
"""
3231
Test whether delayed rate connections have same properties as
3332
instantaneous connections but with the correct delay

testsuite/pytests/test_rate_neuron.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333

3434
@nest.ll_api.check_stack
3535
class RateNeuronTestCase(unittest.TestCase):
36-
3736
"""Check rate_neuron"""
3837

3938
def setUp(self):

testsuite/pytests/test_rate_neuron_communication.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def H(x):
3434

3535
@nest.ll_api.check_stack
3636
class RateNeuronCommunicationTestCase(unittest.TestCase):
37-
3837
"""Check rate_neuron"""
3938

4039
def setUp(self):

testsuite/pytests/test_sp/test_growth_curves.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ def growth_curve(self, t):
217217

218218

219219
class SigmoidNumericSEI(SynapticElementIntegrator):
220-
221220
"""
222221
Compute the number of synaptic element corresponding to a
223222
sigmoid growth curve

testsuite/pytests/test_step_rate_generator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
@nest.ll_api.check_stack
2929
class StepRateGeneratorTestCase(unittest.TestCase):
30-
3130
"""
3231
Test whether the step_rate_generator produces and
3332
communicates the desired rates

testsuite/pytests/test_vogels_sprekeler_synapse.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929

3030
@nest.ll_api.check_stack
3131
class VogelsSprekelerConnectionTestCase(unittest.TestCase):
32-
3332
"""Check vogels_sprekeler_synapse model properties."""
3433

3534
def setUp(self):

0 commit comments

Comments
 (0)