Skip to content

Commit b1104ce

Browse files
committed
fix(spike_sorting): create empty sorting_analyzer folder when no units found
1 parent 451571d commit b1104ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

element_array_ephys/spike_sorting/si_spike_sorting.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ def make(self, key):
284284
def _sorting_analyzer_compute():
285285
if not has_units:
286286
log.info("No units found in sorting object. Skipping sorting analyzer.")
287+
analyzer_output_dir.mkdir(parents=True, exist_ok=True) # create empty directory anyway, for consistency
287288
return
288289

289290
# Sorting Analyzer

0 commit comments

Comments
 (0)