def check_definition(self, ana=False): if self.current_project_def == None: tkinter_messagebox.showwarning('', 'No project selected.') return if self.current_stage_def == None: tkinter_messagebox.showwarning('', 'No stage selected.') return top = self.winfo_toplevel() old_cursor = top['cursor'] defname = '' if ana: defname = self.current_stage_def.ana_defname else: defname = self.current_stage_def.defname try: top['cursor'] = 'watch' top.update_idletasks() dim = project_utilities.dimensions_datastream( self.current_project_def, self.current_stage_def, ana=ana) project.docheck_definition(defname, dim, define=False) top['cursor'] = old_cursor except: top['cursor'] = old_cursor e = sys.exc_info() traceback.print_tb(e[2]) tkinter_messagebox.showerror('', e[1])
def upload(self, ana=False): if self.current_project_def == None: tkinter_messagebox.showwarning('', 'No project selected.') return if self.current_stage_def == None: tkinter_messagebox.showwarning('', 'No stage selected.') return top = self.winfo_toplevel() old_cursor = top['cursor'] try: top['cursor'] = 'watch' top.update_idletasks() dim = project_utilities.dimensions_datastream( self.current_project_def, self.current_stage_def, ana=ana) project.docheck_locations(dim, self.current_stage_def.outdir, add=False, clean=False, remove=False, upload=True) top['cursor'] = old_cursor except: top['cursor'] = old_cursor e = sys.exc_info() traceback.print_tb(e[2]) tkinter_messagebox.showerror('', e[1])
def test_declarations(self, ana=False): if self.current_project_def == None: tkinter_messagebox.showwarning('', 'No project selected.') return if self.current_stage_def == None: tkinter_messagebox.showwarning('', 'No stage selected.') return top = self.winfo_toplevel() old_cursor = top['cursor'] try: top['cursor'] = 'watch' top.update_idletasks() dim = project_utilities.dimensions_datastream( self.current_project_def, self.current_stage_def, ana=ana) project.dotest_declarations(dim) top['cursor'] = old_cursor except: top['cursor'] = old_cursor e = sys.exc_info() traceback.print_tb(e[2]) tkinter_messagebox.showerror('', e[1])