Skip to content

Alteration in kilosort package leads to error using kilosort4 #4225

@RichardFav

Description

@RichardFav

Dear Devs,

I recently updated my version of kilosort (from 4.0.37 to 4.1.2) and this caused an error using kilosort4 within the Spikeinterface spike sorter (specifically at Line 310 of spikeinterface.sorters.external.kilosort4._run_from_folder).

I did some digging, and found that the error is due to a change made to kilosort on Sept 17 (MouseLand/Kilosort@42fd52c) whereby "batch_downsampling" is added to the parameter list (see Line 573). This causes the aforementioned error as the function now requires 17 outputs (instead of the 16 listed currently within spikeinterface).

I found a hack solution was to add in an extra ", _" to Line 310 (i.e., ignoring the parameter), although this parameter could also be repurposed for use within the solver - depends on how you want to handle things I guess.

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