Skip to content

Commit d1f3719

Browse files
authored
Merge pull request #1811 from NeuralEnsemble/black-formatting
Black formatting
2 parents 0f4a67b + 72771a7 commit d1f3719

22 files changed

Lines changed: 9 additions & 36 deletions

doc/source/conf.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,7 @@
247247

248248
rst_epilog = """
249249
.. |neo_github_url| replace:: https://github.com/NeuralEnsemble/python-neo/archive/neo-{}.zip
250-
""".format(
251-
neo_release
252-
)
250+
""".format(neo_release)
253251

254252
sphinx_gallery_conf = {
255253
# 'only_warn_on_example_error': True, # helps with debugging broken examples

examples/convert_to_nwb.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from urllib.parse import quote
99
from neo.io import get_io
1010

11-
1211
dataset_url = "https://object.cscs.ch/v1/AUTH_63ea6845b1d34ad7a43c8158d9572867/hbp-d000017_PatchClamp-GranuleCells_pub"
1312

1413
folder = "GrC_Subject15_180116"

examples/plot_imageseq.py

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

1515
import random
1616

17-
1817
############################################################
1918
# Now we need to generate some data
2019
# We will just make a nice box and then we can attach this

examples/plot_read_proxy_with_lazy_load.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import quantities as pq
1515
import numpy as np
1616

17-
1817
###############################################
1918
# Let's get a file
2019
# NeuralEnsemble maintains a wide variety of small test

neo/core/analogsignal.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -523,10 +523,8 @@ def time_slice(self, t_start, t_stop):
523523
j = i + int(np.rint(delta.simplified.magnitude))
524524

525525
if (i < 0) or (j > len(self)):
526-
raise ValueError(
527-
"t_start, t_stop have to be within the analog \
528-
signal duration"
529-
)
526+
raise ValueError("t_start, t_stop have to be within the analog \
527+
signal duration")
530528

531529
# Time slicing should create a deep copy of the object
532530
obj = deepcopy(self[i:j])

neo/io/elphyio.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@
8989
# to import from core
9090
from neo.core import Block, Segment, AnalogSignal, Event, SpikeTrain, NeoReadWriteError
9191

92-
9392
# --------------------------------------------------------
9493
# OBJECTS
9594

neo/io/nestio.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def __read_analogsignals(
111111
t_start, t_stop = self._check_input_times(t_start, t_stop, mandatory=False)
112112

113113
# checking value input parameters
114-
(value_columns, value_types, value_units) = self._check_input_values_parameters(
114+
value_columns, value_types, value_units = self._check_input_values_parameters(
115115
value_columns, value_types, value_units
116116
)
117117

@@ -133,7 +133,7 @@ def __read_analogsignals(
133133
)
134134

135135
# extracting condition and sorting parameters for raw data loading
136-
(condition, condition_column, sorting_column) = self._get_conditions_and_sorting(
136+
condition, condition_column, sorting_column = self._get_conditions_and_sorting(
137137
id_column, time_column, gid_list, t_start, t_stop
138138
)
139139
# loading raw data columns
@@ -210,7 +210,7 @@ def __read_spiketrains(self, gdf_id_list, time_unit, t_start, t_stop, id_column,
210210
if cid is None:
211211
column_ids[i] = -1
212212

213-
(condition, condition_column, sorting_column) = self._get_conditions_and_sorting(
213+
condition, condition_column, sorting_column = self._get_conditions_and_sorting(
214214
id_column, time_column, gdf_id_list, t_start, t_stop
215215
)
216216

neo/io/nixio.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
Neo: https://github.com/G-Node/python-neo/wiki
2020
"""
2121

22-
2322
from datetime import date, time, datetime
2423
from collections.abc import Iterable
2524
from collections import OrderedDict
@@ -49,7 +48,6 @@
4948
from ..io.proxyobjects import BaseProxy
5049
from .. import __version__ as neover
5150

52-
5351
datetime_types = (date, time, datetime)
5452

5553
EMPTYANNOTATION = "EMPTYLIST"

neo/io/nwbio.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
SpikeTrainProxy as BaseSpikeTrainProxy,
3535
)
3636

37-
3837
logger = logging.getLogger("Neo")
3938

4039
GLOBAL_ANNOTATIONS = (

neo/io/proxyobjects.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
from neo.core import AnalogSignal, Epoch, Event, SpikeTrain
2020
from neo.core.dataobject import ArrayDict
2121

22-
2322
logger = logging.getLogger("Neo")
2423

2524

0 commit comments

Comments
 (0)