bugged
stringlengths
4
228k
fixed
stringlengths
0
96.3M
__index_level_0__
int64
0
481k
def push_vistrail_to_repository(self): """ uploads current VisTrail to web repository """
def push_vistrail_to_repository(self, branching=False): """ uploads current VisTrail to web repository """
477,300
def push_vistrail_to_repository(self): """ uploads current VisTrail to web repository """
def push_vistrail_to_repository(self): """ uploads current VisTrail to web repository """
477,301
def push_vistrail_to_repository(self): """ uploads current VisTrail to web repository """
def push_vistrail_to_repository(self): controller.recompute_terse_graph() controller.invalidate_version_tree() uploads current VisTrail to web repository """
477,302
def push_vistrail_to_repository(self): """ uploads current VisTrail to web repository """
def push_vistrail_to_repository(self): uploads current VisTrail to web repository """
477,303
def clicked_on_login(self): """ Attempts to log into web repository stores auth cookie for session """ from gui.application import VistrailsApplication
def clicked_on_login(self): """ Attempts to log into web repository stores auth cookie for session """ from gui.application import VistrailsApplication
477,304
def __init__(self, parent): QtGui.QDialog.__init__(self, parent) self._status_bar = QtGui.QStatusBar(self) self.setWindowTitle('Web Repository Options') layout = QtGui.QHBoxLayout(self) layout.setMargin(0) layout.setSpacing(0) self.setLayout(layout)
def __init__(self, parent): QtGui.QDialog.__init__(self, parent) self._status_bar = QtGui.QStatusBar(self) self.setWindowTitle('Web Repository Options') layout = QtGui.QHBoxLayout(self) layout.setMargin(0) layout.setSpacing(0) self.setLayout(layout)
477,305
def handle_missing_module(m_name, m_namespace): global webServicesmodulesDict def get_wsdl_from_namespace(m_namespace): try: wsdl = m_namespace.split("|") return wsdl[0] except: print "invalid namespace" return None wsdl = get_wsdl_from_namespace(m_namespace) if wsdl: outdated_list = [] updated_list = [] error_list = ...
def handle_missing_module(*args, **kwargs): global webServicesmodulesDict def get_wsdl_from_namespace(m_namespace): try: wsdl = m_namespace.split("|") return wsdl[0] except: print "invalid namespace" return None wsdl = get_wsdl_from_namespace(m_namespace) if wsdl: outdated_list = [] updated_list = [] error_list = [] p...
477,306
def get_wsdl_from_namespace(m_namespace): try: wsdl = m_namespace.split("|") return wsdl[0] except: print "invalid namespace" return None
defm = pipeline.modules[m_id] m_namespace = m.namespace get_wsdl_from_namespace(m_namespace):m = pipeline.modules[m_id] m_namespace = m.namespace try:m = pipeline.modules[m_id] m_namespace = m.namespace wsdlm = pipeline.modules[m_id] m_namespace = m.namespace =m = pipeline.modules[m_id] m_namespace = m.namespace m...
477,307
def updateStatus(self, info): """ updateStatus(info: tuple) -> None Updates the status of the button based on the input info """ (sheet, row, col, cellWidget) = info if cellWidget: if not cellWidget.label.hasScaledContents(): self.setEnabled(True) originalWidth = cellWidget.originalPix.width() self.setValue(cellWidget...
def updateStatus(self, info): """ updateStatus(info: tuple) -> None Updates the status of the button based on the input info """ (sheet, row, col, cellWidget) = info if cellWidget: if (not cellWidget.label.hasScaledContents() and not cellWidget._playing): self.setEnabled(True) originalWidth = cellWidget.originalPix.wi...
477,308
def create_group(self, module_ids, connection_ids): self.flush_move_actions() (group, connections) = \ BaseController.create_group(self, self.current_pipeline, module_ids, connection_ids) op_list = [] op_list.extend(('delete', self.current_pipeline.connections[c_id]) for c_id in connection_ids) op_list.extend(('delete'...
def create_group(self, module_ids, connection_ids): self.flush_delayed_actions() (group, connections) = \ BaseController.create_group(self, self.current_pipeline, module_ids, connection_ids) op_list = [] op_list.extend(('delete', self.current_pipeline.connections[c_id]) for c_id in connection_ids) op_list.extend(('dele...
477,309
def create_abstraction(self, module_ids, connection_ids, name): self.flush_move_actions() (abstraction, connections) = \ BaseController.create_abstraction(self, self.current_pipeline, module_ids, connection_ids, name) op_list = [] op_list.extend(('delete', self.current_pipeline.connections[c_id]) for c_id in connection...
def create_abstraction(self, module_ids, connection_ids, name): self.flush_delayed_actions() (abstraction, connections) = \ BaseController.create_abstraction(self, self.current_pipeline, module_ids, connection_ids, name) op_list = [] op_list.extend(('delete', self.current_pipeline.connections[c_id]) for c_id in connect...
477,310
def create_abstraction_from_group(self, group_id, name=""): self.flush_move_actions() name = self.get_abstraction_name(name) (abstraction, connections) = \ BaseController.create_abstraction_from_group(self, self.current_pipeline, group_id, name)
def create_abstraction_from_group(self, group_id, name=""): self.flush_delayed_actions() name = self.get_abstraction_name(name) (abstraction, connections) = \ BaseController.create_abstraction_from_group(self, self.current_pipeline, group_id, name)
477,311
def ungroup_set(self, module_ids): self.flush_move_actions() for m_id in module_ids: self.create_ungroup(m_id)
def ungroup_set(self, module_ids): self.flush_delayed_actions() for m_id in module_ids: self.create_ungroup(m_id)
477,312
def update_notes(self, notes): """ Parameters ----------
def update_notes(self, notes): """ Parameters ----------
477,313
def execute_current_workflow(self, custom_aliases=None): """ execute_current_workflow() -> None Execute the current workflow (if exists) """ self.flush_move_actions() if self.current_pipeline: locator = self.get_locator() if locator: locator.clean_temporaries() locator.save_temporary(self.vistrail) self.execute_workfl...
def execute_current_workflow(self, custom_aliases=None): """ execute_current_workflow() -> None Execute the current workflow (if exists) """ self.flush_delayed_actions() if self.current_pipeline: locator = self.get_locator() if locator: locator.clean_temporaries() locator.save_temporary(self.vistrail) self.execute_wor...
477,314
def update_current_tag(self,tag): """ update_current_tag(tag: str) -> Bool Update the current vistrail tag and return success predicate """ self.flush_move_actions() try: if self.vistrail.hasTag(self.current_version): self.vistrail.changeTag(tag, self.current_version) else: self.vistrail.addTag(tag, self.current_versi...
def update_current_tag(self,tag): """ update_current_tag(tag: str) -> Bool Update the current vistrail tag and return success predicate """ self.flush_delayed_actions() try: if self.vistrail.hasTag(self.current_version): self.vistrail.changeTag(tag, self.current_version) else: self.vistrail.addTag(tag, self.current_ve...
477,315
def copy_modules_and_connections(self, module_ids, connection_ids): """copy_modules_and_connections(module_ids: [long], connection_ids: [long]) -> str Serializes a list of modules and connections """ self.flush_move_actions()
def copy_modules_and_connections(self, module_ids, connection_ids): """copy_modules_and_connections(module_ids: [long], connection_ids: [long]) -> str Serializes a list of modules and connections """ self.flush_move_actions()
477,316
def paste_modules_and_connections(self, str, center): """ paste_modules_and_connections(str, center: (float, float)) -> [id list] Paste a list of modules and connections into the current pipeline.
def paste_modules_and_connections(self, str, center): """ paste_modules_and_connections(str, center: (float, float)) -> [id list] Paste a list of modules and connections into the current pipeline.
477,317
def perform_operation(self, op): # print "doing %s %s %s" % (op.id, op.vtType, op.what) if op.db_what == 'abstraction' or op.db_what == 'group': what = 'module' else: what = op.db_what funname = '%s_%s' % (op.vtType, what)
defperform_operation(self,op):#print"doing%s%s%s"%(op.id,op.vtType,op.what)ifop.db_what=='abstraction'orop.db_what=='group':what='module'else:what=op.db_whatfunname='%s_%s'%(op.vtType,what)
477,318
def perform_operation(self, op): # print "doing %s %s %s" % (op.id, op.vtType, op.what) if op.db_what == 'abstraction' or op.db_what == 'group': what = 'module' else: what = op.db_what funname = '%s_%s' % (op.vtType, what)
def perform_operation(self, op): # print "doing %s %s %s" % (op.id, op.vtType, op.what) if op.db_what == 'abstraction' or op.db_what == 'group': what = 'module' else: what = op.db_what funname = '%s_%s' % (op.vtType, what)
477,319
def perform_operation(self, op): # print "doing %s %s %s" % (op.id, op.vtType, op.what) if op.db_what == 'abstraction' or op.db_what == 'group': what = 'module' else: what = op.db_what funname = '%s_%s' % (op.vtType, what)
def perform_operation(self, op): # print "doing %s %s %s" % (op.id, op.vtType, op.what) if op.db_what == 'abstraction' or op.db_what == 'group': what = 'module' else: what = op.db_what funname = '%s_%s' % (op.vtType, what)
477,320
def perform_operation(self, op): # print "doing %s %s %s" % (op.id, op.vtType, op.what) if op.db_what == 'abstraction' or op.db_what == 'group': what = 'module' else: what = op.db_what funname = '%s_%s' % (op.vtType, what)
def perform_operation(self, op): # print "doing %s %s %s" % (op.id, op.vtType, op.what) if op.db_what == 'abstraction' or op.db_what == 'group': what = 'module' else: what = op.db_what funname = '%s_%s' % (op.vtType, what)
477,321
def add_module(self, m, *args): """add_module(m: Module) -> None Add new module to pipeline """ if self.has_module_with_id(m.id): raise VistrailsInternalError("duplicate module id")
def add_module(self, m, *args): """add_module(m: Module) -> None Add new module to pipeline """ if self.has_module_with_id(m.id): raise VistrailsInternalError("duplicate module id")
477,322
def add_parameter(self, param, parent_id, parent_type=ModuleFunction.vtType): self.db_add_object(param, parent_type, parent_id) if not self.has_alias(param.alias): self.change_alias(param.alias, param.vtType, param.real_id, parent_type, parent_id, None)
def add_parameter(self, param, parent_type, parent_id): self.db_add_object(param, parent_type, parent_id) if not self.has_alias(param.alias): self.change_alias(param.alias, param.vtType, param.real_id, parent_type, parent_id, None)
477,323
def delete_parameter(self, param_id, parent_id, parent_type=ModuleFunction.vtType): self.db_delete_object(param_id, ModuleParam.vtType, parent_type, parent_id) self.remove_alias(ModuleParam.vtType, param_id, parent_type, parent_id, None)
def delete_parameter(self, param_id, param_type, parent_type, parent_id): self.db_delete_object(param_id, ModuleParam.vtType, parent_type, parent_id) self.remove_alias(ModuleParam.vtType, param_id, parent_type, parent_id, None)
477,324
def delete_parameter(self, param_id, parent_id, parent_type=ModuleFunction.vtType): self.db_delete_object(param_id, ModuleParam.vtType, parent_type, parent_id) self.remove_alias(ModuleParam.vtType, param_id, parent_type, parent_id, None)
def delete_parameter(self, param_id, parent_id, parent_type=ModuleFunction.vtType): self.db_delete_object(param_id, ModuleParam.vtType, parent_type, parent_id) self.remove_alias(ModuleParam.vtType, param_id, parent_type, parent_id, None)
477,325
def add_port(self, port, parent_id, parent_type=Connection.vtType): self.db_add_object(port, parent_type, parent_id) connection = self.connections[parent_id] if connection.source is not None and \ connection.destination is not None: self.graph.add_edge(connection.sourceId, connection.destinationId, connection.id)
def add_port(self, port, parent_type, parent_id): self.db_add_object(port, parent_type, parent_id) connection = self.connections[parent_id] if connection.source is not None and \ connection.destination is not None: self.graph.add_edge(connection.sourceId, connection.destinationId, connection.id)
477,326
def delete_port(self, port_id, parent_id, parent_type=Connection.vtType): connection = self.connections[parent_id] if len(connection.ports) >= 2: self.graph.delete_edge(connection.sourceId, connection.destinationId, connection.id) self.db_delete_object(port_id, Port.vtType, parent_type, parent_id)
def delete_port(self, port_id, port_type, parent_type, parent_id): connection = self.connections[parent_id] if len(connection.ports) >= 2: self.graph.delete_edge(connection.sourceId, connection.destinationId, connection.id) self.db_delete_object(port_id, Port.vtType, parent_type, parent_id)
477,327
def change_port(self, old_port_id, port, parent_id, parent_type=Connection.vtType): connection = self.connections[parent_id] if len(connection.ports) >= 2: source_list = self.graph.adjacency_list[connection.sourceId] source_list.remove((connection.destinationId, connection.id)) dest_list = \ self.graph.inverse_adjacenc...
def change_port(self, old_port_id, port, parent_type, parent_id): connection = self.connections[parent_id] if len(connection.ports) >= 2: source_list = self.graph.adjacency_list[connection.sourceId] source_list.remove((connection.destinationId, connection.id)) dest_list = \ self.graph.inverse_adjacency_list[connection....
477,328
def add_portSpec(self, port_spec, parent_id, parent_type=Module.vtType): # self.db_add_object(port_spec, parent_type, parent_id) self.add_port_to_registry(port_spec, parent_id)
def add_portSpec(self, port_spec, parent_type, parent_id): # self.db_add_object(port_spec, parent_type, parent_id) self.add_port_to_registry(port_spec, parent_id)
477,329
def delete_portSpec(self, spec_id, parent_id, parent_type=Module.vtType): self.delete_port_from_registry(spec_id, parent_id) # self.db_delete_object(spec_id, PortSpec.vtType, parent_type, parent_id)
def delete_portSpec(self, spec_id, portSpec_type, parent_type, parent_id): self.delete_port_from_registry(spec_id, parent_id) # self.db_delete_object(spec_id, PortSpec.vtType, parent_type, parent_id)
477,330
def change_portSpec(self, old_spec_id, port_spec, parent_id, parent_type=Module.vtType): self.delete_port_from_registry(old_spec_id, parent_id) # self.db_change_object(old_spec_id, port_spec, parent_type, parent_id) self.add_port_to_registry(port_spec, parent_id)
def change_portSpec(self, old_spec_id, port_spec, parent_type, parent_id): self.delete_port_from_registry(old_spec_id, parent_id) # self.db_change_object(old_spec_id, port_spec, parent_type, parent_id) self.add_port_to_registry(port_spec, parent_id)
477,331
def showEvent(self, event): """ showEvent(event: QShowEvent) -> None Update the tab when it is shown """ if self.currentVersion!=self.controller.current_version: self.currentVersion = self.controller.current_version # Update the virtual cell pipeline = self.controller.current_pipeline self.virtualCell.updateVirtualCel...
def showEvent(self, event): """ showEvent(event: QShowEvent) -> None Update the tab when it is shown """ if self.currentVersion!=self.controller.current_version: self.currentVersion = self.controller.current_version # Update the virtual cell pipeline = self.controller.current_pipeline self.virtualCell.updateVirtualCel...
477,332
def open_vistrail_bundle_from_zip_xml(filename): """open_vistrail_bundle_from_zip_xml(filename) -> SaveBundle Open a vistrail from a zip compressed format. It expects that the vistrail file inside archive has name 'vistrail', the log inside archive has name 'log', abstractions inside archive have prefix 'abstraction_',...
def open_vistrail_bundle_from_zip_xml(filename): """open_vistrail_bundle_from_zip_xml(filename) -> SaveBundle Open a vistrail from a zip compressed format. It expects that the vistrail file inside archive has name 'vistrail', the log inside archive has name 'log', abstractions inside archive have prefix 'abstraction_',...
477,333
def create_action_from_ops(ops): if len(ops) > 0: from core.vistrail.action import Action action = db.services.action.create_action_from_ops(ops) Action.convert(action) return action return None
def create_action_from_ops(ops, simplify=False): if len(ops) > 0: from core.vistrail.action import Action action = db.services.action.create_action_from_ops(ops) Action.convert(action) return action return None
477,334
def create_action_from_ops(ops): if len(ops) > 0: from core.vistrail.action import Action action = db.services.action.create_action_from_ops(ops) Action.convert(action) return action return None
def create_action_from_ops(ops): if len(ops) > 0: from core.vistrail.action import Action action = db.services.action.create_action_from_ops(ops, simplify) Action.convert(action) return action return None
477,335
def get_vt_graph_png(self, host, port, db_name, vt_id): """get_vt_graph_png(host:str, port: str, db_name: str, vt_id:str) -> str Returns the relative url of the generated image """
def get_vt_graph_png(self, host, port, db_name, vt_id): """get_vt_graph_png(host:str, port: str, db_name: str, vt_id:str) -> str Returns the relative url of the generated image """
477,336
def initialize(self, existing_paths=None): self._override_import(existing_paths) try: try: name = self.prefix + self.codepath + '.init' __import__(name, globals(), locals(), []) self._init_module = sys.modules[name] self._imported_paths.add(name) # Copy attributes (shallow) from _module into _init_module's namespace an...
def initialize(self, existing_paths=None): self._override_import(existing_paths) try: try: name = self.prefix + self.codepath + '.init' __import__(name, globals(), locals(), []) self._init_module = sys.modules[name] self._imported_paths.add(name) # Copy attributes (shallow) from _module into _init_module's namespace an...
477,337
def compute(self): """ compute() -> None Dispatch the HTML contents to the spreadsheet """ if self.hasInputFromPort("File"): fileValue = self.getInputFromPort("File") else: fileValue = None self.display(RichTextCellWidget, (fileValue,))
def compute(self): """ compute() -> None Dispatch the HTML contents to the spreadsheet """ if self.hasInputFromPort("File"): fileValue = self.getInputFromPort("File") else: fileValue = None self.display(RichTextCellWidget, (fileValue,))
477,338
def module_text_has_changed(self, m1, m2): # 2008-06-25 cscheid # This is a hot-path for QPipelineView.setupScene, so we cut # some corners # # 2008-07-08 cscheid # Can't use direct __dict__ lookup because both groups and # modules end up here. if m1.db_tag != m2.db_tag: return True m1_has = '__desc__' in m1.db_annotat...
def module_text_has_changed(self, m1, m2): # 2008-06-25 cscheid # This is a hot-path for QPipelineView.setupScene, so we cut # some corners # # 2008-07-08 cscheid # Can't use direct __dict__ lookup because both groups and # modules end up here. if m1.db_tag != m2.db_tag: return True m1_has = '__desc__' in m1.db_annotat...
477,339
def module_text_has_changed(self, m1, m2): # 2008-06-25 cscheid # This is a hot-path for QPipelineView.setupScene, so we cut # some corners # # 2008-07-08 cscheid # Can't use direct __dict__ lookup because both groups and # modules end up here. if m1.db_tag != m2.db_tag: return True m1_has = '__desc__' in m1.db_annotat...
def module_text_has_changed(self, m1, m2): # 2008-06-25 cscheid # This is a hot-path for QPipelineView.setupScene, so we cut # some corners # # 2008-07-08 cscheid # Can't use direct __dict__ lookup because both groups and # modules end up here. if m1.db_tag != m2.db_tag: return True m1_has = '__desc__' in m1.db_annotat...
477,340
def check_user_projects(self): # are we logged in? if not self.dialog.cookiejar: self._repository_status['support_status'] = "Please login" self._repository_status['details'] = "" self.update_push_information() self._push_button.setEnabled(False) self._branch_button.hide() else: server_url = "%s/projects/get_user_proje...
def check_user_projects(self): # are we logged in? if not self.dialog.cookiejar: self._repository_status['support_status'] = "Please login" self._repository_status['details'] = "" self.update_push_information() self._push_button.setEnabled(False) self._branch_button.hide() else: server_url = "%s/projects/get_user_proje...
477,341
def check_user_projects(self): # are we logged in? if not self.dialog.cookiejar: self._repository_status['support_status'] = "Please login" self._repository_status['details'] = "" self.update_push_information() self._push_button.setEnabled(False) self._branch_button.hide() else: server_url = "%s/projects/get_user_proje...
def check_user_projects(self): # are we logged in? if not self.dialog.cookiejar: self._repository_status['support_status'] = "Please login" self._repository_status['details'] = "" self.update_push_information() self._push_button.setEnabled(False) self._branch_button.hide() else: server_url = "%s/projects/get_user_proje...
477,342
def check_dependencies(self, index): """ determines if current VisTrail will be supported by the repository's VisTrail server """
def check_dependencies(self, index): """ determines if current VisTrail will be supported by the repository's VisTrail server """
477,343
def check_dependencies(self, index): """ determines if current VisTrail will be supported by the repository's VisTrail server """
def check_dependencies(self, index): """ determines if current VisTrail will be supported by the repository's VisTrail server """
477,344
def check_dependencies(self, index): """ determines if current VisTrail will be supported by the repository's VisTrail server """
def check_dependencies(self, index): """ determines if current VisTrail will be supported by the repository's VisTrail server """
477,345
def check_dependencies(self, index): """ determines if current VisTrail will be supported by the repository's VisTrail server """
def check_dependencies(self, index): """ determines if current VisTrail will be supported by the repository's VisTrail server """
477,346
def check_dependencies(self, index): """ determines if current VisTrail will be supported by the repository's VisTrail server """
def check_dependencies(self, index): """ determines if current VisTrail will be supported by the repository's VisTrail server """
477,347
def check_dependencies(self, index): """ determines if current VisTrail will be supported by the repository's VisTrail server """
def check_dependencies(self, index): """ determines if current VisTrail will be supported by the repository's VisTrail server """
477,348
def push_vistrail_to_repository(self, branching=False): """ uploads current VisTrail to web repository """
defproject = self.serverCombo.itemData(self.serverCombo.currentIndex()).toList()[0].toString() if project == "Default": project = "" push_vistrail_to_repository(self,project = self.serverCombo.itemData(self.serverCombo.currentIndex()).toList()[0].toString() if project == "Default": project = "" branching=False):project...
477,349
def push_vistrail_to_repository(self, branching=False): """ uploads current VisTrail to web repository """
def push_vistrail_to_repository(self, branching=False): """ uploads current VisTrail to web repository """
477,350
def push_vistrail_to_repository(self, branching=False): """ uploads current VisTrail to web repository """
def push_vistrail_to_repository(self, branching=False): """ uploads current VisTrail to web repository """
477,351
def push_vistrail_to_repository(self, branching=False): """ uploads current VisTrail to web repository """
def push_vistrail_to_repository(self, branching=False): """ uploads current VisTrail to web repository """
477,352
def __init__(self, parent, status_bar, dialog): QtGui.QWidget.__init__(self, parent) self._status_bar = status_bar self.dialog = dialog
def __init__(self, parent, status_bar, dialog): QtGui.QWidget.__init__(self, parent) self._status_bar = status_bar self.dialog = dialog
477,353
def clicked_on_login(self): """ Attempts to log into web repository stores auth cookie for session """ from gui.application import VistrailsApplication
def clicked_on_login(self): """ Attempts to log into web repository stores auth cookie for session """ from gui.application import VistrailsApplication
477,354
def clicked_on_login(self): """ Attempts to log into web repository stores auth cookie for session """ from gui.application import VistrailsApplication
def clicked_on_login(self): """ Attempts to log into web repository stores auth cookie for session """ from gui.application import VistrailsApplication
477,355
def start_other_instances(self, number): self.others = [] host = self.temp_xml_rpc_options.server port = self.temp_xml_rpc_options.port virtual_display = 5 script = '/server/vistrails/trunk/scripts/start_vistrails_xvfb.sh' for x in xrange(number): port += 1 virtual_display += 1 args = [script,":%s"%virtual_display,host...
def start_other_instances(self, number): self.others = [] host = self.temp_xml_rpc_options.server port = self.temp_xml_rpc_options.port virtual_display = 5 script = '/server/vistrails/trunk/scripts/start_vistrails_xvfb.sh' for x in xrange(number): port += 1 virtual_display += 1 args = [script,":%s"%virtual_display,host...
477,356
def compute(self): """The compute method for the Fold."""
def compute(self): """The compute method for the Fold."""
477,357
def addPortsToMethods(w): """ Add input and output ports to the VisTrails complex type modules. """ reg = core.modules.module_registry.get_module_registry() dictkey = w + "|Methods" complexsdict = webServicesmodulesDict[dictkey] keys = complexsdict.keys() for dictkey in keys: obj = complexsdict[dictkey] objtype = reg....
def addPortsToMethods(w): """ Add input and output ports to the VisTrails complex type modules. """ reg = core.modules.module_registry.get_module_registry() dictkey = w + "|Methods" complexsdict = webServicesmodulesDict[dictkey] keys = complexsdict.keys() for dictkey in keys: obj = complexsdict[dictkey] objtype = reg....
477,358
def addPortsToMethods(w): """ Add input and output ports to the VisTrails complex type modules. """ reg = core.modules.module_registry.get_module_registry() dictkey = w + "|Methods" complexsdict = webServicesmodulesDict[dictkey] keys = complexsdict.keys() for dictkey in keys: obj = complexsdict[dictkey] objtype = reg....
def addPortsToMethods(w): """ Add input and output ports to the VisTrails complex type modules. """ reg = core.modules.module_registry.get_module_registry() dictkey = w + "|Methods" complexsdict = webServicesmodulesDict[dictkey] keys = complexsdict.keys() for dictkey in keys: obj = complexsdict[dictkey] objtype = reg....
477,359
def update_workflow(old_obj, translate_dict): return DBWorkflow.update_version(old_obj.db_workflow, translate_dict)
def update_workflow(old_obj, translate_dict): return DBWorkflow.update_version(old_obj.db_workflow, translate_dict)
477,360
def perform_operation(self, op): # print "doing %s %s" % (op.vtType, op.what) if op.db_what == 'abstraction' or op.db_what == 'group': what = 'module' else: what = op.db_what funname = '%s_%s' % (op.vtType, what)
def perform_operation(self, op): # print "doing %s %s" % (op.vtType, op.what) if op.db_what == 'abstraction' or op.db_what == 'group': what = 'module' else: what = op.db_what funname = '%s_%s' % (op.vtType, what)
477,361
def find_descriptors(pipeline, module_ids=None): registry = get_module_registry() conf = get_vistrails_configuration() if module_ids == None: module_ids = pipeline.modules.iterkeys() exceptions = set() for mid in module_ids: module = pipeline.modules[mid] try: descriptor = registry.get_similar_descriptor( module.packag...
def find_descriptors(pipeline, module_ids=None): registry = get_module_registry() conf = get_vistrails_configuration() if module_ids == None: module_ids = pipeline.modules.iterkeys() exceptions = set() for mid in module_ids: module = pipeline.modules[mid] try: descriptor = registry.get_similar_descriptor( module.packag...
477,362
def find_descriptors(pipeline, module_ids=None): registry = get_module_registry() conf = get_vistrails_configuration() if module_ids == None: module_ids = pipeline.modules.iterkeys() exceptions = set() for mid in module_ids: module = pipeline.modules[mid] try: descriptor = registry.get_similar_descriptor( module.packag...
def find_descriptors(pipeline, module_ids=None): registry = get_module_registry() conf = get_vistrails_configuration() if module_ids == None: module_ids = pipeline.modules.iterkeys() exceptions = set() for mid in module_ids: module = pipeline.modules[mid] try: descriptor = registry.get_similar_descriptor( module.packag...
477,363
def find_descriptors(pipeline, module_ids=None): registry = get_module_registry() conf = get_vistrails_configuration() if module_ids == None: module_ids = pipeline.modules.iterkeys() exceptions = set() for mid in module_ids: module = pipeline.modules[mid] try: descriptor = registry.get_similar_descriptor( module.packag...
def find_descriptors(pipeline, module_ids=None): registry = get_module_registry() conf = get_vistrails_configuration() if module_ids == None: module_ids = pipeline.modules.iterkeys() exceptions = set() for mid in module_ids: module = pipeline.modules[mid] try: descriptor = registry.get_similar_descriptor( module.packag...
477,364
def add_abstraction_to_registry(self, abs_vistrail, abs_fname, name, namespace=None, module_version=None, is_global=True, avail_fnames=[]): reg = core.modules.module_registry.get_module_registry() if namespace is None: namespace = \ abs_vistrail.get_annotation('__abstraction_uuid__').value
def add_abstraction_to_registry(self, abs_vistrail, abs_fname, name, namespace=None, module_version=None, is_global=True, avail_fnames=[]): reg = core.modules.module_registry.get_module_registry() if namespace is None: namespace = \ abs_vistrail.get_annotation('__abstraction_uuid__').value
477,365
def add_abstraction_to_registry(self, abs_vistrail, abs_fname, name, namespace=None, module_version=None, is_global=True, avail_fnames=[]): reg = core.modules.module_registry.get_module_registry() if namespace is None: namespace = \ abs_vistrail.get_annotation('__abstraction_uuid__').value
def add_abstraction_to_registry(self, abs_vistrail, abs_fname, name, namespace=None, module_version=None, is_global=True, avail_fnames=[]): reg = core.modules.module_registry.get_module_registry() if namespace is None: namespace = \ abs_vistrail.get_annotation('__abstraction_uuid__').value
477,366
def flush_delayed_actions(self): start_version = self.current_version desc_key = Action.ANNOTATION_DESCRIPTION added_upgrade = False migrate_tags = get_vistrails_configuration().check("migrateTags") for action in self._delayed_actions: self.vistrail.add_action(action, start_version, self.current_session) # HACK to popu...
def flush_delayed_actions(self): start_version = self.current_version desc_key = Action.ANNOTATION_DESCRIPTION added_upgrade = False should_migrate_tags = get_vistrails_configuration().check("migrateTags") for action in self._delayed_actions: self.vistrail.add_action(action, start_version, self.current_session) # HACK ...
477,367
def flush_delayed_actions(self): start_version = self.current_version desc_key = Action.ANNOTATION_DESCRIPTION added_upgrade = False migrate_tags = get_vistrails_configuration().check("migrateTags") for action in self._delayed_actions: self.vistrail.add_action(action, start_version, self.current_session) # HACK to popu...
def flush_delayed_actions(self): start_version = self.current_version desc_key = Action.ANNOTATION_DESCRIPTION added_upgrade = False migrate_tags = get_vistrails_configuration().check("migrateTags") for action in self._delayed_actions: self.vistrail.add_action(action, start_version, self.current_session) # HACK to popu...
477,368
def replace_generic(controller, pipeline, old_module, new_module, function_remap={}, src_port_remap={}, dst_port_remap={}, annotation_remap={}): ops = [] ops.extend(controller.delete_module_list_ops(pipeline, [old_module.id])) ops.append(('add', new_module)) for annotation in old_module.annotations: if annotation.key ...
def replace_generic(controller, pipeline, old_module, new_module, function_remap={}, src_port_remap={}, dst_port_remap={}, annotation_remap={}): ops = [] ops.extend(controller.delete_module_list_ops(pipeline, [old_module.id])) for annotation in old_module.annotations: if annotation.key not in annotation_remap: annotat...
477,369
def replace_generic(controller, pipeline, old_module, new_module, function_remap={}, src_port_remap={}, dst_port_remap={}, annotation_remap={}): ops = [] ops.extend(controller.delete_module_list_ops(pipeline, [old_module.id])) ops.append(('add', new_module)) for annotation in old_module.annotations: if annotation.key ...
def replace_generic(controller, pipeline, old_module, new_module, function_remap={}, src_port_remap={}, dst_port_remap={}, annotation_remap={}): ops = [] ops.extend(controller.delete_module_list_ops(pipeline, [old_module.id])) ops.append(('add', new_module)) for annotation in old_module.annotations: if annotation.key ...
477,370
def replace_generic(controller, pipeline, old_module, new_module, function_remap={}, src_port_remap={}, dst_port_remap={}, annotation_remap={}): ops = [] ops.extend(controller.delete_module_list_ops(pipeline, [old_module.id])) ops.append(('add', new_module)) for annotation in old_module.annotations: if annotation.key ...
def replace_generic(controller, pipeline, old_module, new_module, function_remap={}, src_port_remap={}, dst_port_remap={}, annotation_remap={}): ops = [] ops.extend(controller.delete_module_list_ops(pipeline, [old_module.id])) ops.append(('add', new_module)) for annotation in old_module.annotations: if annotation.key ...
477,371
def replace_generic(controller, pipeline, old_module, new_module, function_remap={}, src_port_remap={}, dst_port_remap={}, annotation_remap={}): ops = [] ops.extend(controller.delete_module_list_ops(pipeline, [old_module.id])) ops.append(('add', new_module)) for annotation in old_module.annotations: if annotation.key ...
def replace_generic(controller, pipeline, old_module, new_module, function_remap={}, src_port_remap={}, dst_port_remap={}, annotation_remap={}): ops = [] ops.extend(controller.delete_module_list_ops(pipeline, [old_module.id])) ops.append(('add', new_module)) for annotation in old_module.annotations: if annotation.key ...
477,372
def replace_generic(controller, pipeline, old_module, new_module, function_remap={}, src_port_remap={}, dst_port_remap={}, annotation_remap={}): ops = [] ops.extend(controller.delete_module_list_ops(pipeline, [old_module.id])) ops.append(('add', new_module)) for annotation in old_module.annotations: if annotation.key ...
def replace_generic(controller, pipeline, old_module, new_module, function_remap={}, src_port_remap={}, dst_port_remap={}, annotation_remap={}): ops = [] ops.extend(controller.delete_module_list_ops(pipeline, [old_module.id])) ops.append(('add', new_module)) for annotation in old_module.annotations: if annotation.key ...
477,373
def create_new_connection(src_module, src_port, dst_module, dst_port): # spec -> name, type, signature output_port_id = controller.id_scope.getNewId(Port.vtType) if type(src_port) == type(""): if ((src_port, 'output')) in local_port_specs: output_port_spec = local_port_specs[(src_port, 'output')] else: output_port_spec...
def create_new_connection(src_module, src_port, dst_module, dst_port): # spec -> name, type, signature output_port_id = controller.id_scope.getNewId(Port.vtType) if type(src_port) == type(""): output_port_spec = src_module.get_port_spec(src_port, 'output') output_port = Port(id=output_port_id, spec=output_port_spec, mo...
477,374
def create_new_connection(src_module, src_port, dst_module, dst_port): # spec -> name, type, signature output_port_id = controller.id_scope.getNewId(Port.vtType) if type(src_port) == type(""): if ((src_port, 'output')) in local_port_specs: output_port_spec = local_port_specs[(src_port, 'output')] else: output_port_spec...
def create_new_connection(src_module, src_port, dst_module, dst_port): # spec -> name, type, signature output_port_id = controller.id_scope.getNewId(Port.vtType) if type(src_port) == type(""): if ((src_port, 'output')) in local_port_specs: output_port_spec = local_port_specs[(src_port, 'output')] else: output_port_spec...
477,375
def __init__(self, param, parent=None): QtGui.QWidget.__init__(self, parent) ConstantWidgetMixin.__init__(self, param.strValue) if not param.strValue: self._tf = copy.copy(default_tf) else: self._tf = pickle.loads(param.strValue.decode('hex')) self._scene = TransferFunctionScene(self._tf, self) layout = QtGui.QVBoxLayo...
def __init__(self, param, parent=None): QtGui.QWidget.__init__(self, parent) ConstantWidgetMixin.__init__(self, param.strValue) if not param.strValue: self._tf = copy.copy(default_tf) else: self._tf = TransferFunction.parse(param.strValue) self._scene = TransferFunctionScene(self._tf, self) layout = QtGui.QVBoxLayout()...
477,376
def __init__(self, param, parent=None): QtGui.QWidget.__init__(self, parent) ConstantWidgetMixin.__init__(self, param.strValue) if not param.strValue: self._tf = copy.copy(default_tf) else: self._tf = pickle.loads(param.strValue.decode('hex')) self._scene = TransferFunctionScene(self._tf, self) layout = QtGui.QVBoxLayo...
def __init__(self, param, parent=None): QtGui.QWidget.__init__(self, parent) ConstantWidgetMixin.__init__(self, param.strValue) if not param.strValue: self._tf = copy.copy(default_tf) else: self._tf = pickle.loads(param.strValue.decode('hex')) self._scene = TransferFunctionScene(self._tf, self) layout = QtGui.QVBoxLayo...
477,377
def contents(self): return pickle.dumps(self._scene.get_transfer_function()).encode('hex')
def contents(self): return self._scene.get_transfer_function().serialize()
477,378
def setContents(self, strValue, silent=True): if not strValue: self._tf = copy.copy(default_tf) else: self._tf = pickle.loads(strValue.decode('hex')) self._scene.reset_transfer_function(self._tf) if not silent: self.update_parent()
def setContents(self, strValue, silent=True): if not strValue: self._tf = copy.copy(default_tf) else: self._tf = TransferFunction.parse(strValue) self._scene.reset_transfer_function(self._tf) if not silent: self.update_parent()
477,379
def compute(self): tf = self.getInputFromPort('TransferFunction') new_tf = copy.copy(tf) if self.hasInputFromPort('Input'): port = self.getInputFromPort('Input') algo = port.vtkInstance.GetProducer() output = algo.GetOutput(port.vtkInstance.GetIndex()) (new_tf._min_range, new_tf._max_range) = output.GetScalarRange() el...
def compute(self): tf = self.getInputFromPort('TransferFunction') new_tf = copy.copy(tf) if self.hasInputFromPort('Input'): port = self.getInputFromPort('Input') algo = port.vtkInstance.GetProducer() output = algo.GetOutput(port.vtkInstance.GetIndex()) (new_tf._min_range, new_tf._max_range) = output.GetScalarRange() el...
477,380
def SetRenderWindow(self,w): """ SetRenderWindow(w: vtkRenderWindow) Set a new render window to QVTKWidget and initialize the interactor as well """ if w == self.mRenWin: return if self.mRenWin: if system.systemType!='Linux': self.mRenWin.SetInteractor(None) if self.mRenWin.GetMapped(): self.mRenWin.Finalize() self....
def SetRenderWindow(self,w): """ SetRenderWindow(w: vtkRenderWindow) Set a new render window to QVTKWidget and initialize the interactor as well """ if w == self.mRenWin: return if self.mRenWin: if system.systemType!='Linux': self.mRenWin.SetInteractor(None) if self.mRenWin.GetMapped(): self.mRenWin.Finalize() self....
477,381
def path_exists_and_not_empty(path): """path_exists_and_not_empty(path:str) -> boolean Returns True if given path exists and it's not empty, otherwise returns False. """ if os.path.exists(path): for root, dirs, file_names in os.walk(path): break if len(file_names) > 0: return True return False
def def download(url,filename): """download(url:string, filename: string) -> Boolean Downloads a binary file from url to filename and returns True (success) or False (failure) """ try: furl = urllib2.urlopen(url) f = file(filename,'wb') f.write(furl.read()) f.close() return True except: return False def download_as...
477,382
def build_vistrails_cmd_line(path_to_vistrails, host, db_name, vt_id, version, port, path_to_figures): """ build_vistrails_cmd_line(path_to_vistrails: str, host: str, db_name: str, vt_id: str, version: str, path_to_figures: str) -> str Build the command line to run vistrails with the given parameters. """ cmd_line = 'p...
def build_vistrails_cmd_line(path_to_vistrails, host, db_name, vt_id, version, port, path_to_figures, pdf=False, graph=False): """ build_vistrails_cmd_line(path_to_vistrails: str, host: str, db_name: str, vt_id: str, version: str, path_to_figures: str) -> str Build the command line to run vistrails with the given param...
477,383
def build_vistrails_cmd_line(path_to_vistrails, host, db_name, vt_id, version, port, path_to_figures): """ build_vistrails_cmd_line(path_to_vistrails: str, host: str, db_name: str, vt_id: str, version: str, path_to_figures: str) -> str Build the command line to run vistrails with the given parameters. """ cmd_line = 'p...
def build_vistrails_cmd_line(path_to_vistrails, host, db_name, vt_id, version, port, path_to_figures): """ build_vistrails_cmd_line(path_to_vistrails: str, host: str, db_name: str, vt_id: str, version: str, path_to_figures: str) -> str Build the command line to run vistrails with the given parameters. """ cmd_line = 'p...
477,384
def build_vistrails_cmd_line(path_to_vistrails, host, db_name, vt_id, version, port, path_to_figures): """ build_vistrails_cmd_line(path_to_vistrails: str, host: str, db_name: str, vt_id: str, version: str, path_to_figures: str) -> str Build the command line to run vistrails with the given parameters. """ cmd_line = 'p...
def build_vistrails_cmd_line(path_to_vistrails, host, db_name, vt_id, version, port, path_to_figures): """ build_vistrails_cmd_line(path_to_vistrails: str, host: str, db_name: str, vt_id: str, version: str, path_to_figures: str) -> str Build the command line to run vistrails with the given parameters. """ cmd_line = 'p...
477,385
def generate_latex(host, db_name, vt_id, version, port, tag, execute, showspreadsheetonly, path_to_figures, graphics_options): """generate_latex(host: str, db_name:str, vt_id: str, version: str, port:str, tag: str, execute: bool, showspreadsheetonly: bool, path_to_figures: str, graphics_options: str) -> str This gener...
def generate_latex(download_url, host, db_name, vt_id, version, port, tag, execute, showspreadsheetonly, path_to_figures, graphics_options): """generate_latex(host: str, db_name:str, vt_id: str, version: str, port:str, tag: str, execute: bool, showspreadsheetonly: bool, path_to_figures: str, graphics_options: str) -> ...
477,386
def generate_latex(host, db_name, vt_id, version, port, tag, execute, showspreadsheetonly, path_to_figures, graphics_options): """generate_latex(host: str, db_name:str, vt_id: str, version: str, port:str, tag: str, execute: bool, showspreadsheetonly: bool, path_to_figures: str, graphics_options: str) -> str This gener...
def generate_latex(host, db_name, vt_id, version, port, tag, execute, showspreadsheetonly, path_to_figures, graphics_options): """generate_latex(host: str, db_name:str, vt_id: str, version: str, port:str, tag: str, execute: bool, showspreadsheetonly: bool, path_to_figures: str, graphics_options: str) -> str This gener...
477,387
def generate_latex(host, db_name, vt_id, version, port, tag, execute, showspreadsheetonly, path_to_figures, graphics_options): """generate_latex(host: str, db_name:str, vt_id: str, version: str, port:str, tag: str, execute: bool, showspreadsheetonly: bool, path_to_figures: str, graphics_options: str) -> str This gener...
def generate_latex(host, db_name, vt_id, version, port, tag, execute, showspreadsheetonly, path_to_figures, graphics_options): """generate_latex(host: str, db_name:str, vt_id: str, version: str, port:str, tag: str, execute: bool, showspreadsheetonly: bool, path_to_figures: str, graphics_options: str) -> str This gener...
477,388
def generate_latex(host, db_name, vt_id, version, port, tag, execute, showspreadsheetonly, path_to_figures, graphics_options): """generate_latex(host: str, db_name:str, vt_id: str, version: str, port:str, tag: str, execute: bool, showspreadsheetonly: bool, path_to_figures: str, graphics_options: str) -> str This gener...
def generate_latex(host, db_name, vt_id, version, port, tag, execute, showspreadsheetonly, path_to_figures, graphics_options): """generate_latex(host: str, db_name:str, vt_id: str, version: str, port:str, tag: str, execute: bool, showspreadsheetonly: bool, path_to_figures: str, graphics_options: str) -> str This gener...
477,389
def generate_latex(host, db_name, vt_id, version, port, tag, execute, showspreadsheetonly, path_to_figures, graphics_options): """generate_latex(host: str, db_name:str, vt_id: str, version: str, port:str, tag: str, execute: bool, showspreadsheetonly: bool, path_to_figures: str, graphics_options: str) -> str This gener...
def generate_latex(host, db_name, vt_id, version, port, tag, execute, showspreadsheetonly, path_to_figures, graphics_options): """generate_latex(host: str, db_name:str, vt_id: str, version: str, port:str, tag: str, execute: bool, showspreadsheetonly: bool, path_to_figures: str, graphics_options: str) -> str This gener...
477,390
def run_vistrails_locally(path_to_vistrails, host, db_name, vt_id, version, port, path_to_figures, build_always=False, tag='', execute=False, showspreadsheetonly=False): """run_vistrails_locally(path_to_vistrails: str, host: str, db_name: str, vt_id: str, version: str, port: str, path_to_figures: str) -> tuple(bool, st...
def run_vistrails_locally(path_to_vistrails, host, db_name, vt_id, version, port, path_to_figures, build_always=False, tag='', execute=False, showspreadsheetonly=False, pdf=False): """run_vistrails_locally(path_to_vistrails: str, host: str, db_name: str, vt_id: str, version: str, port: str, path_to_figures: str) -> tup...
477,391
def run_vistrails_locally(path_to_vistrails, host, db_name, vt_id, version, port, path_to_figures, build_always=False, tag='', execute=False, showspreadsheetonly=False): """run_vistrails_locally(path_to_vistrails: str, host: str, db_name: str, vt_id: str, version: str, port: str, path_to_figures: str) -> tuple(bool, st...
def run_vistrails_locally(path_to_vistrails, host, db_name, vt_id, version, port, path_to_figures, build_always=False, tag='', execute=False, showspreadsheetonly=False): """run_vistrails_locally(path_to_vistrails: str, host: str, db_name: str, vt_id: str, version: str, port: str, path_to_figures: str) -> tuple(bool, st...
477,392
def run_vistrails_remotely(path_to_vistrails, host, db_name, vt_id, version, port, path_to_figures, build_always=False, tag='', execute=False, showspreadsheetonly=False, pdf=False): """run_vistrails_remotely(path_to_vistrails: str, host: str, db_name: str, vt_id: str, version: str, port: str, path_to_figures: str, buil...
def get_vt_graph_locally(path_to_vistrails, host, db_name, vt_id, port, path_to_figures, build_always=False, pdf=False): """get_vt_graph_locally(path_to_vistrails: str, host: str, db_name: str, vt_id: str, port: str, path_to_figures: str, build_always: bool, pdf:bool) -> tuple(bool, str) Run vistrails for loading a vis...
477,393
def run_vistrails_remotely(path_to_vistrails, host, db_name, vt_id, version, port, path_to_figures, build_always=False, tag='', execute=False, showspreadsheetonly=False, pdf=False): """run_vistrails_remotely(path_to_vistrails: str, host: str, db_name: str, vt_id: str, version: str, port: str, path_to_figures: str, buil...
def run_vistrails_remotely(path_to_vistrails, host, db_name, vt_id, version, port, path_to_figures, build_always=False, tag='', execute=False, showspreadsheetonly=False, pdf=False): """run_vistrails_remotely(path_to_vistrails: str, download_url: str host: str, db_name: str, vt_id: str, version: str, port: str, path_to_...
477,394
def run_vistrails_remotely(path_to_vistrails, host, db_name, vt_id, version, port, path_to_figures, build_always=False, tag='', execute=False, showspreadsheetonly=False, pdf=False): """run_vistrails_remotely(path_to_vistrails: str, host: str, db_name: str, vt_id: str, version: str, port: str, path_to_figures: str, buil...
def run_vistrails_remotely(path_to_vistrails, host, db_name, vt_id, version, port, path_to_figures, build_always=False, tag='', execute=False, showspreadsheetonly=False, pdf=False): """run_vistrails_remotely(path_to_vistrails: str, host: str, db_name: str, vt_id: str, version: str, port: str, path_to_figures: str, buil...
477,395
def download(url,filename): try: furl = urllib2.urlopen(url) f = file(filename,'wb') f.write(furl.read()) f.close() return True except: return False
def download(url,filename): try: furl = urllib2.urlopen(url) f = file(filename,'wb') f.write(furl.read()) f.close() return True except: return False
477,396
def download_as_text(url): try: furl = urllib2.urlopen(url) s = furl.read() return s except: return None
def download_as_text(url): try: furl = urllib2.urlopen(url) s = furl.read() return s except: return None
477,397
def download_as_text(url): try: furl = urllib2.urlopen(url) s = furl.read() return s except: return None
def download_as_text(url): try: furl = urllib2.urlopen(url) s = furl.read() return s except: return None
477,398
def download_as_text(url): try: furl = urllib2.urlopen(url) s = furl.read() return s except: return None
def download_as_text(url): try: furl = urllib2.urlopen(url) s = furl.read() return s except: return None
477,399