lazy import of st in HS2
from pathlib import Path
import copy
-
from ..basesorter import BaseSorter
from ..utils import RecordingExtractorOldAPI
from spikeinterface.core import load_extractor
from spikeinterface.extractors import HerdingspikesSortingExtractor
-import spikeinterface.toolkit as st
class HerdingspikesSorter(BaseSorter):
-
sorter_name = 'herdingspikes'
requires_locations = True
@@ -148,10 +145,10 @@ class HerdingspikesSorter(BaseSorter):
@classmethod
def _run_from_folder(cls, output_folder, params, verbose):
import herdingspikes as hs
+ import spikeinterface.toolkit as st
recording = load_extractor(output_folder / 'spikeinterface_recording.json')
-
p = params
# Bandpass filter
