@classmethod
def store(cls, start, script, code_hash, arguments, bypass_modules, command, run, docstring, session=None):
    'Create trial and assign a new id to it\n\n        Use core sqlalchemy\n\n        Arguments:\n        start -- trial start time\n        script -- script name\n        code_hash -- script hash code\n        arguments -- trial arguments\n        bypass_modules -- whether it captured modules or not\n        command -- the full command line with noWorkflow parametes\n        run -- trial created by the run command\n\n        Keyword arguments:\n        session -- specify session for loading (default=relational.session)\n        '
    session = (session or relational.session)
    parent = cls.load_parent(script, parent_required=True)
    parent_id = (parent.id if parent else None)
    inherited_id = None
    if bypass_modules:
        inherited_id = cls.fast_last_trial_id()
    ttrial = cls.__table__
    result = session.execute(ttrial.insert(), {'start': start, 'script': script, 'code_hash': code_hash, 'arguments': arguments, 'command': command, 'run': run, 'inherited_id': inherited_id, 'parent_id': parent_id, 'docstring': docstring})
    tid = result.lastrowid
    session.commit()
    return tid
Create trial and assign a new id to it

Use core sqlalchemy

Arguments:
start -- trial start time
script -- script name
code_hash -- script hash code
arguments -- trial arguments
bypass_modules -- whether it captured modules or not
command -- the full command line with noWorkflow parametes
run -- trial created by the run command

Keyword arguments:
session -- specify session for loading (default=relational.session)
@classmethod
def store(cls, start, script, code_hash, arguments, bypass_modules, command, run, docstring, session=None):
    'Create trial and assign a new id to it\n\n        Use core sqlalchemy\n\n        Arguments:\n        start -- trial start time\n        script -- script name\n        code_hash -- script hash code\n        arguments -- trial arguments\n        bypass_modules -- whether it captured modules or not\n        command -- the full command line with noWorkflow parametes\n        run -- trial created by the run command\n\n        Keyword arguments:\n        session -- specify session for loading (default=relational.session)\n        '
    session = (session or relational.session)
    parent = cls.load_parent(script, parent_required=True)
    parent_id = (parent.id if parent else None)
    inherited_id = None
    if bypass_modules:
        inherited_id = cls.fast_last_trial_id()
    ttrial = cls.__table__
    result = session.execute(ttrial.insert(), {'start': start, 'script': script, 'code_hash': code_hash, 'arguments': arguments, 'command': command, 'run': run, 'inherited_id': inherited_id, 'parent_id': parent_id, 'docstring': docstring})
    tid = result.lastrowid
    session.commit()
    return tid