Skip to content
Merged
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
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PyNWB Changelog

## Unreleased
## PyNWB 3.1.2 (August 13, 2025)

### Fixed
- Fixed parsing of the nwb_version attribute which followed the previous suggestion to have a `NWB-` prefix.
Expand Down
28 changes: 14 additions & 14 deletions tests/back_compat/test_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,20 +146,20 @@ def test_read_electrodes_table_as_neurodata_type(self):
assert read_nwbfile.acquisition["ElectricalSeries"].electrodes.table is read_nwbfile.electrodes

# test that export writes the correct builders
temp_dir = tempfile.TemporaryDirectory()
export_file = Path(temp_dir.name) / "3.0.0_electrodes_dynamic_table_export.nwb"
with NWBHDF5IO(export_file, 'w') as export_io:
export_io.export(io)

with self.get_io(export_file) as read_export_io:
read_export_nwbfile = read_export_io.read()
assert isinstance(read_export_nwbfile.electrodes, ElectrodesTable)

# test that references to the electrodes table are also ElectrodesTable
units_table_ref = read_export_nwbfile.units.electrodes.table
assert units_table_ref is read_export_nwbfile.electrodes
eseries_table_ref = read_export_nwbfile.acquisition["ElectricalSeries"].electrodes.table
assert eseries_table_ref is read_export_nwbfile.electrodes
with tempfile.TemporaryDirectory() as temp_dir:
export_file = Path(temp_dir) / "3.0.0_electrodes_dynamic_table_export.nwb"
with NWBHDF5IO(export_file, 'w') as export_io:
export_io.export(io)

with self.get_io(export_file) as read_export_io:
read_export_nwbfile = read_export_io.read()
assert isinstance(read_export_nwbfile.electrodes, ElectrodesTable)

# test that references to the electrodes table are also ElectrodesTable
units_table_ref = read_export_nwbfile.units.electrodes.table
assert units_table_ref is read_export_nwbfile.electrodes
eseries_table_ref = read_export_nwbfile.acquisition["ElectricalSeries"].electrodes.table
assert eseries_table_ref is read_export_nwbfile.electrodes

def test_read_bands_table_as_neurodata_type(self):
"""Test that a "bands" table written as a DynamicTable is read as an FrequencyBandsTable"""
Expand Down
Loading