Added a dummy for the t-test function. Will be updated when I have access to my
office computer tomorrow.
This commit is contained in:
parent
b637a5badc
commit
884804c49a
|
@ -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
|
||||
|
||||
|
|
Reference in New Issue