src/orion/core/worker/strategy.py
def lie(self, trial):
        """Construct a fake result for an incomplete trial

        Parameters
        ----------
        trial: `orion.core.worker.trial.Trial`
            A trial object which is not supposed to be completed.

        Returns
        -------
        ``orion.core.worker.trial.Trial.Result``
            The fake objective result corresponding to the trial given.

        Notes
        -----
        If the trial has an objective even if not completed, a warning is printed to user
        with a pointer to documentation to resolve the database corruption. The result returned is
        the corresponding objective instead of the lie.

        """
        objective = get_objective(trial)
        if objective:
            log.warning(CORRUPTED_DB_WARNING, trial.id)
            return Trial.Result(name="lie", type="lie", value=objective)

        return None
Construct a fake result for an incomplete trial

        Parameters
        ----------
        trial: `orion.core.worker.trial.Trial`
            A trial object which is not supposed to be completed.

        Returns
        -------
        ``orion.core.worker.trial.Trial.Result``
            The fake objective result corresponding to the trial given.

        Notes
        -----
        If the trial has an objective even if not completed, a warning is printed to user
        with a pointer to documentation to resolve the database corruption. The result returned is
        the corresponding objective instead of the lie.

        
Construct a fake result for an incomplete trial
Parameters

`orion.core.worker.trial.Trial`
A trial object which is not supposed to be completed.

Returns

``orion.core.worker.trial.Trial.Result``
The fake objective result corresponding to the trial given.

Notes

If the trial has an objective even if not completed, a warning is printed to user
with a pointer to documentation to resolve the database corruption. The result returned is
the corresponding objective instead of the lie.
Construct a fake result for an incomplete trial Parameters ` orion . core . worker . trial . Trial ` A trial object which is not supposed to be completed . Returns ` ` orion . core . worker . trial . Trial . Result ` ` The fake objective result corresponding to the trial given . Notes If the trial has an objective even if not completed a warning is printed to user with a pointer to documentation to resolve the database corruption . The result returned is the corresponding objective instead of the lie .
def lie(self, trial):
        objective = get_objective(trial)
        if objective:
            log.warning(CORRUPTED_DB_WARNING, trial.id)
            return Trial.Result(name="lie", type="lie", value=objective)
        return None
def lie ( self , trial ) : objective = get_objective ( trial ) if objective : log . warning ( CORRUPTED_DB_WARNING , trial . id ) return Trial . Result ( name = "lie" , type = "lie" , value = objective ) return None
Construct a fake result for an incomplete trial
Parameters
Construct a fake result for an incomplete trial Parameters
"""Construct a fake result for an incomplete trial

        Parameters
        ----------
        trial: `orion.core.worker.trial.Trial`
            A trial object which is not supposed to be completed.

        Returns
        -------
        ``orion.core.worker.trial.Trial.Result``
            The fake objective result corresponding to the trial given.

        Notes
        -----
        If the trial has an objective even if not completed, a warning is printed to user
        with a pointer to documentation to resolve the database corruption. The result returned is
        the corresponding objective instead of the lie.

        """
self
trial