@staticmethod
def convert(trials):
    res = []
    for trial in trials:
        if (trial.status.condition == api.TrialStatus.TrialConditionType.SUCCEEDED):
            new_trial = Trial.convertTrial(trial)
            if (new_trial is not None):
                res.append(Trial.convertTrial(trial))
    return res
@staticmethod
def convert(trials):
    res = []
    for trial in trials:
        if (trial.status.condition == api.TrialStatus.TrialConditionType.SUCCEEDED):
            new_trial = Trial.convertTrial(trial)
            if (new_trial is not None):
                res.append(Trial.convertTrial(trial))
    return res