@classmethod
def load_parent(cls, script, remove=True, parent_required=False, session=None):
    'Load head trial by script\n\n\n        Keyword arguments:\n        remove -- remove from head, after loading (default=True)\n        parent_required -- valid only if script exists (default=False)\n        session -- specify session for loading (default=relational.session)\n        '
    session = (session or relational.session)
    head = Head.load_head(script, session=session)
    if head:
        trial = head.trial
        if remove:
            Head.remove(head.id, session=relational.make_session())
    elif (not head):
        trial = cls.last_trial(script=script, parent_required=parent_required, session=session)
    return proxy(trial)
Load head trial by script


Keyword arguments:
remove -- remove from head, after loading (default=True)
parent_required -- valid only if script exists (default=False)
session -- specify session for loading (default=relational.session)
@classmethod
def load_parent(cls, script, remove=True, parent_required=False, session=None):
    'Load head trial by script\n\n\n        Keyword arguments:\n        remove -- remove from head, after loading (default=True)\n        parent_required -- valid only if script exists (default=False)\n        session -- specify session for loading (default=relational.session)\n        '
    session = (session or relational.session)
    head = Head.load_head(script, session=session)
    if head:
        trial = head.trial
        if remove:
            Head.remove(head.id, session=relational.make_session())
    elif (not head):
        trial = cls.last_trial(script=script, parent_required=parent_required, session=session)
    return proxy(trial)