コード例 #1
0
def load_workflow_example():
    from api import load_workflow_as_function
    filename = "/Users/emanuele/Dropbox/my_vistrails/head.vt"
    workflow = "aliases"
    isosurface = load_workflow_as_function(filename, workflow)
    print isosurface.__doc__
    isosurface(isovalue=30)
コード例 #2
0
def load_workflow_example():
    from api import load_workflow_as_function
    filename = "/Users/emanuele/Dropbox/my_vistrails/head.vt"
    workflow = "aliases"
    isosurface = load_workflow_as_function(filename, workflow) 
    print isosurface.__doc__
    isosurface(isovalue=30)
コード例 #3
0
 def build_python_script_from_pipeline(controller, version, plot_objs=[]):
     from api import load_workflow_as_function
     text = "from api import load_workflow_as_function\n"
     if len(plot_objs) > 0:
         text += "proj_file = '%s'\n"%controller.get_locator().name
         text += "vis_id = %s\n"%version
         text += "vis = load_workflow_as_function(proj_file, vis_id)\n"
         vis = load_workflow_as_function(controller.get_locator().name, version)
         doc = vis.__doc__
         lines = doc.split("\n")
         for line in lines:
             text += "# %s\n"%line                 
         return text
コード例 #4
0
 def build_python_script_from_pipeline(controller, version, plot_objs=[]):
     from api import load_workflow_as_function
     text = "from api import load_workflow_as_function\n"
     if len(plot_objs) > 0:
         text += "proj_file = '%s'\n" % controller.get_locator().name
         text += "vis_id = %s\n" % version
         text += "vis = load_workflow_as_function(proj_file, vis_id)\n"
         vis = load_workflow_as_function(controller.get_locator().name,
                                         version)
         doc = vis.__doc__
         lines = doc.split("\n")
         for line in lines:
             text += "# %s\n" % line
         return text