From 001a9fd670ba88b5b825a3ed7896e5d5e0269cf6 Mon Sep 17 00:00:00 2001 From: Heberto Mayorquin Date: Wed, 24 Apr 2024 11:29:19 -0600 Subject: [PATCH] Add default `name="units"` to `Units` object in the `mock_Units` testing function (#1883) --- CHANGELOG.md | 2 +- src/pynwb/testing/mock/ecephys.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c1949712..9bffea855 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ - Support `stimulus_template` as optional predefined column in `IntracellularStimuliTable`. @stephprince [#1815](https://github.com/NeurodataWithoutBorders/pynwb/pull/1815) - Support `NWBDataInterface` and `DynamicTable` in `NWBFile.stimulus`. @rly [#1842](https://github.com/NeurodataWithoutBorders/pynwb/pull/1842) - Added support for python 3.12 and upgraded dependency versions. This also includes infrastructure updates for developers. @mavaylon1 [#1853](https://github.com/NeurodataWithoutBorders/pynwb/pull/1853) -- Added `mock_Units` for generating Units tables. @h-mayorquin [#1875](https://github.com/NeurodataWithoutBorders/pynwb/pull/1875) +- Added `mock_Units` for generating Units tables. @h-mayorquin [#1875](https://github.com/NeurodataWithoutBorders/pynwb/pull/1875) and [#1883](https://github.com/NeurodataWithoutBorders/pynwb/pull/1883) ### Bug fixes - Fix bug with reading file with linked `TimeSeriesReferenceVectorData` @rly [#1865](https://github.com/NeurodataWithoutBorders/pynwb/pull/1865) diff --git a/src/pynwb/testing/mock/ecephys.py b/src/pynwb/testing/mock/ecephys.py index 97831c3de..36796c267 100644 --- a/src/pynwb/testing/mock/ecephys.py +++ b/src/pynwb/testing/mock/ecephys.py @@ -129,7 +129,7 @@ def mock_Units( nwbfile: Optional[NWBFile] = None, ) -> Units: - units_table = Units() + units_table = Units(name="units") # This is for nwbfile.units= mock_Units() to work units_table.add_column(name="unit_name", description="a readable identifier for the unit") rng = np.random.default_rng(seed=seed)