Skip to content

Commit fe4c77d

Browse files
author
Sharon Chiang
committed
Fix: check for None instead of false value in sort_ref_id (current line raises exception if electrode 0 is set to reference)
1 parent be9314f commit fe4c77d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spyglass/spikesorting/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def get_group_by_shank(
7676

7777
if references: # Use 'references' if passed
7878
sort_ref_id = references.get(e_group, None)
79-
if not sort_ref_id:
79+
if sort_ref_id is None:
8080
raise Exception(
8181
f"electrode group {e_group} not a key in "
8282
+ "references, so cannot set reference"

0 commit comments

Comments
 (0)