Skip to content

Whitespace changes for black-25 #3421

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
23 changes: 12 additions & 11 deletions doc/htmldoc/developer_space/templates/pynest_api_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,21 @@
# You should have received a copy of the GNU General Public License
# along with NEST. If not, see <http://www.gnu.org/licenses/>.

"""[[ This template demonstrates how to create a docstring for the PyNEST API.
"""
[[ This template demonstrates how to create a docstring for the PyNEST API.

If you have modified an API, please ensure you update the docstring!
If you have modified an API, please ensure you update the docstring!

The format is based on `NumPy style docstring
<https://numpydoc.readthedocs.io/en/latest/format.html>`_ and uses
reStructuredText markup. Please review the syntax rules if you are
unfamiliar with either reStructuredText or NumPy style docstrings.
The format is based on `NumPy style docstring
<https://numpydoc.readthedocs.io/en/latest/format.html>`_ and uses
reStructuredText markup. Please review the syntax rules if you are
unfamiliar with either reStructuredText or NumPy style docstrings.

Copy this file and replace the sample text with a description of the API.
The double bracketed sections [[ ]], which provide explanations, should be
completely removed from your final version - Including this entire
docstring!
]]
Copy this file and replace the sample text with a description of the API.
The double bracketed sections [[ ]], which provide explanations, should be
completely removed from your final version - Including this entire
docstring!
]]
"""


Expand Down
6 changes: 3 additions & 3 deletions pynest/examples/EI_clustered_network/stimulus_params_EI.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
# You should have received a copy of the GNU General Public License
# along with NEST. If not, see <http://www.gnu.org/licenses/>.

""" PyNEST EI-clustered network: Stimulus Parameters
-----------------------------------------------------
"""
PyNEST EI-clustered network: Stimulus Parameters
------------------------------------------------

A dictionary with parameters for an optinal stimulation of clusters.

"""

stim_dict = {
Expand Down
6 changes: 3 additions & 3 deletions pynest/examples/Potjans_2014/stimulus_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
# You should have received a copy of the GNU General Public License
# along with NEST. If not, see <http://www.gnu.org/licenses/>.

""" PyNEST Microcircuit: Stimulus Parameters
-----------------------------------------------
"""
PyNEST Microcircuit: Stimulus Parameters
----------------------------------------

A dictionary with parameters for an optional external transient stimulation.
Thalamic input and DC input can be switched on individually.

"""

import numpy as np
Expand Down
12 changes: 6 additions & 6 deletions pynest/nest/lib/hl_api_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -755,12 +755,12 @@ def format_row_(s, t, sm, w, dly):

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

headers = f"{src_h:^{src_len}} {trg_h:^{trg_len}} {sm_h:^{sm_len}} {w_h:^{w_len}} {d_h:^{d_len}}" + "\n"
borders = (
Expand Down
2 changes: 1 addition & 1 deletion pynest/nest/raster_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# You should have received a copy of the GNU General Public License
# along with NEST. If not, see <http://www.gnu.org/licenses/>.

""" Functions for raster plotting."""
"""Functions for raster plotting."""

import nest
import numpy
Expand Down
10 changes: 5 additions & 5 deletions testsuite/pytests/sli2py_neurons/test_model_node_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@


"""
Makeshift test to see if setting model params and then creating a neuron
and creating a neuron and then setting node params lead to the same
results.
Makeshift test to see if setting model params and then creating a neuron
and creating a neuron and then setting node params lead to the same
results.

Works by connecting device to iaf_psc_alpha, measuring voltage trace over 1s
and comparing traces.
Works by connecting device to iaf_psc_alpha, measuring voltage trace over 1s
and comparing traces.
"""

import nest
Expand Down
Loading