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
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
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)