Skip to content

Commit

Permalink
move bpod interface to general_interfaces/
Browse files Browse the repository at this point in the history
  • Loading branch information
weiglszonja committed Oct 6, 2024
1 parent 06a9536 commit 4221a47
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
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

0 comments on commit 4221a47

Please sign in to comment.