def compute_model(self): try: inputFile = self.filelocation.get() window = self.w_type.get() M = int(self.M.get()) N = int(self.N.get()) t = int(self.t.get()) minSineDur = float(self.minSineDur.get()) nH = int(self.nH.get()) minf0 = int(self.minf0.get()) maxf0 = int(self.maxf0.get()) f0et = int(self.f0et.get()) harmDevSlope = float(self.harmDevSlope.get()) stocf = float(self.stocf.get()) hpsModel_function.main(inputFile, window, M, N, t, minSineDur, nH, minf0, maxf0, f0et, harmDevSlope, stocf) except ValueError as errorMessage: tkMessageBox.showerror("Input values error", errorMessage)