Source code for neuroconv.datainterfaces.ecephys.alphaomega.alphaomegadatainterface
from pydantic import DirectoryPath
from ..baserecordingextractorinterface import BaseRecordingExtractorInterface
[docs]class AlphaOmegaRecordingInterface(BaseRecordingExtractorInterface):
"""
Primary data interface class for converting AlphaOmega recording data.
Uses the :py:class:`~spikeinterface.extractors.AlphaOmegaRecordingExtractor`.
"""
display_name = "AlphaOmega Recording"
associated_suffixes = (".mpx",)
info = "Interface class for converting AlphaOmega recording data."
stream_id = "RAW"
[docs] @classmethod
def get_source_schema(cls) -> dict:
source_schema = super().get_source_schema()
source_schema["properties"]["folder_path"]["description"] = "Path to the folder of .mpx files."
return source_schema
def _source_data_to_extractor_kwargs(self, source_data: dict) -> dict:
extractor_kwargs = source_data.copy()
extractor_kwargs["stream_id"] = self.stream_id
return extractor_kwargs
def __init__(self, folder_path: DirectoryPath, verbose: bool = False, es_key: str = "ElectricalSeries"):
"""
Load and prepare data for AlphaOmega.
Parameters
----------
folder_path: string or Path
Path to the folder of .mpx files.
verbose: boolean
Allows verbose.
Default is False.
es_key: str, default: "ElectricalSeries"
"""
super().__init__(folder_path=folder_path, verbose=verbose, es_key=es_key)