Skip to content

Update reading in spikes from numpy arrays

Didi Hou requested to merge read_in_spikes_from_np_array into master

Created by: jarsi

With more recent versions of numpy (changed in version 1.16.3, see here) the default behavior of reading in numpy arrays changed from allow_pickle=True to allow_pickle=False. If we want to read in the processed spikes, which are stored in numpy arrays, across numpy versions we need to manually set it to True.

In general it is stated:

Warning Loading files that contain object arrays uses the pickle module, which is not secure against erroneous or maliciously constructed data. Consider passing allow_pickle=False to load data that is known not to contain object arrays for the safer handling of untrusted sources.

Thus we should about another dataformat in the long run and consider this a temporary fix.

Merge request reports