at cutoff
for cutoff in (0.1, 0.2):
raw_highpass = raw_.copy().filter(l_freq=cutoff, h_freq=None)
with mne.viz.use_browser_backend(âmatplotlibâ):
fig = raw_highpass.plot(duration=60, proj=False,
n_channels=len(raw.ch_names), remove_dc=False)
fig.subplots_adjust(top=0.9)
fig.suptitle(âHigh-pass filtered at {} Hzâ.format(cutoff), size=âxx-largeâ,
weight=âboldâ)
RuntimeError: By default, MNE does not load data into main memory to conserve resources. inst.filter requires raw data to be loaded. Use preload=True (or string) in the constructor or raw.load_data().
Hello @PhD-GOAT, you have to run raw.load_data() as @agramfort suggested, or pass preload=True to the read command. By default, MNE doesnât preload the data from disk when you read it. It only retrieves some metadata. But for filtering, you need to explicit load the data.