Changeset 1527:66a207e0663b in orange-bioinformatics for widgets/OWGeneMania.py


Ignore:
Timestamp:
01/24/12 11:14:41 (2 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
9509b9b9a75f48f53cd2bb89d175cd2ee57f75f5
Message:

Now using Orange.network.Graph.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • widgets/OWGeneMania.py

    r1462 r1527  
    55from OWWidget import * 
    66import OWGUI 
    7 import orngNetwork 
    87import obiGeneMania 
     8import Orange 
    99 
    1010import os, sys 
     
    7171         
    7272        self.inputs = [("Input Genes", ExampleTable, self.setData)] 
    73         self.outputs = [("Network", orngNetwork.Network, Default), ("Items", ExampleTable)] 
     73        self.outputs = [("Network", Orange.network.Graph, Default), ("Items", ExampleTable)] 
    7474         
    7575        self.serverAddress = obiGeneMania.DEFAULT_SERVER 
     
    245245            dom = obiGeneMania.minidom.parseString(xml) 
    246246            net = obiGeneMania.parse(dom) 
    247             items = net.items 
     247            items = net.items() 
    248248        except Exception, ex: 
    249249            self.error(0, "Failed to retrieve network from server!\n" + str(ex)) 
Note: See TracChangeset for help on using the changeset viewer.