Source code for neuroconv.datainterfaces.ecephys.plexon.plexondatainterface
from ..baserecordingextractorinterface import BaseRecordingExtractorInterface
from ..basesortingextractorinterface import BaseSortingExtractorInterface
from ....utils import DeepDict
from ....utils.types import FilePathType
[docs]class PlexonRecordingInterface(BaseRecordingExtractorInterface):
"""
Primary data interface class for converting Plexon data.
Uses the :py:class:`~spikeinterface.extractors.PlexonRecordingExtractor`.
"""
help = "Interface for Plexon recording data."
display_name = "Plexon Recording"
def __init__(self, file_path: FilePathType, verbose: bool = True, es_key: str = "ElectricalSeries"):
"""
Load and prepare data for Plexon.
Parameters
----------
file_path : str or Path
Path to the .plx file.
verbose : bool, default: True
Allows verbosity.
es_key : str, default: "ElectricalSeries"
"""
super().__init__(file_path=file_path, verbose=verbose, es_key=es_key)
[docs]class PlexonSortingInterface(BaseSortingExtractorInterface):
"""
Primary data interface class for converting Plexon spiking data.
Uses :py:class:`~spikeinterface.extractors.PlexonSortingExtractor`.
"""
def __init__(self, file_path: FilePathType, verbose: bool = True):
"""
Load and prepare data for Plexon.
Parameters
----------
file_path: FilePathType
Path to the plexon spiking data (.plx file).
verbose: bool, default: True
Allows verbosity.
"""
super().__init__(file_path=file_path, verbose=verbose)