Skip to content

BUG: Typo in swarmsplitter.check_CCG that disables the refractoriness gate #1042

Description

@HazenBabcock

Describe the issue:

I think that:

if len(st1) == 0 or len(st2 == 0) or T == 0:
        return False, False

Should be:

if len(st1) == 0 or len(st2) == 0 or T == 0:
        return False, False

Reproduce the bug:

This issue was identified by Claude Code which I was using to better understand how Kilosort4 merges/splits units.

Error message:

Version information:

Python 3.12.3, Kilosort HEAD.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions