Skip to content

Commit

Permalink
Merge branch 'fix_dataframe_index_dtype' of github.com:samuelgarcia/s…
Browse files Browse the repository at this point in the history
…pikeinterface into for_sigui
  • Loading branch information
samuelgarcia committed Jan 15, 2025
2 parents 2745adb + e3b2f16 commit 7e50caa
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 7e50caa

Please sign in to comment.