parameters: (self, flag, override=True)
docstring: Enable or disable including gravity when calculating Q
              @param flag: set to True to enable the gravity correction
              @param override: over write the setting from a previous call to this method (default is True)
docstring_summary: Enable or disable including gravity when calculating Q
docstring_tokens: Enable or disable including gravity when calculating Q
function: def set_gravity(self, flag, override=True):
          """
              Enable or disable including gravity when calculating Q
              @param flag: set to True to enable the gravity correction
              @param override: over write the setting from a previous call to this method (default is True)
          """
          if override:
              self._grav_set = True
  
          if (not self._grav_set) or override:
              self._use_gravity = bool(flag)
          else:
              msg = "User file can't override previous gravity setting, do gravity correction remains " \
                    + str(self._use_gravity)
              print(msg)
              sanslog.warning(msg)
function_tokens: def set_gravity ( self , flag , override = True ) : if override : self . _grav_set = True if ( not self . _grav_set ) or override : self . _use_gravity = bool ( flag ) else : msg = "User file can't override previous gravity setting, do gravity correction remains " + str ( self . _use_gravity ) print ( msg ) sanslog . warning ( msg )