Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelgarcia committed Sep 13, 2023
1 parent cf9a3b5 commit ba2e961
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/spikeinterface/comparison/groundtruthstudy.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,12 @@ def copy_sortings(self, case_keys=None, force=True):
sorter_folder = self.folder / "sorters" / self.key_to_str(key)
log_file = self.folder / "sortings" / "run_logs" / f"{self.key_to_str(key)}.json"

sorting = read_sorter_folder(sorter_folder, raise_error=False)

if (sorter_folder / "spikeinterface_log.json").exists():
sorting = read_sorter_folder(sorter_folder, raise_error=False)
else:
sorting = None

if sorting is not None:
if sorting_folder.exists():
if force:
Expand Down

0 comments on commit ba2e961

Please sign in to comment.