def create_action_from_ops(ops, simplify=False):
    if len(ops) > 0:
        from vistrails.core.vistrail.action import Action
        action = vistrails.db.services.action.create_action_from_ops(ops, simplify)
        Action.convert(action)
        return action
    return None
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/core/db/action.py/create_action_from_ops/original