Skip to content

Commit 424e030

Browse files
authored
Merge branch 'dev' into nwb_schema_2.8.0
2 parents 9fe6239 + bb782e8 commit 424e030

File tree

3 files changed

+50
-12
lines changed

3 files changed

+50
-12
lines changed

CHANGELOG.md

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,23 @@
1010
- Deprecated `EventWaveform` neurodata type. @rly [#1940](https://github.com/NeurodataWithoutBorders/pynwb/pull/1940)
1111
- Deprecated `ImageMaskSeries` neurodata type. @rly [#1941](https://github.com/NeurodataWithoutBorders/pynwb/pull/1941)
1212

13-
## PyNWB 2.8.3 (Upcoming)
13+
## PyNWB 2.8.3 (November 19, 2024)
1414

1515
### Enhancements and minor changes
16-
* Added `NWBHDF5IO.read_nwb` convenience method to simplify reading an NWB file. @h-mayorquin [#1979](https://github.com/NeurodataWithoutBorders/pynwb/pull/1979)
17-
* Removed unused references to region references and builders in preparation for changes in HDMF 4.0. @rly [#1991](https://github.com/NeurodataWithoutBorders/pynwb/pull/1991)
18-
19-
### Documentation and tutorial enhancements
20-
- Added documentation example for `SpikeEventSeries`. @stephprince [#1983](https://github.com/NeurodataWithoutBorders/pynwb/pull/1983)
21-
- Added documentation example for `AnnotationSeries`. @stephprince [#1989](https://github.com/NeurodataWithoutBorders/pynwb/pull/1989)
22-
23-
### Performance
16+
- Added `NWBHDF5IO.read_nwb` convenience method to simplify reading an NWB file. @h-mayorquin [#1979](https://github.com/NeurodataWithoutBorders/pynwb/pull/1979)
17+
- Removed unused references to region references and builders in preparation for changes in HDMF 4.0. @rly [#1991](https://github.com/NeurodataWithoutBorders/pynwb/pull/1991)
18+
- Made gain an optional argument for PatchClampSeries to match the schema. @stephprince [#1975](https://github.com/NeurodataWithoutBorders/pynwb/pull/1975)
19+
- Added warning when writing files with `NWBHDF5IO` without the `.nwb` extension. @stephprince [#1978](https://github.com/NeurodataWithoutBorders/pynwb/pull/1978)
2420
- Cache global type map to speed import 3X. @sneakers-the-rat [#1931](https://github.com/NeurodataWithoutBorders/pynwb/pull/1931)
2521

2622
### Bug fixes
2723
- Fixed bug in how `ElectrodeGroup.__init__` validates its `position` argument. @oruebel [#1770](https://github.com/NeurodataWithoutBorders/pynwb/pull/1770)
2824
- Changed `SpatialSeries.reference_frame` from required to optional as specified in the schema. @rly [#1986](https://github.com/NeurodataWithoutBorders/pynwb/pull/1986)
2925

30-
### Enhancements and minor changes
31-
- Made gain an optional argument for PatchClampSeries to match the schema. @stephprince [#1975](https://github.com/NeurodataWithoutBorders/pynwb/pull/1975)
32-
- Added warning when writing files with `NWBHDF5IO` without the `.nwb` extension. @stephprince [#1978](https://github.com/NeurodataWithoutBorders/pynwb/pull/1978)
26+
### Documentation and tutorial enhancements
27+
- Added documentation example for `SpikeEventSeries`. @stephprince [#1983](https://github.com/NeurodataWithoutBorders/pynwb/pull/1983)
28+
- Added documentation example for `AnnotationSeries`. @stephprince [#1989](https://github.com/NeurodataWithoutBorders/pynwb/pull/1989)
29+
- Added documentation example for `DecompositionSeries`. @stephprince [#1981](https://github.com/NeurodataWithoutBorders/pynwb/pull/1981)
3330

3431
## PyNWB 2.8.2 (September 9, 2024)
3532

docs/gallery/domain/ecephys.py

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131
from dateutil.tz import tzlocal
3232

3333
from pynwb import NWBHDF5IO, NWBFile
34+
3435
from pynwb.ecephys import LFP, ElectricalSeries, SpikeEventSeries
36+
from pynwb.misc import DecompositionSeries
3537

3638
#######################
3739
# Creating and Writing NWB files
@@ -247,6 +249,41 @@
247249
)
248250
ecephys_module.add(lfp)
249251

252+
####################
253+
# In some cases, you may want to further process the LFP data and decompose the signal into different frequency bands
254+
# to use for other downstream analyses. You can store the processed data from these spectral analyses using a
255+
# :py:class:`~pynwb.misc.DecompositionSeries` object. This object allows you to include metadata about the frequency
256+
# bands and metric used (e.g., power, phase, amplitude), as well as link the decomposed data to the original
257+
# :py:class:`~pynwb.base.TimeSeries` signal the data was derived from.
258+
259+
#######################
260+
# .. note:: When adding data to :py:class:`~pynwb.misc.DecompositionSeries`, the ``data`` argument is assumed to be
261+
# 3D where the first dimension is time, the second dimension is channels, and the third dimension is bands.
262+
263+
264+
bands = dict(theta=(4.0, 12.0),
265+
beta=(12.0, 30.0),
266+
gamma=(30.0, 80.0)) # in Hz
267+
phase_data = np.random.randn(50, 12, len(bands)) # 50 samples, 12 channels, 3 frequency bands
268+
269+
decomp_series = DecompositionSeries(name="theta",
270+
description="phase of bandpass filtered LFP data",
271+
data=phase_data,
272+
metric='phase',
273+
rate=200.0,
274+
source_channels=all_table_region,
275+
source_timeseries=lfp_electrical_series)
276+
277+
for band_name, band_limits in bands.items():
278+
decomp_series.add_band(band_name=band_name, band_limits=band_limits, band_mean=np.nan, band_stdev=np.nan)
279+
280+
ecephys_module.add(decomp_series)
281+
282+
#######################
283+
# The frequency band information can also be viewed as a pandas DataFrame.
284+
285+
decomp_series.bands.to_dataframe()
286+
250287
####################
251288
# .. _units_electrode:
252289
#

docs/source/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ def __call__(self, filename):
168168
nitpick_ignore = [('py:class', 'Intracomm'),
169169
('py:class', 'BaseStorageSpec')]
170170

171+
linkcheck_ignore = [
172+
r'https://training.incf.org/*' # temporary ignore until SSL certificate issue is resolved
173+
]
174+
171175
suppress_warnings = ["config.cache"]
172176

173177
# Add any paths that contain templates here, relative to this directory.

0 commit comments

Comments
 (0)