Skip to content

Commit eb64949

Browse files
committed
whitespace changes for black-25
1 parent 80a8979 commit eb64949

File tree

6 files changed

+28
-30
lines changed

6 files changed

+28
-30
lines changed

doc/htmldoc/developer_space/templates/pynest_api_template.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@
2121

2222
"""[[ This template demonstrates how to create a docstring for the PyNEST API.
2323
24-
If you have modified an API, please ensure you update the docstring!
25-
26-
The format is based on `NumPy style docstring
27-
<https://numpydoc.readthedocs.io/en/latest/format.html>`_ and uses
28-
reStructuredText markup. Please review the syntax rules if you are
29-
unfamiliar with either reStructuredText or NumPy style docstrings.
30-
31-
Copy this file and replace the sample text with a description of the API.
32-
The double bracketed sections [[ ]], which provide explanations, should be
33-
completely removed from your final version - Including this entire
34-
docstring!
35-
]]
24+
If you have modified an API, please ensure you update the docstring!
25+
26+
The format is based on `NumPy style docstring
27+
<https://numpydoc.readthedocs.io/en/latest/format.html>`_ and uses
28+
reStructuredText markup. Please review the syntax rules if you are
29+
unfamiliar with either reStructuredText or NumPy style docstrings.
30+
31+
Copy this file and replace the sample text with a description of the API.
32+
The double bracketed sections [[ ]], which provide explanations, should be
33+
completely removed from your final version - Including this entire
34+
docstring!
35+
]]
3636
"""
3737

3838

pynest/examples/EI_clustered_network/stimulus_params_EI.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@
1919
# You should have received a copy of the GNU General Public License
2020
# along with NEST. If not, see <http://www.gnu.org/licenses/>.
2121

22-
""" PyNEST EI-clustered network: Stimulus Parameters
23-
-----------------------------------------------------
22+
"""PyNEST EI-clustered network: Stimulus Parameters
23+
------------------------------------------------
2424
2525
A dictionary with parameters for an optinal stimulation of clusters.
26-
2726
"""
2827

2928
stim_dict = {

pynest/examples/Potjans_2014/stimulus_params.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@
1919
# You should have received a copy of the GNU General Public License
2020
# along with NEST. If not, see <http://www.gnu.org/licenses/>.
2121

22-
""" PyNEST Microcircuit: Stimulus Parameters
23-
-----------------------------------------------
22+
"""PyNEST Microcircuit: Stimulus Parameters
23+
----------------------------------------
2424
2525
A dictionary with parameters for an optional external transient stimulation.
2626
Thalamic input and DC input can be switched on individually.
27-
2827
"""
2928

3029
import numpy as np

pynest/nest/lib/hl_api_types.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -755,12 +755,12 @@ def format_row_(s, t, sm, w, dly):
755755

756756
# 35 is arbitrarily chosen.
757757
if len(srcs) >= MAX_SIZE_FULL_PRINT and not self.print_full:
758-
# u'\u22EE ' is the unicode for vertical ellipsis, used when we have many connections
759-
srcs = srcs[:15] + ["\u22EE "] + srcs[-15:]
760-
trgt = trgt[:15] + ["\u22EE "] + trgt[-15:]
761-
wght = wght[:15] + ["\u22EE "] + wght[-15:]
762-
dlay = dlay[:15] + ["\u22EE "] + dlay[-15:]
763-
s_model = s_model[:15] + ["\u22EE "] + s_model[-15:]
758+
# u'\u22ee ' is the unicode for vertical ellipsis, used when we have many connections
759+
srcs = srcs[:15] + ["\u22ee "] + srcs[-15:]
760+
trgt = trgt[:15] + ["\u22ee "] + trgt[-15:]
761+
wght = wght[:15] + ["\u22ee "] + wght[-15:]
762+
dlay = dlay[:15] + ["\u22ee "] + dlay[-15:]
763+
s_model = s_model[:15] + ["\u22ee "] + s_model[-15:]
764764

765765
headers = f"{src_h:^{src_len}} {trg_h:^{trg_len}} {sm_h:^{sm_len}} {w_h:^{w_len}} {d_h:^{d_len}}" + "\n"
766766
borders = (

pynest/nest/raster_plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# You should have received a copy of the GNU General Public License
2020
# along with NEST. If not, see <http://www.gnu.org/licenses/>.
2121

22-
""" Functions for raster plotting."""
22+
"""Functions for raster plotting."""
2323

2424
import nest
2525
import numpy

testsuite/pytests/sli2py_neurons/test_model_node_init.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121

2222

2323
"""
24-
Makeshift test to see if setting model params and then creating a neuron
25-
and creating a neuron and then setting node params lead to the same
26-
results.
24+
Makeshift test to see if setting model params and then creating a neuron
25+
and creating a neuron and then setting node params lead to the same
26+
results.
2727
28-
Works by connecting device to iaf_psc_alpha, measuring voltage trace over 1s
29-
and comparing traces.
28+
Works by connecting device to iaf_psc_alpha, measuring voltage trace over 1s
29+
and comparing traces.
3030
"""
3131

3232
import nest

0 commit comments

Comments
 (0)