Skip to content

Commit

Permalink
add custom spikeglx subconverter
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD committed Sep 29, 2024
1 parent 5a19641 commit 00ac11e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/ibl_to_nwb/_scripts/convert_brainwide_map_raw_only.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
data_interfaces = []

spikeglx_source_folder_path = Path("D:/example_data/ephy_testing_data/spikeglx/Noise4Sam_g0")
spikeglx_subconverter = IblSpikeglxConverter(folder_path=spikeglx_source_folder_path)
spikeglx_subconverter = IblSpikeglxConverter(folder_path=spikeglx_source_folder_path, one=ibl_client)
data_interfaces.append(spikeglx_subconverter)

# Raw video takes some special handling
Expand Down
4 changes: 2 additions & 2 deletions src/ibl_to_nwb/converters/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from ._brainwide_map_converter import BrainwideMapConverter
from ._iblconverter import IblConverter
from ._ibl_spikeglx_converter import IblSpikeglxConverter
from ._ibl_spikeglx_converter import IblSpikeGlxConverter

__all__ = [
"BrainwideMapConverter",
"IblConverter",
"IblSpikeglxConverter",
"IblSpikeGlxConverter",
]
6 changes: 3 additions & 3 deletions src/ibl_to_nwb/converters/_ibl_spikeglx_converter.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import one
from neuroconv.converters import SpikeGLXConverterPipe
from one.api import ONE
from pydantic import DirectoryPath
from pynwb import NWBFile


class IBLSpikeGLXConverter(SpikeGLXConverterPipe):
class IblSpikeGlxConverter(SpikeGLXConverterPipe):

def __init__(self, folder_path: DirectoryPath, one: one.ONE) -> None:
def __init__(self, folder_path: DirectoryPath, one: ONE) -> None:
super().__init__(folder_path=folder_path)
self.one = one

Expand Down

0 comments on commit 00ac11e

Please sign in to comment.