Beispiel #1
0
from klustaviewa.dataio import HDF5Loader
from klustaviewa.utils.userpref import USERPREF
from klustaviewa.views import FeatureView
from klustaviewa.gui import get_featureview_data
from klustaviewa.views.tests import show_view

filename = r"D:\\Spike sorting\\second\\testalignment_secondnearest_subset_129989"
loader = HDF5Loader(filename=filename)

USERPREF['test_operator_delay'] = .1

loader.select(clusters=range(4, 50, 2))
data0 = get_featureview_data(loader)

loader.select(clusters=range(5, 50, 2))
data1 = get_featureview_data(loader)

operators = [
    lambda self: self.view.set_data(**data0),
    lambda self: self.view.set_data(**data1),
] * 20

show_view(FeatureView, operators=operators)

loader.close()
Beispiel #2
0
from klustaviewa.gui import get_waveformview_data
from klustaviewa.views.tests import show_view

filename = r"D:\SpikeSorting\nick\137_34_shankA_27cat.res.1"
loader = HDF5Loader(filename=filename)

USERPREF['test_operator_delay'] = .25

# loader.select(clusters=range(5, 20, 2))
# data1 = get_waveformview_data(loader)


def get_data(clusters):
    loader.select(clusters=clusters)
    return get_waveformview_data(loader)


def get_data_fun(clusters):
    # return lambda clusters: get_data(clusters)
    return lambda self: self.view.set_data(**get_data(clusters))


operators = [
    # (lambda self: self.view.set_data(**get_data_fun(clusters)))
    get_data_fun(clusters) for clusters in range(4, 20)
]

show_view(WaveformView, operators=operators)

loader.close()
from klustaviewa.dataio import HDF5Loader
from klustaviewa.utils.userpref import USERPREF
from klustaviewa.views import FeatureView
from klustaviewa.gui import get_featureview_data
from klustaviewa.views.tests import show_view


filename = r"D:\\Spike sorting\\second\\testalignment_secondnearest_subset_129989"
loader = HDF5Loader(filename=filename)

USERPREF['test_operator_delay'] = .1

loader.select(clusters=range(4, 50, 2))
data0 = get_featureview_data(loader)

loader.select(clusters=range(5, 50, 2))
data1 = get_featureview_data(loader)

operators = [
    lambda self: self.view.set_data(**data0),
    lambda self: self.view.set_data(**data1),
] * 20

show_view(FeatureView, operators=operators)


loader.close()

filename = r"D:\SpikeSorting\nick\137_34_shankA_27cat.res.1"
loader = HDF5Loader(filename=filename)

USERPREF['test_operator_delay'] = .25

# loader.select(clusters=range(5, 20, 2))
# data1 = get_waveformview_data(loader)

def get_data(clusters):
    loader.select(clusters=clusters)
    return get_waveformview_data(loader)

def get_data_fun(clusters):
    # return lambda clusters: get_data(clusters)
    return lambda self: self.view.set_data(**get_data(clusters))

operators = [
    # (lambda self: self.view.set_data(**get_data_fun(clusters)))
    get_data_fun(clusters)
    for clusters in range(4, 20)
]



show_view(WaveformView, operators=operators)


loader.close()