Skip to content

Commit e3b2f16

Browse files
Update src/spikeinterface/core/sortinganalyzer.py
Co-authored-by: Alessio Buccino <alejoe9187@gmail.com>
1 parent bd1ebe8 commit e3b2f16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/spikeinterface/core/sortinganalyzer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2092,7 +2092,7 @@ def load_data(self):
20922092
import pandas as pd
20932093

20942094
ext_data = pd.read_csv(ext_data_file, index_col=0)
2095-
# really sad hack here because csv was a bad choice for saving a DataFrame (maybe a npy per columns would have been better)
2095+
# we need to cast the index to the unit id dtype (int or str)
20962096
unit_ids = self.sorting_analyzer.unit_ids
20972097
if ext_data.shape[0] == unit_ids.size:
20982098
# we force dtype to be the same as unit_ids

0 commit comments

Comments
 (0)