Ejemplo n.º 1
0
    def _create_trial_info(self, expr_dir):
        """Create information for given trial.

        Meta file will be loaded if exists, and the trial information
        will be saved in db backend.

        Args:
            expr_dir: Directory path of the experiment.
        """
        meta = self._build_trial_meta(expr_dir)

        self.logger.debug("Create trial for %s" % meta)

        trial_record = TrialRecord.from_json(meta)
        trial_record.save()
Ejemplo n.º 2
0
    def _create_trial_info(self, expr_dir):
        """Create information for given trial.

        Meta file will be loaded if exists, and the trial information
        will be saved in db backend.

        Args:
            expr_dir (str): Directory path of the experiment.
        """
        meta = self._build_trial_meta(expr_dir)

        self.logger.debug("Create trial for %s" % meta)

        trial_record = TrialRecord.from_json(meta)
        trial_record.save()