Esempio n. 1
0
def load_NWB(parent):
    name = parent.fname
    print(name)
    if 1:
        procs = io.read_nwb(name)
        if procs[1]['nchannels'] == 2:
            parent.hasred = True
        else:
            parent.hasred = False
        load_to_GUI(parent, os.path.split(name)[0], procs)

        parent.loaded = True
Esempio n. 2
0
def load_NWB(parent):
    name = parent.fname
    print(name)
    if 1:
        procs = list(io.read_nwb(name))
        if procs[1]['nchannels'] == 2:
            hasred = True
        else:
            hasred = False
        procs.append(hasred)
        load_to_GUI(parent, os.path.split(name)[0], procs)

        parent.loaded = True
Esempio n. 3
0
def load_NWB(parent):
    name = parent.fname
    print(name)
    try:
        procs = list(io.read_nwb(name))
        if procs[1]['nchannels'] == 2:
            hasred = True
        else:
            hasred = False
        procs.append(hasred)
        load_to_GUI(parent, os.path.split(name)[0], procs)

        parent.loaded = True
    except Exception as e:
        print('ERROR with NWB: %s' % e)