Skip to content
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
4 changes: 1 addition & 3 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,7 @@

rst_epilog = """
.. |neo_github_url| replace:: https://github.com/NeuralEnsemble/python-neo/archive/neo-{}.zip
""".format(
neo_release
)
""".format(neo_release)

sphinx_gallery_conf = {
# 'only_warn_on_example_error': True, # helps with debugging broken examples
Expand Down
1 change: 0 additions & 1 deletion examples/convert_to_nwb.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from urllib.parse import quote
from neo.io import get_io


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

folder = "GrC_Subject15_180116"
Expand Down
1 change: 0 additions & 1 deletion examples/plot_imageseq.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

import random


############################################################
# Now we need to generate some data
# We will just make a nice box and then we can attach this
Expand Down
1 change: 0 additions & 1 deletion examples/plot_read_proxy_with_lazy_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import quantities as pq
import numpy as np


###############################################
# Let's get a file
# NeuralEnsemble maintains a wide variety of small test
Expand Down
6 changes: 2 additions & 4 deletions neo/core/analogsignal.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,10 +523,8 @@ def time_slice(self, t_start, t_stop):
j = i + int(np.rint(delta.simplified.magnitude))

if (i < 0) or (j > len(self)):
raise ValueError(
"t_start, t_stop have to be within the analog \
signal duration"
)
raise ValueError("t_start, t_stop have to be within the analog \
signal duration")

# Time slicing should create a deep copy of the object
obj = deepcopy(self[i:j])
Expand Down
1 change: 0 additions & 1 deletion neo/io/elphyio.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@
# to import from core
from neo.core import Block, Segment, AnalogSignal, Event, SpikeTrain, NeoReadWriteError


# --------------------------------------------------------
# OBJECTS

Expand Down
6 changes: 3 additions & 3 deletions neo/io/nestio.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def __read_analogsignals(
t_start, t_stop = self._check_input_times(t_start, t_stop, mandatory=False)

# checking value input parameters
(value_columns, value_types, value_units) = self._check_input_values_parameters(
value_columns, value_types, value_units = self._check_input_values_parameters(
value_columns, value_types, value_units
)

Expand All @@ -133,7 +133,7 @@ def __read_analogsignals(
)

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

(condition, condition_column, sorting_column) = self._get_conditions_and_sorting(
condition, condition_column, sorting_column = self._get_conditions_and_sorting(
id_column, time_column, gdf_id_list, t_start, t_stop
)

Expand Down
2 changes: 0 additions & 2 deletions neo/io/nixio.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
Neo: https://github.com/G-Node/python-neo/wiki
"""


from datetime import date, time, datetime
from collections.abc import Iterable
from collections import OrderedDict
Expand Down Expand Up @@ -49,7 +48,6 @@
from ..io.proxyobjects import BaseProxy
from .. import __version__ as neover


datetime_types = (date, time, datetime)

EMPTYANNOTATION = "EMPTYLIST"
Expand Down
1 change: 0 additions & 1 deletion neo/io/nwbio.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
SpikeTrainProxy as BaseSpikeTrainProxy,
)


logger = logging.getLogger("Neo")

GLOBAL_ANNOTATIONS = (
Expand Down
1 change: 0 additions & 1 deletion neo/io/proxyobjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from neo.core import AnalogSignal, Epoch, Event, SpikeTrain
from neo.core.dataobject import ArrayDict


logger = logging.getLogger("Neo")


Expand Down
7 changes: 2 additions & 5 deletions neo/rawio/baserawio.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@

from .utils import get_memmap_chunk_from_opened_file


possible_raw_modes = [
"one-file",
"multi-file",
Expand Down Expand Up @@ -262,8 +261,7 @@ def _repr_html_(self):
html.append(f"<p><strong>nb_segment:</strong> {nb_seg}</p>")

# CSS for tables - using only black, white, and gray colors
html.append(
"""
html.append("""
<style>
#{unique_id} table.neo-table {{
border-collapse: collapse;
Expand Down Expand Up @@ -308,8 +306,7 @@ def _repr_html_(self):
background-color: transparent;
}}
</style>
"""
)
""")

# Signal Streams
signal_streams = self.header["signal_streams"]
Expand Down
1 change: 0 additions & 1 deletion neo/rawio/nixrawio.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
)
from ..io.nixio import check_nix_version


# When reading metadata properties, the following keys are ignored since they
# are used to store Neo object properties.
# This dictionary is used in the _filter_properties() method.
Expand Down
1 change: 0 additions & 1 deletion neo/rawio/openephysrawio.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
)
from neo.core import NeoReadWriteError


RECORD_SIZE = 1024
HEADER_SIZE = 1024

Expand Down
1 change: 0 additions & 1 deletion neo/test/coretest/test_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
from neo.test.tools import assert_neo_object_is_compliant, assert_same_sub_schema
from neo.test.generate_datasets import random_block, simple_block, random_signal


N_EXAMPLES = 5


Expand Down
1 change: 0 additions & 1 deletion neo/test/coretest/test_segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
from neo.rawio.examplerawio import ExampleRawIO
from neo.io.proxyobjects import AnalogSignalProxy, SpikeTrainProxy, EventProxy, EpochProxy


N_EXAMPLES = 5


Expand Down
4 changes: 1 addition & 3 deletions neo/test/iotest/common_io_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,7 @@ def test_create_group_across_segment(self):
Test read_block method of BaseFromRaw with different test cases
for create_group_across_segment.

""".format(
io_name=self.ioclass.__name__
)
""".format(io_name=self.ioclass.__name__)

test_cases = [
{"SpikeTrain": True},
Expand Down
1 change: 0 additions & 1 deletion neo/test/iotest/test_mearecio.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from neo.io import MEArecIO
from neo.test.iotest.common_io_test import BaseTestIO


try:
import MEArec as mr

Expand Down
1 change: 0 additions & 1 deletion neo/test/iotest/test_plexon2io.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

from neo.test.rawiotest.test_plexon2rawio import TestPlexon2RawIO


try:
from neo.rawio.plexon2rawio.pypl2 import pypl2lib

Expand Down
1 change: 0 additions & 1 deletion neo/test/rawiotest/test_alphaomegarawio.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ class and a full test will be done to test if the new coded IO

from neo.test.rawiotest.common_rawio_test import BaseTestRawIO


logging.getLogger().setLevel(logging.INFO)


Expand Down
1 change: 0 additions & 1 deletion neo/test/rawiotest/test_mearecrawio.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from neo.test.rawiotest.common_rawio_test import BaseTestRawIO


try:
import MEArec as mr

Expand Down
1 change: 0 additions & 1 deletion neo/test/rawiotest/test_nixrawio.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from neo.rawio.nixrawio import NIXRawIO
from neo.test.rawiotest.common_rawio_test import BaseTestRawIO


testfname = ""


Expand Down
1 change: 0 additions & 1 deletion neo/test/rawiotest/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import os
import importlib.util


logger = logging.getLogger("neo.test")


Expand Down