Open
Description
Hello!
I am encountering a MemoryError while running the following bit of code. I faced the issue only after upgrading the spikeinterface module (previous version was 0.101.2; updated to 0.102.3). The same code worked in the previous version. Once I uninstalled the latest version and installed an older version, the code ran without errors again.
recording_layers = dict(
ps=recording_split_by_shank[0],
spatial_filt_ps=shank_wise_recording_spatial_filt[0]
)
w = sw.plot_traces(recording_layers, mode='map', time_range=[19*60, 19*60+5], backend="ipywidgets")
The MemoryError I get points to the following line within the spikeinterface module (line 166 in spikeinterface/widgets/traces.py):
list_traces = [traces * scale for traces in list_traces]
It looks like the widget code tries to load the entire recording object into memory.