KYSA.py
def data_visualisation(self):
        '''prepare data to be plotted and execute plotting'''

        while True:
            #prepare plot data. If successful start plotting. Else stop program

            try:
                self.plot_data.makeplotdata()
            except:                
                self.queue.put(('process_error', 'data_vis_err8'))  #send error message to progressbar and stop program (in porgressbar process)
                break
            #Create Plots and save 'pngs'

            try:
                self.plot_data.plotdata()
                self.queue.put(('process_end', 'data_vis_succ'))  #send successful data analysis message to progressbar and end program (in porgressbar process)

            except:
                self.queue.put(('process_error', 'data_vis_err9')) #send error message to progressbar and stop program (in porgressbar process)
            break
prepare data to be plotted and execute plotting
prepare data to be plotted and execute plotting
prepare data to be plotted and execute plotting
def data_visualisation(self):
        while True:
            try:
                self.plot_data.makeplotdata()
            except:                
                self.queue.put(('process_error', 'data_vis_err8'))  
                break
            try:
                self.plot_data.plotdata()
                self.queue.put(('process_end', 'data_vis_succ'))  
            except:
                self.queue.put(('process_error', 'data_vis_err9')) 
            break
def data_visualisation ( self ) : while True : try : self . plot_data . makeplotdata ( ) except : self . queue . put ( ( 'process_error' , 'data_vis_err8' ) ) break try : self . plot_data . plotdata ( ) self . queue . put ( ( 'process_end' , 'data_vis_succ' ) ) except : self . queue . put ( ( 'process_error' , 'data_vis_err9' ) ) break
prepare data to be plotted and execute plotting
prepare data to be plotted and execute plotting
'''prepare data to be plotted and execute plotting''' #prepare plot data. If successful start plotting. Else stop program #send error message to progressbar and stop program (in porgressbar process) #Create Plots and save 'pngs' #send successful data analysis message to progressbar and end program (in porgressbar process) #send error message to progressbar and stop program (in porgressbar process)
self