def check_values(self):
error_color = '<STR_LIT>'<EOL>no_error_color = '<STR_LIT>'  <EOL>self.error_batch_name = False<EOL>self.error_report_parameter = False<EOL>self.error_saa_result = False<EOL>self.error_sza_result = False<EOL>self.error_p_result = False<EOL>self.error_wavelength_result = False<EOL>self.error_x_result = False<EOL>self.error_y_result = False<EOL>self.error_g_result = False<EOL>self.error_s_result = False<EOL>self.error_z_result = False<EOL>self.error_verbose_result = False<EOL>self.error_phytoplankton_path_result = False<EOL>self.error_bottom_path_result = False<EOL>self.error_executive_path_result = False<EOL>"""<STR_LIT>"""<EOL>if self.ui.tabWidget.currentIndex() == TabWidget.NORMAL_MODE:<EOL><INDENT>check_num = '<STR_LIT>'  <EOL>self.prog = re.compile(check_num)  <EOL>batch_name_result = self.prog.search(<EOL>self.batch_name_value)  <EOL>report_parameter_result = self.prog.search(self.report_parameter_value)<EOL>try:<EOL><INDENT>if (self.ui.batch_name_value.text().isEmpty()) | (<EOL>batch_name_result.group() != self.ui.batch_name_value.text()):<EOL><INDENT>self.ui.batch_name_label.setStyleSheet(error_color)<EOL>self.error_batch_name = True<EOL><DEDENT>else:<EOL><INDENT>self.ui.batch_name_label.setStyleSheet(no_error_color)<EOL>self.error_batch_name = False<EOL><DEDENT><DEDENT>except AttributeError:<EOL><INDENT>self.ui.batch_name_label.setStyleSheet(error_color)<EOL>self.error_batch_name = True<EOL><DEDENT>try:<EOL><INDENT>if (self.ui.report_parameter_value.text().isEmpty()) | (<EOL>report_parameter_result.group() != self.ui.report_parameter_value.text()):<EOL><INDENT>self.ui.report_parameter_label.setStyleSheet(error_color)<EOL>self.error_report_parameter = True<EOL><DEDENT>else:<EOL><INDENT>self.ui.report_parameter_label.setStyleSheet(no_error_color)<EOL>self.error_report_parameter = False<EOL><DEDENT><DEDENT>except AttributeError:<EOL><INDENT>self.ui.report_parameter_label.setStyleSheet(error_color)<EOL>self.error_report_parameter = True<EOL><DEDENT>"""<STR_LIT>"""<EOL>check_num_2 = '<STR_LIT>'<EOL>self.prog_2 = re.compile(check_num_2)<EOL>x_result = self.prog_2.search(self.x_value)<EOL>y_result = self.prog_2.search(self.y_value)<EOL>g_result = self.prog_2.search(self.g_value)<EOL>s_result = self.prog_2.search(self.s_value)<EOL>z_result = self.prog_2.search(self.z_value)<EOL>try:<EOL><INDENT>if x_result.group() != self.ui.x_value.text():<EOL><INDENT>self.ui.particles_label.setStyleSheet(error_color)<EOL>self.ui.x_label.setStyleSheet(error_color)<EOL>self.error_x_result = True<EOL><DEDENT>else:<EOL><INDENT>self.ui.particles_label.setStyleSheet(no_error_color)<EOL>self.ui.x_label.setStyleSheet(no_error_color)<EOL>self.error_x_result = False<EOL><DEDENT><DEDENT>except AttributeError:<EOL><INDENT>self.ui.particles_label.setStyleSheet(no_error_color)<EOL>self.ui.x_label.setStyleSheet(error_color)<EOL>self.error_x_result = True<EOL><DEDENT>try:<EOL><INDENT>if y_result.group() != self.ui.y_value.text():<EOL><INDENT>self.ui.particles_label.setStyleSheet(error_color)<EOL>self.ui.y_label.setStyleSheet(error_color)<EOL>self.error_y_result = True<EOL><DEDENT>else:<EOL><INDENT>self.ui.particles_label.setStyleSheet(no_error_color)<EOL>self.ui.y_label.setStyleSheet(no_error_color)<EOL>self.error_y_result = False<EOL><DEDENT><DEDENT>except AttributeError:<EOL><INDENT>self.ui.particles_label.setStyleSheet(error_color)<EOL>self.ui.y_label.setStyleSheet(error_color)<EOL>self.error_y_result = True<EOL><DEDENT>try:<EOL><INDENT>if g_result.group() != self.ui.g_value.text():<EOL><INDENT>self.ui.organic_label.setStyleSheet(error_color)<EOL>self.ui.g_label.setStyleSheet(error_color)<EOL>self.error_g_result = True<EOL><DEDENT>else:<EOL><INDENT>self.ui.organic_label.setStyleSheet(no_error_color)<EOL>self.ui.g_label.setStyleSheet(no_error_color)<EOL>self.error_g_result = False<EOL><DEDENT><DEDENT>except AttributeError:<EOL><INDENT>self.ui.organic_label.setStyleSheet(error_color)<EOL>self.ui.g_label.setStyleSheet(error_color)<EOL>self.error_g_result = True<EOL><DEDENT>try:<EOL><INDENT>if s_result.group() != self.ui.s_value.text():<EOL><INDENT>self.ui.organic_label.setStyleSheet(error_color)<EOL>self.ui.s_label.setStyleSheet(error_color)<EOL>self.error_s_result = True<EOL><DEDENT>else:<EOL><INDENT>self.ui.organic_label.setStyleSheet(no_error_color)<EOL>self.ui.s_label.setStyleSheet(no_error_color)<EOL>self.error_x_result = False<EOL><DEDENT><DEDENT>except AttributeError:<EOL><INDENT>self.ui.organic_label.setStyleSheet(error_color)<EOL>self.ui.s_label.setStyleSheet(error_color)<EOL>self.error_x_result = True<EOL><DEDENT>try:<EOL><INDENT>if z_result.group() != self.ui.z_value.text():<EOL><INDENT>self.ui.z_label.setStyleSheet(error_color)<EOL>self.error_z_result = True<EOL><DEDENT>else:<EOL><INDENT>self.ui.z_label.setStyleSheet(no_error_color)<EOL>self.error_z_result = False<EOL><DEDENT><DEDENT>except AttributeError:<EOL><INDENT>self.ui.z_label.setStyleSheet(error_color)<EOL>self.error_z_result = True<EOL><DEDENT>check_num_3 = '<STR_LIT>'<EOL>self.prog_3 = re.compile(check_num_3)<EOL>verbose_result = self.prog_3.search(self.verbose_value)<EOL>try:<EOL><INDENT>if verbose_result.group() != self.ui.verbose_value.text():<EOL><INDENT>self.ui.verbose_label.setStyleSheet(error_color)<EOL>self.error_verbose_result = True<EOL><DEDENT>else:<EOL><INDENT>self.ui.verbose_label.setStyleSheet(no_error_color)<EOL>self.error_verbose_result = False<EOL><DEDENT><DEDENT>except AttributeError:<EOL><INDENT>self.ui.verbose_label.setStyleSheet(error_color)<EOL>self.error_verbose_result = True<EOL><DEDENT>"""<STR_LIT>"""<EOL>check_num_4 = '<STR_LIT>'  <EOL>self.prog_4 = re.compile(check_num_4)<EOL>phytoplankton_path_result = self.prog_4.search(self.phytoplankton_path)<EOL>bottom_path_result = self.prog_4.search(self.bottom_path)<EOL>executive_path_result = self.prog_4.search(self.executive_path)<EOL>try:<EOL><INDENT>if phytoplankton_path_result.group() != self.ui.phyto_path.text():<EOL><INDENT>self.ui.phyto_label.setStyleSheet(error_color)<EOL>self.error_phytoplankton_path_result = True<EOL><DEDENT>else:<EOL><INDENT>self.ui.phyto_label.setStyleSheet(no_error_color)<EOL>self.error_phytoplankton_path_result = False<EOL><DEDENT><DEDENT>except AttributeError:<EOL><INDENT>self.ui.phyto_label.setStyleSheet(error_color)<EOL>self.error_phytoplankton_path_result = True<EOL><DEDENT>try:<EOL><INDENT>if bottom_path_result.group() != self.ui.bottom_path.text():<EOL><INDENT>self.ui.bottom_label.setStyleSheet(error_color)<EOL>self.error_bottom_path_result = True<EOL><DEDENT>else:<EOL><INDENT>self.ui.bottom_label.setStyleSheet(no_error_color)<EOL>self.error_bottom_path_result = False<EOL><DEDENT><DEDENT>except AttributeError:<EOL><INDENT>self.ui.bottom_label.setStyleSheet(error_color)<EOL>self.error_bottom_path_result = True<EOL><DEDENT>try:<EOL><INDENT>if executive_path_result.group() != self.ui.exec_path.text():<EOL><INDENT>self.ui.execPath_label.setStyleSheet(error_color)<EOL>self.error_executive_path_result = True<EOL><DEDENT>else:<EOL><INDENT>self.ui.execPath_label.setStyleSheet(no_error_color)<EOL>self.error_executive_path_result = False<EOL><DEDENT><DEDENT>except AttributeError:<EOL><INDENT>self.ui.execPath_label.setStyleSheet(error_color)<EOL>self.error_executive_path_result = True<EOL><DEDENT><DEDENT>if (self.error_batch_name == True) | (self.error_report_parameter == True) | (<EOL>self.error_saa_result == True) | (self.error_sza_result == True) | (<EOL>self.error_p_result == True) | (self.error_wavelength_result == True) | (<EOL>self.error_x_result == True) | (self.error_y_result == True) | (<EOL>self.error_g_result == True) | (self.error_s_result == True) | (<EOL>self.error_z_result == True) | (self.error_verbose_result == True) | (<EOL>self.error_phytoplankton_path_result == True) | (self.error_bottom_path_result == True) | (<EOL>self.error_executive_path_result == True):<EOL><INDENT>self.without_error = False<EOL><DEDENT>else:<EOL><INDENT>self.without_error = True<EOL><DEDENT>
This function checks if there is no problem about values given.
If there is a problem with a or some values, their label's color is changed to red,
and call a function to display an error message.
If there is no problem, their label, if it is necessary, is changed to grey (default color).