class_docstr: Sinc for backtest results. This class is thread safe.
class_docstr_tok: ["Sinc","for","backtest","results",".","This","class","is","thread","safe","."]
docstr: Push strategy results obtained by running the strategy with the given parameters.
  
  :param result: The result obtained by running the strategy with the given parameters.
  :type result: float
  :param parameters: The parameters that yield the given result.
  :type parameters: Parameters
docstr_tok: ["Push","strategy","results","obtained","by","running","the","strategy","with","the","given","parameters",".",":","param","result",":","The","result","obtained","by","running","the","strategy","with","the","given","parameters",".",":","type","result",":","float",":","param","parameters",":","The","parameters","that","yield","the","given","result",".",":","type","parameters",":","Parameters"]
code: def push(self, result, parameters):
      """
      Push strategy results obtained by running the strategy with the given parameters.
  
      :param result: The result obtained by running the strategy with the given parameters.
      :type result: float
      :param parameters: The parameters that yield the given result.
      :type parameters: Parameters
      """
      with self.__lock:
          self.onNewResult(result, parameters)
          if result is not None and (
              self.__bestResult is None or result > self.__bestResult
          ):
              self.__bestResult = result
              self.__bestParameters = parameters
              self.onNewBestResult(result, parameters)
  
file_path: pyalgotrade/pyalgotrade/optimizer/base.py
imports: import threading
  import six
label_desc: Use image node_id 2 for calling the ResultSinc obj's underlying member method code with example usage: obj.push(result, parameters) without return types