gui/gui_mainLayout.py
def run(self):
        """
        This function executes planarRad using the batch file.
        """

        """
        Error when planarRad start : /bin/sh: 1: ../planarrad.py: not found
        """
        print('Executing planarrad')
        # If we are not in the reverse_mode :
        if self.ui.tabWidget.currentIndex() == TabWidget.NORMAL_MODE:
            self.data()
            self.check_values()

            if self.without_error == False:
                self.display_error_message()
            elif self.without_error == True:
                self.is_running = True
                self.hide_error_message()
                self.write_to_file()
                os.chdir('./')
                self.progress_bar()
                this_dir = os.path.dirname(os.path.realpath(__file__)).rstrip('gui/')
                batch_file = os.path.join(this_dir, "inputs/batch_files/" + str(self.batch_name_value) + "_batch.txt")
                print(batch_file)
                self.p = subprocess.Popen(
                    ["./planarrad.py -i " + batch_file],
                    shell=True)
                if self.ui.progressBar.value() == 100:
                    self.display_the_graphic(self.num_line, self.wavelength, self.data_wanted, self.information)
def run(self):
        """
        Error when planarRad start : /bin/sh: 1: ../planarrad.py: not found
        """
        print('Executing planarrad')
        # If we are not in the reverse_mode :
        if self.ui.tabWidget.currentIndex() == TabWidget.NORMAL_MODE:
            self.data()
            self.check_values()

            if self.without_error == False:
                self.display_error_message()
            elif self.without_error == True:
                self.is_running = True
                self.hide_error_message()
                self.write_to_file()
                os.chdir('./')
                self.progress_bar()
                this_dir = os.path.dirname(os.path.realpath(__file__)).rstrip('gui/')
                batch_file = os.path.join(this_dir, "inputs/batch_files/" + str(self.batch_name_value) + "_batch.txt")
                print(batch_file)
                self.p = subprocess.Popen(
                    ["./planarrad.py -i " + batch_file],
                    shell=True)
                if self.ui.progressBar.value() == 100:
                    self.display_the_graphic(self.num_line, self.wavelength, self.data_wanted, self.information)
def run ( self ) : """
        Error when planarRad start : /bin/sh: 1: ../planarrad.py: not found
        """ print ( 'Executing planarrad' ) # If we are not in the reverse_mode : if self . ui . tabWidget . currentIndex ( ) == TabWidget . NORMAL_MODE : self . data ( ) self . check_values ( ) if self . without_error == False : self . display_error_message ( ) elif self . without_error == True : self . is_running = True self . hide_error_message ( ) self . write_to_file ( ) os . chdir ( './' ) self . progress_bar ( ) this_dir = os . path . dirname ( os . path . realpath ( __file__ ) ) . rstrip ( 'gui/' ) batch_file = os . path . join ( this_dir , "inputs/batch_files/" + str ( self . batch_name_value ) + "_batch.txt" ) print ( batch_file ) self . p = subprocess . Popen ( [ "./planarrad.py -i " + batch_file ] , shell = True ) if self . ui . progressBar . value ( ) == 100 : self . display_the_graphic ( self . num_line , self . wavelength , self . data_wanted , self . information )
This function executes planarRad using the batch file.
This function executes planarRad using the batch file .