本文整理汇总了Python中vistrails.core.modules.vistrails_module.Module类的典型用法代码示例。如果您正苦于以下问题:Python Module类的具体用法?Python Module怎么用?Python Module使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Module类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self):
""" SpreadsheetCell() -> SpreadsheetCell
Initialize attributes
"""
Module.__init__(self)
self.location = None
示例2: __init__
def __init__(self):
""" SheetReference() -> SheetReference
Instantiate an empty SheetReference
"""
Module.__init__(self)
self.sheetReference = None
示例3: __init__
def __init__(self):
""" vtkBaseModule() -> vtkBaseModule
Instantiate an emptt VTK Module with real VTK instance
"""
Module.__init__(self)
self.vtkInstance = None
示例4: transfer_attrs
def transfer_attrs(self, module):
self.pipeline = module.pipeline
if module._port_specs is None:
module.make_port_specs()
self.input_remap = module._input_remap
self.output_remap = module._output_remap
Module.transfer_attrs(self, module)
示例5: __init__
def __init__(self):
Module.__init__(self)
self.locator = None
self.version = -1
self.pipeline = None
self.execute = False
self.embedWorkflow = False
self.showSpreadsheetOnly = False
self.forceDB = False
示例6: clear
def clear(self):
""" clear() -> None
Remove event handler so the object can be freed correctly
"""
# Remove all observers
if self.observer:
for e in vtkInteractionHandler.vtkEvents:
self.observer.vtkInstance.RemoveObservers(e)
Module.clear(self)
示例7: mock_get_input
def mock_get_input(self, name):
if name == 'host':
return host
elif name == 'port':
return port
else:
return Module.get_input(self, name)
示例8: __init__
def __init__(self):
Module.__init__(self)
config = get_vistrails_persistent_configuration()
if config.check('webRepositoryURL'):
self.base_url = config.webRepositoryURL
else:
raise ModuleError(self,
("No webRepositoryURL value defined"
" in the Expert Configuration"))
# check if we are running in server mode
# this effects how the compute method functions
if config.check('isInServerMode'):
self.is_server = bool(config.isInServerMode)
else:
self.is_server = False
# TODO: this '/' check should probably be done in core/configuration.py
if self.base_url[-1] == '/':
self.base_url = self.base_url[:-1]
示例9: __init__
def __init__(self):
Module.__init__(self)
self.input_ports_order = []
self.output_ports_order = []
示例10: transfer_attrs
def transfer_attrs(self, module):
Module.transfer_attrs(self, module)
self.input_ports_order = [p.name for p in module.input_port_specs]
self.output_ports_order = [p.name for p in module.output_port_specs
if p.name in module.connected_output_ports]
示例11: setResult
def setResult(self, port_name, value):
if value is not None and port_name == "value":
if value.name is None:
value.name = self.forceGetInputFromPort("name", None)
Module.setResult(self, port_name, value)
示例12: updateUpstream
def updateUpstream(self):
if self.figInstance is None:
self.figInstance = pylab.figure()
pylab.hold(True)
Module.updateUpstream(self)
示例13: __init__
def __init__(self):
Module.__init__(self)
self.qgis_obj = None
示例14: __init__
def __init__(self):
Module.__init__(self)
self.figInstance = None
示例15: __init__
def __init__(self, pattern, constraints=None):
Module.__init__(self)
self.pattern = pattern
self.constraints = constraints