Test making epochs, saving to disk and loading.
(tmp_path)
| 188 | |
| 189 | |
| 190 | def 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 | |
| 203 | def test_compute_bridged_electrodes(): |
nothing calls this directly
no test coverage detected