def load_classifier(self): name = QtGui.QFileDialog.getOpenFileName(self, 'Open File') if name: classifier.load(self, name[0]) self.class_activated() else: print('no classifier')
def load_default_classifier(self): classifier.load( self, os.path.join(os.path.abspath(os.path.dirname(__file__)), 'classifiers/classifier_user.npy')) self.class_activated()
def load_s2p_classifier(self): classifier.load(self, self.classorig) self.class_file() self.saveDefault.setEnabled(True)