From 884804c49a55e65dfb976bff716ae34ce395e398 Mon Sep 17 00:00:00 2001 From: einarr Date: Thu, 28 Jun 2007 21:48:13 +0000 Subject: [PATCH] Added a dummy for the t-test function. Will be updated when I have access to my office computer tomorrow. --- workflows/gobrowser.py | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/workflows/gobrowser.py b/workflows/gobrowser.py index a3abe38..662bf08 100644 --- a/workflows/gobrowser.py +++ b/workflows/gobrowser.py @@ -333,14 +333,34 @@ class GOWeightFunction(workflow.Function): return options -class Options(dict): +class TTestOptionsDialog(workflow.OptionsDialog): + + def __init__(self, data, options): + workflow.OptionsDialog.__init__(self, data, options, + ['X', 'Categories']) + +class TTestFunction(workflow.Function): def __init__(self): - dict.__init__(self) + workflow.Function.__init__(self, 't-test', 't-test') + self.options = TTestOptions() + + def run(self, x, categories): + self.show_gui(x, categories) + + def show_gui(self, x, categories): + dlg = TTestOptionsDialog([x, categories], self.options) + dlg.run() -class GOWeightOptions(Options): +class TTestOptions(workflow.Options): + def __init__(self): - Options.__init__(self) + workflow.Options.__init__(self) + + +class GOWeightOptions(workflow.Options): + def __init__(self): + workflow.Options.__init__(self) self['similarity_threshold'] = 0.0 self['rank_threshold'] = 0.0