Changed how the selection list works. CategoryDatasets can be dragged down to

the selection list, and will then be converted to Selections.
This commit is contained in:
2006-09-08 18:25:03 +00:00
parent df7f98adec
commit e0ca48d4b3
5 changed files with 480 additions and 64 deletions

View File

@@ -2,7 +2,7 @@ import gtk
from system import dataset, logger, plots, workflow
#import geneontology
#import gostat
from scipy import array,randn,log
from scipy import array, randn, log, ones
import cPickle
import networkx
@@ -43,6 +43,7 @@ class TestWorkflow (workflow.Workflow):
save.add_function(DatasetSaveFunction())
self.add_stage(save)
class LoadAnnotationsFunction(workflow.Function):
def __init__(self):
@@ -112,9 +113,10 @@ class TestDataFunction(workflow.Function):
graph.add_edge(x, y, 3)
ds = dataset.GraphDataset(array(networkx.adj_matrix(graph)))
ds_plot = plots.NetworkPlot(ds)
cds = dataset.CategoryDataset(ones([3, 3]))
ds_scatter = plots.ScatterMarkerPlot(ds, ds, 'rows_0', 'rows_0', '0_1', '0_2')
return [X, ds, p, ds_plot, ds_scatter,p2]
return [X, ds, p, ds_plot, ds_scatter, p2, cds]
class SelectFunction(workflow.Function):
def __init__(self):