Skip to content

Commit

Permalink
fix(spike_sorting): create empty sorting_analyzer folder when no un…
Browse files Browse the repository at this point in the history
…its found
  • Loading branch information
ttngu207 committed Oct 9, 2024
1 parent 451571d commit b1104ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions element_array_ephys/spike_sorting/si_spike_sorting.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ def make(self, key):
def _sorting_analyzer_compute():
if not has_units:
log.info("No units found in sorting object. Skipping sorting analyzer.")
analyzer_output_dir.mkdir(parents=True, exist_ok=True) # create empty directory anyway, for consistency
return

# Sorting Analyzer
Expand Down

0 comments on commit b1104ce

Please sign in to comment.