cortex-lab / phy

phy: interactive visualization and manual spike sorting of large-scale ephys data
BSD 3-Clause "New" or "Revised" License
307 stars 156 forks source link

Trouble opening .pkl file #1154

Open phanhuynh opened 2 years ago

phanhuynh commented 2 years ago

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 commented 2 years ago

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?