Skip to content

Commit

Permalink
Merge pull request #2111 from catalystneuro/small_fix_neuroconv
Browse files Browse the repository at this point in the history
Fixes typing error in waveforms
  • Loading branch information
alejoe91 authored Oct 18, 2023
2 parents 99f31e5 + 1556105 commit cb219c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 1 addition & 9 deletions src/spikeinterface/extractors/neoextractors/neuroscope.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@

from .neobaseextractor import NeoBaseRecordingExtractor

try:
from lxml import etree as et

HAVE_LXML = True
except ImportError:
HAVE_LXML = False

PathType = Union[str, Path]
OptionalPathType = Optional[PathType]
Expand Down Expand Up @@ -108,8 +102,6 @@ class NeuroScopeSortingExtractor(BaseSorting):
"""

extractor_name = "NeuroscopeSortingExtractor"
installed = HAVE_LXML
installation_mesg = "Please install lxml to use this extractor!"
name = "neuroscope"

def __init__(
Expand All @@ -121,7 +113,7 @@ def __init__(
exclude_shanks: Optional[list] = None,
xml_file_path: OptionalPathType = None,
):
assert self.installed, self.installation_mesg
from lxml import etree as et

assert not (
folder_path is None and resfile_path is None and clufile_path is None
Expand Down
2 changes: 2 additions & 0 deletions src/spikeinterface/postprocessing/template_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
https://github.com/AllenInstitute/ecephys_spike_sorting/blob/master/ecephys_spike_sorting/modules/mean_waveforms/waveform_metrics.py
22/04/2020
"""
from __future__ import annotations

import numpy as np
import warnings
from typing import Optional
Expand Down

0 comments on commit cb219c7

Please sign in to comment.