@classmethod
def find_by_name_and_time(cls, script, timestamp, trial=None, session=None):
    'Return the first trial according to script and timestamp\n\n        Arguments:\n        script -- specify the desired script\n        timestamp -- specify the start of finish time of trial\n\n        Keyword Arguments:\n        trial -- limit query to a specific trial\n        '
    model = cls.m
    session = (session or relational.session)
    query = session.query(model).filter(((model.script == script) & (model.start.like((timestamp + '%')) | model.finish.like((timestamp + '%'))))).order_by(model.start)
    if trial:
        query = query.filter((model.id == trial))
    return proxy(query.first())
Return the first trial according to script and timestamp

Arguments:
script -- specify the desired script
timestamp -- specify the start of finish time of trial

Keyword Arguments:
trial -- limit query to a specific trial
@classmethod
def find_by_name_and_time(cls, script, timestamp, trial=None, session=None):
    'Return the first trial according to script and timestamp\n\n        Arguments:\n        script -- specify the desired script\n        timestamp -- specify the start of finish time of trial\n\n        Keyword Arguments:\n        trial -- limit query to a specific trial\n        '
    model = cls.m
    session = (session or relational.session)
    query = session.query(model).filter(((model.script == script) & (model.start.like((timestamp + '%')) | model.finish.like((timestamp + '%'))))).order_by(model.start)
    if trial:
        query = query.filter((model.id == trial))
    return proxy(query.first())