[updating to read phy]
This commit is contained in:
@@ -4,6 +4,8 @@ import pathlib
|
||||
import nixio
|
||||
import numpy as np
|
||||
import spikeinterface.core as si
|
||||
import spikeinterface.extractors as extractors
|
||||
from IPython import embed
|
||||
from nixio.exceptions import DuplicateName
|
||||
from rich.console import Console
|
||||
|
||||
@@ -28,7 +30,7 @@ class AppendSorting:
|
||||
def __init__(self, sorter_path: pathlib.Path, recording_path: pathlib.Path):
|
||||
self.sorter_path = sorter_path
|
||||
self.recording_path = recording_path
|
||||
self.sorting = si.load_sorting_analyzer(self.sorter_path)
|
||||
self.sorting = extractors.read_phy(self.sorter_path)
|
||||
self.nixfile = nixio.File.open(str(self.recording_path), nixio.FileMode.ReadWrite)
|
||||
self.block = self.nixfile.blocks[0]
|
||||
self.das = self.block.data_arrays
|
||||
|
||||
Reference in New Issue
Block a user