@classmethod
def load_trial(cls, trial_ref, session=None):
    'Load trial by trial reference\n\n        Find reference on trials id and tags name\n        '
    from .tag import Tag
    session = (session or relational.session)
    return session.query(cls.m).outerjoin(Tag.m).filter(((cls.m.id == trial_ref) | (Tag.m.name == trial_ref))).first()
Load trial by trial reference

Find reference on trials id and tags name
@classmethod
def load_trial(cls, trial_ref, session=None):
    'Load trial by trial reference\n\n        Find reference on trials id and tags name\n        '
    from .tag import Tag
    session = (session or relational.session)
    return session.query(cls.m).outerjoin(Tag.m).filter(((cls.m.id == trial_ref) | (Tag.m.name == trial_ref))).first()