cogpy.datasets.schemas

Functions

assert_attrs_survive(da, required)

Use in tests to catch operations that silently drop attrs.

coerce_event_catalog(obj, *[, family, meta, ...])

coerce_grid_windowed_spectrum(da)

Best-effort coercion to GridWindowedSpectrum schema.

coerce_ieeg_grid(da, *[, fs, ap_coords, ...])

Best-effort coercion to IEEGGridTimeSeries schema.

coerce_ieeg_grid_windowed(da, *[, win_dim, ...])

Best-effort coercion to IEEGGridWindowed schema.

coerce_ieeg_time_channel(da, *[, fs])

Best-effort coercion to IEEGTimeChannel schema.

coerce_multichannel(da, *[, fs, ...])

Best-effort coercion to MultichannelTimeSeries schema.

coerce_multichannel_windowed(da, *[, ...])

Best-effort coercion to MultichannelWindowed schema.

coerce_spectrogram4d(da)

Best-effort coercion to GridSpectrogram4D schema.

validate_burst_peaks(df)

Validate BurstPeaksTable schema.

validate_event_catalog(catalog)

validate_grid_windowed_spectrum(da, *[, ...])

Validate GridWindowedSpectrum schema (compute-oriented, uppercase).

validate_ieeg_grid(da, *[, required_attrs])

Validate IEEGGridTimeSeries schema.

validate_ieeg_grid_windowed(da, *[, ...])

Validate IEEGGridWindowed schema (sliding-window grid features).

validate_ieeg_time_channel(da, *[, ...])

Validate an iEEG time×channel view intended for stacked-trace viewers.

validate_multichannel(da, *[, required_attrs])

Validate MultichannelTimeSeries schema.

validate_multichannel_windowed(da, *[, ...])

Validate MultichannelWindowed schema (sliding-window channel features).

validate_spectrogram4d(da, *[, required_attrs])

Validate GridSpectrogram4D schema (orthoslicer-friendly).

Classes

AtlasImageOverlay(image, ap_extent, ml_extent)

Bundle-safe atlas overlay: keep the image and its placement metadata together.

EventCatalog(family, table, meta[, memberships])

Canonical detector output contract: a per-event table + provenance + converters.

Events(times[, labels, name])

Timestamped point events with optional labels.

Intervals(starts, ends[, name])

Named set of time intervals for iEEG analysis.