phy icon indicating copy to clipboard operation
phy copied to clipboard

Trouble opening .pkl file

Open phanhuynh opened this issue 3 years ago • 1 comments

Hello and thank you all. I'm trying to examine this pkl file created by Phy but get this error:

---------------------------------------------------------------------------
UnpicklingError                           Traceback (most recent call last)
Input In [121], in <module>
      2 import pickle
      5 with open('_phy_SPK/.phy/spikes_per_cluster.pkl', 'rb') as f:
----> 6     train_set, valid_set, test_set = pickle.load(f)

UnpicklingError: invalid load key, '\xbe'.

phanhuynh avatar Apr 20 '22 15:04 phanhuynh

Hope everyone had a good weekend :) Just wanted to check in on this.
I'm getting the impression that the problem is with the file, not the code. Any thoughts?

phanhuynh avatar Apr 25 '22 12:04 phanhuynh