Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
bendichter committed Aug 14, 2023
1 parent 946070b commit ad0d43a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/pynwb/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def __init__(self, **kwargs):
{'name': 'features', 'type': (list, np.ndarray), 'doc': 'the feature values for this time point'})
def add_features(self, **kwargs):
time, features = getargs('time', 'features', kwargs)
if type(self.timestamps) == list and type(self.data) is list:
if isinstance(self.timestamps, list) and isinstance(self.data, list):
self.timestamps.append(time)
self.data.append(features)
else:
Expand Down
14 changes: 12 additions & 2 deletions tests/integration/hdf5/test_ecephys.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
from hdmf.common import DynamicTableRegion

from pynwb.ecephys import ElectrodeGroup, ElectricalSeries, FilteredEphys, LFP, Clustering, ClusterWaveforms,\
SpikeEventSeries, EventWaveform, EventDetection, FeatureExtraction
from pynwb.ecephys import (
ElectrodeGroup,
ElectricalSeries,
FilteredEphys,
LFP,
Clustering,
ClusterWaveforms,
SpikeEventSeries,
EventWaveform,
EventDetection,
FeatureExtraction,
)
from pynwb.device import Device
from pynwb.file import ElectrodeTable as get_electrode_table
from pynwb.testing import NWBH5IOMixin, AcquisitionH5IOMixin, TestCase
Expand Down
14 changes: 12 additions & 2 deletions tests/unit/test_ecephys.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,18 @@

import numpy as np

from pynwb.ecephys import ElectricalSeries, SpikeEventSeries, EventDetection, Clustering, EventWaveform,\
ClusterWaveforms, LFP, FilteredEphys, FeatureExtraction, ElectrodeGroup
from pynwb.ecephys import (
ElectricalSeries,
SpikeEventSeries,
EventDetection,
Clustering,
EventWaveform,
ClusterWaveforms,
LFP,
FilteredEphys,
FeatureExtraction,
ElectrodeGroup,
)
from pynwb.device import Device
from pynwb.file import ElectrodeTable
from pynwb.testing import TestCase
Expand Down

0 comments on commit ad0d43a

Please sign in to comment.