Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to formatting for bumping psf/black version #3330 #3342

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 20 additions & 12 deletions pynest/examples/EI_clustered_network/network_EI.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pynest/examples/lin_rate_ipn_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
# time constant of neuronal dynamics in ms
"mu": 2.0,
# mean input
"sigma": 5.0
"sigma": 5.0,
# noise parameter
}

Expand Down
1 change: 0 additions & 1 deletion testsuite/pytests/test_erfc_neuron.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ def activation_function_theory(sigma, theta):


class ErfcNeuronTheoryTestCase(unittest.TestCase):

"""Compare results to theoretical predictions"""

def setUp(self):
Expand Down
1 change: 0 additions & 1 deletion testsuite/pytests/test_rate_copy_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion testsuite/pytests/test_rate_instantaneous_and_delayed.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion testsuite/pytests/test_rate_neuron.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@

@nest.ll_api.check_stack
class RateNeuronTestCase(unittest.TestCase):

"""Check rate_neuron"""

def setUp(self):
Expand Down
1 change: 0 additions & 1 deletion testsuite/pytests/test_rate_neuron_communication.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def H(x):

@nest.ll_api.check_stack
class RateNeuronCommunicationTestCase(unittest.TestCase):

"""Check rate_neuron"""

def setUp(self):
Expand Down
1 change: 0 additions & 1 deletion testsuite/pytests/test_sp/test_growth_curves.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ def growth_curve(self, t):


class SigmoidNumericSEI(SynapticElementIntegrator):

"""
Compute the number of synaptic element corresponding to a
sigmoid growth curve
Expand Down
1 change: 0 additions & 1 deletion testsuite/pytests/test_step_rate_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion testsuite/pytests/test_vogels_sprekeler_synapse.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

@nest.ll_api.check_stack
class VogelsSprekelerConnectionTestCase(unittest.TestCase):

"""Check vogels_sprekeler_synapse model properties."""

def setUp(self):
Expand Down
Loading