From 03e9a83a92efba40cd61cb7f2c54d795073db78d Mon Sep 17 00:00:00 2001 From: Dennis Terhorst Date: Fri, 18 Oct 2024 14:05:06 +0200 Subject: [PATCH] updates to formatting for bumping psf/black version #3330 --- .../EI_clustered_network/network_EI.py | 32 ++++++++++++------- pynest/examples/lin_rate_ipn_network.py | 2 +- testsuite/pytests/test_erfc_neuron.py | 1 - testsuite/pytests/test_rate_copy_model.py | 1 - .../test_rate_instantaneous_and_delayed.py | 1 - testsuite/pytests/test_rate_neuron.py | 1 - .../pytests/test_rate_neuron_communication.py | 1 - .../pytests/test_sp/test_growth_curves.py | 1 - testsuite/pytests/test_step_rate_generator.py | 1 - .../pytests/test_vogels_sprekeler_synapse.py | 1 - 10 files changed, 21 insertions(+), 21 deletions(-) diff --git a/pynest/examples/EI_clustered_network/network_EI.py b/pynest/examples/EI_clustered_network/network_EI.py index aa7a4fe7c1..8c12bf7030 100644 --- a/pynest/examples/EI_clustered_network/network_EI.py +++ b/pynest/examples/EI_clustered_network/network_EI.py @@ -147,14 +147,18 @@ def create_populations(self): "t_ref": self._params["t_ref"], "V_th": self._params["V_th_E"], "V_reset": self._params["V_r"], - "I_e": I_xE - if self._params["delta_I_xE"] == 0 - else I_xE * nest.random.uniform(1 - self._params["delta_I_xE"] / 2, 1 + self._params["delta_I_xE"] / 2), + "I_e": ( + I_xE + if self._params["delta_I_xE"] == 0 + else I_xE * nest.random.uniform(1 - self._params["delta_I_xE"] / 2, 1 + self._params["delta_I_xE"] / 2) + ), "tau_syn_ex": self._params["tau_syn_ex"], "tau_syn_in": self._params["tau_syn_in"], - "V_m": self._params["V_m"] - if not self._params["V_m"] == "rand" - else self._params["V_th_E"] - 20 * nest.random.lognormal(0, 1), + "V_m": ( + self._params["V_m"] + if not self._params["V_m"] == "rand" + else self._params["V_th_E"] - 20 * nest.random.lognormal(0, 1) + ), } I_neuron_params = { "E_L": self._params["E_L"], @@ -163,14 +167,18 @@ def create_populations(self): "t_ref": self._params["t_ref"], "V_th": self._params["V_th_I"], "V_reset": self._params["V_r"], - "I_e": I_xI - if self._params["delta_I_xE"] == 0 - else I_xI * nest.random.uniform(1 - self._params["delta_I_xE"] / 2, 1 + self._params["delta_I_xE"] / 2), + "I_e": ( + I_xI + if self._params["delta_I_xE"] == 0 + else I_xI * nest.random.uniform(1 - self._params["delta_I_xE"] / 2, 1 + self._params["delta_I_xE"] / 2) + ), "tau_syn_ex": self._params["tau_syn_ex"], "tau_syn_in": self._params["tau_syn_in"], - "V_m": self._params["V_m"] - if not self._params["V_m"] == "rand" - else self._params["V_th_I"] - 20 * nest.random.lognormal(0, 1), + "V_m": ( + self._params["V_m"] + if not self._params["V_m"] == "rand" + else self._params["V_th_I"] - 20 * nest.random.lognormal(0, 1) + ), } # iaf_psc_exp allows stochasticity, if not used - don't supply the parameters and use diff --git a/pynest/examples/lin_rate_ipn_network.py b/pynest/examples/lin_rate_ipn_network.py index a8b8140b54..b972a33cff 100644 --- a/pynest/examples/lin_rate_ipn_network.py +++ b/pynest/examples/lin_rate_ipn_network.py @@ -74,7 +74,7 @@ # time constant of neuronal dynamics in ms "mu": 2.0, # mean input - "sigma": 5.0 + "sigma": 5.0, # noise parameter } diff --git a/testsuite/pytests/test_erfc_neuron.py b/testsuite/pytests/test_erfc_neuron.py index a6ec3f10e8..4c1f2ac559 100644 --- a/testsuite/pytests/test_erfc_neuron.py +++ b/testsuite/pytests/test_erfc_neuron.py @@ -71,7 +71,6 @@ def activation_function_theory(sigma, theta): class ErfcNeuronTheoryTestCase(unittest.TestCase): - """Compare results to theoretical predictions""" def setUp(self): diff --git a/testsuite/pytests/test_rate_copy_model.py b/testsuite/pytests/test_rate_copy_model.py index 39bcad06dc..e80af03d1d 100644 --- a/testsuite/pytests/test_rate_copy_model.py +++ b/testsuite/pytests/test_rate_copy_model.py @@ -27,7 +27,6 @@ @nest.ll_api.check_stack class RateCopyModelTestCase(unittest.TestCase): - """ Test whether a rate connection created by copy model behaves identical to the original version diff --git a/testsuite/pytests/test_rate_instantaneous_and_delayed.py b/testsuite/pytests/test_rate_instantaneous_and_delayed.py index 669765788b..f9d5abc423 100644 --- a/testsuite/pytests/test_rate_instantaneous_and_delayed.py +++ b/testsuite/pytests/test_rate_instantaneous_and_delayed.py @@ -27,7 +27,6 @@ @nest.ll_api.check_stack class RateInstantaneousAndDelayedTestCase(unittest.TestCase): - """ Test whether delayed rate connections have same properties as instantaneous connections but with the correct delay diff --git a/testsuite/pytests/test_rate_neuron.py b/testsuite/pytests/test_rate_neuron.py index 05f784e300..2d2fc7f077 100644 --- a/testsuite/pytests/test_rate_neuron.py +++ b/testsuite/pytests/test_rate_neuron.py @@ -33,7 +33,6 @@ @nest.ll_api.check_stack class RateNeuronTestCase(unittest.TestCase): - """Check rate_neuron""" def setUp(self): diff --git a/testsuite/pytests/test_rate_neuron_communication.py b/testsuite/pytests/test_rate_neuron_communication.py index 9ccda06064..ac76144e22 100644 --- a/testsuite/pytests/test_rate_neuron_communication.py +++ b/testsuite/pytests/test_rate_neuron_communication.py @@ -34,7 +34,6 @@ def H(x): @nest.ll_api.check_stack class RateNeuronCommunicationTestCase(unittest.TestCase): - """Check rate_neuron""" def setUp(self): diff --git a/testsuite/pytests/test_sp/test_growth_curves.py b/testsuite/pytests/test_sp/test_growth_curves.py index 7097fcee23..09f51dcb7a 100644 --- a/testsuite/pytests/test_sp/test_growth_curves.py +++ b/testsuite/pytests/test_sp/test_growth_curves.py @@ -217,7 +217,6 @@ def growth_curve(self, t): class SigmoidNumericSEI(SynapticElementIntegrator): - """ Compute the number of synaptic element corresponding to a sigmoid growth curve diff --git a/testsuite/pytests/test_step_rate_generator.py b/testsuite/pytests/test_step_rate_generator.py index 83d15f876f..ab317adbba 100644 --- a/testsuite/pytests/test_step_rate_generator.py +++ b/testsuite/pytests/test_step_rate_generator.py @@ -27,7 +27,6 @@ @nest.ll_api.check_stack class StepRateGeneratorTestCase(unittest.TestCase): - """ Test whether the step_rate_generator produces and communicates the desired rates diff --git a/testsuite/pytests/test_vogels_sprekeler_synapse.py b/testsuite/pytests/test_vogels_sprekeler_synapse.py index 59cb87e5c1..fa4e748667 100644 --- a/testsuite/pytests/test_vogels_sprekeler_synapse.py +++ b/testsuite/pytests/test_vogels_sprekeler_synapse.py @@ -29,7 +29,6 @@ @nest.ll_api.check_stack class VogelsSprekelerConnectionTestCase(unittest.TestCase): - """Check vogels_sprekeler_synapse model properties.""" def setUp(self):