src/orion/storage/legacy.py
def retrieve_result(self, trial, results_file=None, **kwargs):
        """Parse the results file that was generated by the trial process.

        Parameters
        ----------
        trial: Trial
            The trial object to be updated

        results_file: str
            the file handle to read the result from

        Returns
        -------
        returns the updated trial object

        Notes
        -----
        This does not update the database!

        """
        if results_file is None:
            return trial

        try:
            results = JSONConverter().parse(results_file.name)
        except json.decoder.JSONDecodeError:
            raise MissingResultFile()

        trial.results = [
            Trial.Result(name=res["name"], type=res["type"], value=res["value"])
            for res in results
        ]

        return trial
Parse the results file that was generated by the trial process.

        Parameters
        ----------
        trial: Trial
            The trial object to be updated

        results_file: str
            the file handle to read the result from

        Returns
        -------
        returns the updated trial object

        Notes
        -----
        This does not update the database!

        
Parse the results file that was generated by the trial process.
Parameters

Trial
The trial object to be updated

str
the file handle to read the result from

Returns

returns the updated trial object

Notes

This does not update the database!
Parse the results file that was generated by the trial process . Parameters Trial The trial object to be updated str the file handle to read the result from Returns returns the updated trial object Notes This does not update the database!
def retrieve_result(self, trial, results_file=None, **kwargs):
        if results_file is None:
            return trial
        try:
            results = JSONConverter().parse(results_file.name)
        except json.decoder.JSONDecodeError:
            raise MissingResultFile()
        trial.results = [
            Trial.Result(name=res["name"], type=res["type"], value=res["value"])
            for res in results
        ]
        return trial
def retrieve_result ( self , trial , results_file = None , ** kwargs ) : if results_file is None : return trial try : results = JSONConverter ( ) . parse ( results_file . name ) except json . decoder . JSONDecodeError : raise MissingResultFile ( ) trial . results = [ Trial . Result ( name = res [ "name" ] , type = res [ "type" ] , value = res [ "value" ] ) for res in results ] return trial
Parse the results file that was generated by the trial process.
Parse the results file that was generated by the trial process .
"""Parse the results file that was generated by the trial process.

        Parameters
        ----------
        trial: Trial
            The trial object to be updated

        results_file: str
            the file handle to read the result from

        Returns
        -------
        returns the updated trial object

        Notes
        -----
        This does not update the database!

        """
self
trial
results_file