This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
patches = { | |
'UpdateAlgorithm': | |
""" | |
is_aborted = [False] | |
if hasattr($self, '_callback') and $self._callback is not None: | |
cbId = None | |
def ProgressEvent(obj, event): | |
try: | |
$self._callback(obj.GetProgress()) | |
except Exception, e: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import vtk | |
import vistrails.core.scripting.api as api | |
org_vistrails_vistrails_url = api.Package('org.vistrails.vistrails.url') | |
import locale | |
import os | |
from vistrails.packages.vtk import tf_widget | |
# MODULE 381 org.vistrails.vistrails.vtk:vtkVolumeRayCastCompositeFunction | |
vtk_volume_ray_cast_composite_function = vtk.vtkVolumeRayCastCompositeFunction() | |
vtk_volume_ray_cast_composite_function.vtkInstance = vtk_volume_ray_cast_composite_function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import vtk | |
# MODULE 61 org.vistrails.vistrails.vtk:vtkCellArray | |
vtk_cell_array = vtk.vtkCellArray() | |
vtk_cell_array.vtkInstance = vtk_cell_array | |
vtk_cell_array.InsertNextCell(12) | |
vtk_cell_array.InsertCellPoint(0) | |
vtk_cell_array.InsertCellPoint(1) | |
vtk_cell_array.InsertCellPoint(2) | |
vtk_cell_array.InsertCellPoint(3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bokeh.plotting | |
import importlib | |
import vistrails | |
org_vistrails_vistrails_bokeh = vistrails.load_package('org.vistrails.vistrails.bokeh') | |
# MODULE 20 org.vistrails.vistrails.bokeh:plotting|circle | |
# FUNCTION x_list x_list | |
x_list = [3, 4, 5] | |
# FUNCTION y_list y_list | |
y_list = [4, 5, 6] |
OlderNewer