Skip to content

Commit

Permalink
Merge pull request #294 from catalystneuro/rename_existing_interface_…
Browse files Browse the repository at this point in the history
…to_OpenEphysBinaryRecordingInterface

Rename existing OpenEphys interface to `OpenEphysBinaryRecordingInterface`
  • Loading branch information
CodyCBakerPhD authored Feb 10, 2023
2 parents 230d2d7 + fc5ed3f commit b65e948
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Upcoming

### Features
* The `OpenEphysRecordingInterface` is now a wrapper for `OpenEphysBinaryRecordingInterface`. [PR #294](https://github.com/catalystneuro/neuroconv/pull/294)


# v0.2.4
Expand Down
4 changes: 2 additions & 2 deletions src/neuroconv/datainterfaces/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
BlackrockRecordingInterface,
BlackrockSortingInterface,
)
from .ecephys.openephys.openephysdatainterface import (
OpenEphysRecordingInterface,
from .ecephys.openephys.openephysbinarydatainterface import (
OpenEphysRecordingInterface, # temporary import until transitioning to the renamed interface
OpenEphysSortingInterface,
)
from .ecephys.axona.axonadatainterface import (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
from ....utils import get_schema_from_method_signature, FolderPathType


class OpenEphysRecordingInterface(BaseRecordingExtractorInterface):
"""Primary data interface for converting OpenEphys data. Uses
class OpenEphysBinaryRecordingInterface(BaseRecordingExtractorInterface):
"""Primary data interface for converting binary OpenEphys data (.dat files). Uses
:py:class:`~spikeinterface.extractors.OpenEphysBinaryRecordingExtractor`."""

ExtractorName = "OpenEphysBinaryRecordingExtractor"
Expand All @@ -19,7 +19,9 @@ def get_source_schema(cls):
source_schema = get_schema_from_method_signature(
class_method=cls.__init__, exclude=["recording_id", "experiment_id", "stub_test"]
)
source_schema["properties"]["folder_path"]["description"] = "Path to directory containing OpenEphys files."
source_schema["properties"]["folder_path"][
"description"
] = "Path to directory containing OpenEphys binary files."
return source_schema

def __init__(
Expand Down Expand Up @@ -88,6 +90,11 @@ def get_metadata(self):
return metadata


# Temporary solution for safely transitioning to the renamed interface
class OpenEphysRecordingInterface(OpenEphysBinaryRecordingInterface):
ExtractorName = "OpenEphysBinaryRecordingExtractor"


class OpenEphysSortingInterface(BaseSortingExtractorInterface):
"""Primary data interface class for converting OpenEphys spiking data."""

Expand Down

0 comments on commit b65e948

Please sign in to comment.