parameters: (self,log_level='notice',display_header=True,already_changed=set())
docstring: inform user about changed parameters and about the parameters that should be changed but have not
  
          This method is abstract method of NonIDF_Properties but is fully defined in PropertyManager
  
          display_header==True prints nice additional information about run. If False, only
          list of changed properties displayed.
docstring_summary: inform user about changed parameters and about the parameters that should be changed but have not
docstring_tokens: inform user about changed parameters and about the parameters that should be changed but have not
function: def log_changed_values(self,log_level='notice',display_header=True,already_changed=set()):
          """ inform user about changed parameters and about the parameters that should be changed but have not
  
          This method is abstract method of NonIDF_Properties but is fully defined in PropertyManager
  
          display_header==True prints nice additional information about run. If False, only
          list of changed properties displayed.
        """
          if display_header:
          # we may want to run absolute units normalization and this function has been called with monovan run or helper procedure
              if self.monovan_run is not None :
              # check if mono-vanadium is provided as multiple files list or just put in brackets occasionally
                  self.log("****************************************************************",'notice')
                  self.log('*** Output will be in absolute units of mb/str/mev/fu','notice')
                  non_changed = self._check_monovan_par_changed()
                  if len(non_changed) > 0:
                      for prop in non_changed:
                          value = getattr(self,prop)
                          message = "\n***WARNING!: Abs units norm. parameter : {0} not changed from default val: {1}"\
                              "\n             This may need to change for correct absolute units reduction\n"
  
                          self.log(message.format(prop,value),'warning')
  
            # now let's report on normal run.
              if PropertyManager.incident_energy.multirep_mode():
                  ei = PropertyManager.incident_energy.getAllEiList()
                  if len(ei) == 0:
                      mess = "*** No provisional incident energy was identified"
                  else:
                      mess = "*** Provisional Incident energies: {0:>8.3f}".format(ei[0])
                      for en in ei[1:]:
                          mess += "; {0:>8.3f}".format(en)
                      mess+=" mEv"
                  self.log(mess,log_level)
              else:
                  self.log("*** Provisional Incident energy: {0:>12.3f} mEv".format(self.incident_energy),log_level)
        #end display_header
  
          self.log("****************************************************************",log_level)
          changed_Keys= self.getChangedProperties()
          for key in changed_Keys:
              if key in already_changed:
                  continue
              val = str(getattr(self,key))
              self.log("  Value of : {0:<25} is set to : {1:<20} ".format(key,val),log_level)
  
          if not display_header:
              return
  
          save_dir = config.getString('defaultsave.directory')
          self.log("****************************************************************",log_level)
          if self.monovan_run is not None and 'van_mass' not in changed_Keys:  # This output is Adroja request from may 2014
              self.log("*** Monochromatic vanadium mass used : {0} ".format(self.van_mass),log_level)
        #
          self.log("*** By default results are saved into: {0}".format(save_dir),log_level)
          self.log("*** Output will be normalized to {0}".format(self.normalise_method),log_level)
          if  self.map_file is None:
              self.log('*** one2one map selected',log_level)
          self.log("****************************************************************",log_level)
function_tokens: def log_changed_values ( self , log_level = 'notice' , display_header = True , already_changed = set ( ) ) : if display_header : # we may want to run absolute units normalization and this function has been called with monovan run or helper procedure if self . monovan_run is not None : # check if mono-vanadium is provided as multiple files list or just put in brackets occasionally self . log ( "****************************************************************" , 'notice' ) self . log ( '*** Output will be in absolute units of mb/str/mev/fu' , 'notice' ) non_changed = self . _check_monovan_par_changed ( ) if len ( non_changed ) > 0 : for prop in non_changed : value = getattr ( self , prop ) message = "\n***WARNING!: Abs units norm. parameter : {0} not changed from default val: {1}" "\n             This may need to change for correct absolute units reduction\n" self . log ( message . format ( prop , value ) , 'warning' ) # now let's report on normal run. if PropertyManager . incident_energy . multirep_mode ( ) : ei = PropertyManager . incident_energy . getAllEiList ( ) if len ( ei ) == 0 : mess = "*** No provisional incident energy was identified" else : mess = "*** Provisional Incident energies: {0:>8.3f}" . format ( ei [ 0 ] ) for en in ei [ 1 : ] : mess += "; {0:>8.3f}" . format ( en ) mess += " mEv" self . log ( mess , log_level ) else : self . log ( "*** Provisional Incident energy: {0:>12.3f} mEv" . format ( self . incident_energy ) , log_level ) #end display_header self . log ( "****************************************************************" , log_level ) changed_Keys = self . getChangedProperties ( ) for key in changed_Keys : if key in already_changed : continue val = str ( getattr ( self , key ) ) self . log ( "  Value of : {0:<25} is set to : {1:<20} " . format ( key , val ) , log_level ) if not display_header : return save_dir = config . getString ( 'defaultsave.directory' ) self . log ( "****************************************************************" , log_level ) if self . monovan_run is not None and 'van_mass' not in changed_Keys : # This output is Adroja request from may 2014 self . log ( "*** Monochromatic vanadium mass used : {0} " . format ( self . van_mass ) , log_level ) # self . log ( "*** By default results are saved into: {0}" . format ( save_dir ) , log_level ) self . log ( "*** Output will be normalized to {0}" . format ( self . normalise_method ) , log_level ) if self . map_file is None : self . log ( '*** one2one map selected' , log_level ) self . log ( "****************************************************************" , log_level )