MCPcopy
hub / github.com/mne-tools/mne-python / test_csd_epochs

Function test_csd_epochs

mne/preprocessing/tests/test_csd.py:190–200  ·  view source on GitHub ↗

Test making epochs, saving to disk and loading.

(tmp_path)

Source from the content-addressed store, hash-verified

188
189
190def test_csd_epochs(tmp_path):
191 """Test making epochs, saving to disk and loading."""
192 raw = read_raw_fif(raw_fname)
193 raw.pick(picks=["eeg", "stim"]).load_data()
194 events = find_events(raw)
195 epochs = Epochs(raw, events, reject=dict(eeg=1e-4), preload=True)
196 epochs = compute_current_source_density(epochs)
197 epo_fname = tmp_path / "test_csd_epo.fif"
198 epochs.save(epo_fname)
199 epochs2 = read_epochs(epo_fname, preload=True)
200 assert_allclose(epochs._data, epochs2._data)
201
202
203def test_compute_bridged_electrodes():

Callers

nothing calls this directly

Calls 8

read_raw_fifFunction · 0.90
find_eventsFunction · 0.90
EpochsClass · 0.90
read_epochsFunction · 0.90
load_dataMethod · 0.45
pickMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected