Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move bpod interface to general_interfaces/ #15

Open
wants to merge 6 commits into
base: Behavior/convert-sessions
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .bpodbehaviorinterface import BpodBehaviorInterface
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
from pynwb import NWBFile


class Mah2024BpodInterface(BaseDataInterface):
"""Behavior interface for mah_2024 conversion"""
class BpodBehaviorInterface(BaseDataInterface):
"""Behavior interface for converting behavior data from Bpod system."""

def __init__(
self,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
from .mah_2024_bpodinterface import Mah2024BpodInterface
from .mah_2024_processedbehaviorinterface import Mah2024ProcessedBehaviorInterface
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
from neuroconv import NWBConverter

from constantinople_lab_to_nwb.mah_2024.interfaces import Mah2024BpodInterface, Mah2024ProcessedBehaviorInterface
from constantinople_lab_to_nwb.general_interfaces import BpodBehaviorInterface
from constantinople_lab_to_nwb.mah_2024.interfaces import Mah2024ProcessedBehaviorInterface


class Mah2024NWBConverter(NWBConverter):
"""Primary conversion class for converting the Behavior dataset from the Constantinople Lab."""

data_interface_classes = dict(
RawBehavior=Mah2024BpodInterface,
RawBehavior=BpodBehaviorInterface,
ProcessedBehavior=Mah2024ProcessedBehaviorInterface,
)
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
from neuroconv.utils import FilePathType
from probeinterface import read_probeinterface, Probe

# TODO: move to general_interfaces
from constantinople_lab_to_nwb.mah_2024.interfaces import Mah2024BpodInterface
from constantinople_lab_to_nwb.general_interfaces import BpodBehaviorInterface

from constantinople_lab_to_nwb.schierek_embargo_2024.interfaces import (
SchierekEmbargo2024SortingInterface,
Expand All @@ -29,7 +28,7 @@ class SchierekEmbargo2024NWBConverter(NWBConverter):
RecordingLFP=OpenEphysRecordingInterface,
PhySorting=PhySortingInterface,
ProcessedSorting=SchierekEmbargo2024SortingInterface,
RawBehavior=Mah2024BpodInterface,
RawBehavior=BpodBehaviorInterface,
ProcessedBehavior=SchierekEmbargo2024ProcessedBehaviorInterface,
)

Expand Down