From d6298a2d992670f3f9f03ba6fa5b82f8b4f80361 Mon Sep 17 00:00:00 2001 From: einarr Date: Thu, 21 Jun 2007 10:26:35 +0000 Subject: [PATCH] Ensures that the GO is only loaded once. --- workflows/gobrowser.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/workflows/gobrowser.py b/workflows/gobrowser.py index 5768ac4..aca0872 100644 --- a/workflows/gobrowser.py +++ b/workflows/gobrowser.py @@ -213,6 +213,9 @@ class LoadGOFunction(workflow.Function): def run(self): global go + if go: + return + go = geneontology.read_default_go() browser = GeneOntologyTree(go) label = gtk.Label('_Gene Ontology')