Commit 13a99580 authored by VIGNET Pierre's avatar VIGNET Pierre

Basal activated genes, now displays a window, even if no gens found

parent 8b866706
......@@ -357,8 +357,7 @@ class SCCWindow(object):
@param reporter: Classical reporter
@param parent: parent widget
"""
if not l_fsol:
return
self.emvc = emvc
self.reporter = reporter
......@@ -615,18 +614,25 @@ class BAGWindow(SCCWindow):
@param reporter: Classical reporter
@param parent: parent widget
"""
if l_fsol:
SCCWindow.__init__(self, l_fsol, emvc, reporter, parent)
self.window.set_title("Basal activated genes - "+self.emvc.model.name)
SCCWindow.__init__(self, l_fsol, emvc, reporter, parent)
self.window.set_title("Basal activated genes - "+self.emvc.model.name)
def display_info(self):
"""
???
"""
SCC_found = (len(self.l_solutions[0]) != 0)
# info label
info = self.wtree.get_widget("label_nbsol")
info.set_text(str(len(self.l_solutions))+" basal activated genes found")
if not SCC_found:
info.set_text("No basal activated genes found.")
return
else:
info.set_text(str(len(self.l_solutions)) + \
" basal activated genes found.")
self.frame_sol = self.wtree.get_widget("frame_sol")
# button frame
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment