// type: () -> List[StudySummary]
best_trial = None
if any(tfor t in self.trials if t.state == TrialState.COMPLETE):
best_trial = self.get_best_trial(IN_MEMORY_STORAGE_STUDY_ID)
datetime_start = None
After Change
study_name=self._study_name[study_id],
direction=self._direction[study_id],
best_trial=self._trials[self._best_trial_id[study_id]] if self._best_trial_id[study_id] else None,
user_attrs=copy.copy(self._study_user_attrs[study_id]),
system_attrs=copy.copy(self._study_system_attrs[study_id]),
n_trials=len(self._study_trials[study_id]),
datetime_start=min([self._trials[tid].datetime_start for tid in self._study_trials[study_id]]) if self._study_trials[study_id] else None,