Skip to content

Commit

Permalink
Fixed OutputModule subclasses becoming abstract
Browse files Browse the repository at this point in the history
packages/matplotlib/bases.py:
- MplFigureOutput: Set ModuleSettings without abstract flag

packages/vtk/base_module.py:
- vtkRendererOutput: Set ModuleSettings without abstract flag
  • Loading branch information
rexissimus committed Jul 22, 2014
1 parent 6698cdc commit 602ac51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions vistrails/packages/matplotlib/bases.py
Expand Up @@ -40,6 +40,7 @@
from matplotlib.backend_bases import FigureCanvasBase

from vistrails.core.modules.basic_modules import CodeRunnerMixin
from vistrails.core.modules.config import ModuleSettings
from vistrails.core.modules.output_modules import ImageFileMode, \
ImageFileModeConfig, OutputModule
from vistrails.core.modules.vistrails_module import Module, NotCacheable, ModuleError
Expand Down Expand Up @@ -168,6 +169,7 @@ def compute_output(self, output_module, configuration=None):
canvas.draw()

class MplFigureOutput(OutputModule):
_settings = ModuleSettings(configure_widget="vistrails.gui.modules.output_configuration:OutputModuleConfigurationWidget")
_input_ports = [('value', 'MplFigure')]
_output_modes = [MplFigureToFile]

Expand Down
2 changes: 1 addition & 1 deletion vistrails/packages/vtk/base_module.py
Expand Up @@ -315,6 +315,7 @@ def compute_output(self, output_module, configuration):

class vtkRendererOutput(OutputModule):
# DAK: no render view here, use a separate module for this...
_settings = ModuleSettings(configure_widget="vistrails.gui.modules.output_configuration:OutputModuleConfigurationWidget")
_input_ports = [('value', 'vtkRenderer')]
# DK: these ports can be enabled, I think, just
# have to be laoded without the spreadsheet being
Expand All @@ -323,4 +324,3 @@ class vtkRendererOutput(OutputModule):
# ('interactorStyle', 'vtkInteractorStyle'),
# ('picker', 'vtkAbstractPicker')]
_output_modes = [vtkRendererToFile]
_settings = OutputModule._settings

0 comments on commit 602ac51

Please sign in to comment.