Skip to content

Commit

Permalink
Update src/spikeinterface/core/sortinganalyzer.py
Browse files Browse the repository at this point in the history
Co-authored-by: Alessio Buccino <[email protected]>
  • Loading branch information
samuelgarcia and alejoe91 authored Jan 15, 2025
1 parent bd1ebe8 commit e3b2f16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spikeinterface/core/sortinganalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2092,7 +2092,7 @@ def load_data(self):
import pandas as pd

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

0 comments on commit e3b2f16

Please sign in to comment.