[sorting] need more fixing
This commit is contained in:
@@ -1,21 +1,11 @@
|
||||
import logging
|
||||
import pathlib
|
||||
import sys
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
import nixio
|
||||
import numpy as np
|
||||
import rlxnix as rlx
|
||||
import spikeinterface.core as si
|
||||
from IPython import embed
|
||||
from neo.io import OpenEphysBinaryIO
|
||||
from nixio.exceptions import DuplicateName
|
||||
from rich.console import Console
|
||||
from rich.table import Table
|
||||
from rlxnix.plugins.efish.utils import extract_am
|
||||
from scipy import signal
|
||||
|
||||
from oephys2nix.metadata import create_dict_from_section, create_metadata_from_dict
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
console = Console()
|
||||
@@ -87,6 +77,17 @@ class AppendSorting:
|
||||
f"unit-{unit}", "sorting.spike_index", multi_tag_positions
|
||||
)
|
||||
multi_tag.references.append(self.data)
|
||||
gr.mulit_tags.append(positions)
|
||||
|
||||
def _clean(self):
|
||||
try:
|
||||
gr = self.block.groups["units"]
|
||||
except:
|
||||
return
|
||||
|
||||
for das in gr.data_arrays:
|
||||
del self.das[das.name]
|
||||
# for mtag in gr.
|
||||
|
||||
def close(self):
|
||||
self.nixfile.close()
|
||||
|
||||
Reference in New Issue
Block a user