Skip to content

Commit 3bf95a5

Browse files
committed
Fix ruff
1 parent 4b96116 commit 3bf95a5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/pynwb/io/misc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
from hdmf.common.io.table import DynamicTableMap
2-
from .base import TimeSeriesMap
32

43
from .. import register_map
5-
from pynwb.misc import Units, DecompositionSeries
4+
from pynwb.misc import Units
65

76

87
@register_map(Units)

tests/back_compat/test_read.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ def test_read_electrodes_table_as_neurodata_type(self):
140140
with self.get_io(f) as io:
141141
read_nwbfile = io.read()
142142
assert isinstance(read_nwbfile.electrodes, ElectrodesTable)
143-
breakpoint()
144143

145144
# test that references to the electrodes table are also ElectrodesTable
146145
assert read_nwbfile.units.electrodes.table is read_nwbfile.electrodes
@@ -157,8 +156,10 @@ def test_read_electrodes_table_as_neurodata_type(self):
157156
assert isinstance(read_export_nwbfile.electrodes, ElectrodesTable)
158157

159158
# test that references to the electrodes table are also ElectrodesTable
160-
assert read_export_nwbfile.units.electrodes.table is read_export_nwbfile.electrodes
161-
assert read_export_nwbfile.acquisition["ElectricalSeries"].electrodes.table is read_export_nwbfile.electrodes
159+
units_table_ref = read_export_nwbfile.units.electrodes.table
160+
assert units_table_ref is read_export_nwbfile.electrodes
161+
eseries_table_ref = read_export_nwbfile.acquisition["ElectricalSeries"].electrodes.table
162+
assert eseries_table_ref is read_export_nwbfile.electrodes
162163

163164
def test_read_bands_table_as_neurodata_type(self):
164165
"""Test that a "bands" table written as a DynamicTable is read as an FrequencyBandsTable"""

0 commit comments

Comments
 (0)