parameters: (self)
docstring: Save settings (parameter set) upon quitting
          :return:
docstring_summary: Save settings (parameter set) upon quitting
          :return:
docstring_tokens: Save settings ( parameter set ) upon quitting : return :
function: def save_settings(self):
          """
          Save settings (parameter set) upon quitting
          :return:
          """
          settings = QSettings()
  
          # directories
          local_spice_dir = str(self.ui.lineEdit_localSpiceDir.text())
          settings.setValue("local_spice_dir", local_spice_dir)
          work_dir = str(self.ui.lineEdit_workDir.text())
          settings.setValue('work_dir', work_dir)
  
          # experiment number
          exp_num = str(self.ui.lineEdit_exp.text())
          settings.setValue('exp_number', exp_num)
  
          # lattice parameters
          lattice_a = str(self.ui.lineEdit_a.text())
          settings.setValue('a', lattice_a)
          lattice_b = str(self.ui.lineEdit_b.text())
          settings.setValue('b', lattice_b)
          lattice_c = str(self.ui.lineEdit_c.text())
          settings.setValue('c', lattice_c)
          lattice_alpha = str(self.ui.lineEdit_alpha.text())
          settings.setValue('alpha', lattice_alpha)
          lattice_beta = str(self.ui.lineEdit_beta.text())
          settings.setValue('beta', lattice_beta)
          lattice_gamma = str(self.ui.lineEdit_gamma.text())
          settings.setValue('gamma', lattice_gamma)
  
          # calibrated instrument configurations
          user_wave_length = str(self.ui.lineEdit_userWaveLength.text())
          settings.setValue('wave_length', user_wave_length)
  
          det_row_center = str(self.ui.lineEdit_detCenterPixHorizontal.text())
          settings.setValue('row_center', det_row_center)
  
          det_col_center = str(self.ui.lineEdit_detCenterPixVertical.text())
          settings.setValue('col_center', det_col_center)
  
          det_sample_distance_str = str(self.ui.lineEdit_userDetSampleDistance.text())
          settings.setValue('det_sample_distance', det_sample_distance_str)
  
          # last project
          last_1_project_path = str(self.ui.label_last1Path.text())
          settings.setValue('last1path', last_1_project_path)
  
          # survey
          survey_start = str(self.ui.lineEdit_surveyStartPt.text())
          survey_stop = str(self.ui.lineEdit_surveyEndPt.text())
          settings.setValue('survey_start_scan', survey_start)
          settings.setValue('survey_stop_scan', survey_stop)
function_tokens: def save_settings ( self ) : settings = QSettings ( ) # directories local_spice_dir = str ( self . ui . lineEdit_localSpiceDir . text ( ) ) settings . setValue ( "local_spice_dir" , local_spice_dir ) work_dir = str ( self . ui . lineEdit_workDir . text ( ) ) settings . setValue ( 'work_dir' , work_dir ) # experiment number exp_num = str ( self . ui . lineEdit_exp . text ( ) ) settings . setValue ( 'exp_number' , exp_num ) # lattice parameters lattice_a = str ( self . ui . lineEdit_a . text ( ) ) settings . setValue ( 'a' , lattice_a ) lattice_b = str ( self . ui . lineEdit_b . text ( ) ) settings . setValue ( 'b' , lattice_b ) lattice_c = str ( self . ui . lineEdit_c . text ( ) ) settings . setValue ( 'c' , lattice_c ) lattice_alpha = str ( self . ui . lineEdit_alpha . text ( ) ) settings . setValue ( 'alpha' , lattice_alpha ) lattice_beta = str ( self . ui . lineEdit_beta . text ( ) ) settings . setValue ( 'beta' , lattice_beta ) lattice_gamma = str ( self . ui . lineEdit_gamma . text ( ) ) settings . setValue ( 'gamma' , lattice_gamma ) # calibrated instrument configurations user_wave_length = str ( self . ui . lineEdit_userWaveLength . text ( ) ) settings . setValue ( 'wave_length' , user_wave_length ) det_row_center = str ( self . ui . lineEdit_detCenterPixHorizontal . text ( ) ) settings . setValue ( 'row_center' , det_row_center ) det_col_center = str ( self . ui . lineEdit_detCenterPixVertical . text ( ) ) settings . setValue ( 'col_center' , det_col_center ) det_sample_distance_str = str ( self . ui . lineEdit_userDetSampleDistance . text ( ) ) settings . setValue ( 'det_sample_distance' , det_sample_distance_str ) # last project last_1_project_path = str ( self . ui . label_last1Path . text ( ) ) settings . setValue ( 'last1path' , last_1_project_path ) # survey survey_start = str ( self . ui . lineEdit_surveyStartPt . text ( ) ) survey_stop = str ( self . ui . lineEdit_surveyEndPt . text ( ) ) settings . setValue ( 'survey_start_scan' , survey_start ) settings . setValue ( 'survey_stop_scan' , survey_stop )