aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/trait.py
diff options
context:
space:
mode:
authorLei Yan2013-06-11 23:24:38 +0000
committerLei Yan2013-06-11 23:24:38 +0000
commit3b047d589fa89ddd9aff852d4f2a00c580eb7243 (patch)
tree09d236010018ac536a9b6c7ab7f36806d0eeb2de /wqflask/base/trait.py
parent466be48f92d4943995c7a3e7bcb9fd1efd775bf6 (diff)
downloadgenenetwork2-3b047d589fa89ddd9aff852d4f2a00c580eb7243.tar.gz
Put trait info for correlation results page into a dictionary instead
of storing list of GeneralTrait objects Added print statements to track memory usage
Diffstat (limited to 'wqflask/base/trait.py')
-rwxr-xr-xwqflask/base/trait.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py
index 5fde114f..53f41779 100755
--- a/wqflask/base/trait.py
+++ b/wqflask/base/trait.py
@@ -23,7 +23,7 @@ class GeneralTrait(object):
"""
def __init__(self, **kw):
- print("in GeneralTrait")
+ #print("in GeneralTrait")
self.dataset = kw.get('dataset') # database name
self.name = kw.get('name') # Trait ID, ProbeSet ID, Published ID, etc.
self.cellid = kw.get('cellid')
@@ -269,7 +269,7 @@ class GeneralTrait(object):
escape(self.dataset.name),
escape(self.name))
traitInfo = g.db.execute(query).fetchone()
- print("traitInfo is: ", pf(traitInfo))
+ #print("traitInfo is: ", pf(traitInfo))
#XZ, 05/08/2009: We also should use Geno.Id to find marker instead of just using Geno.Name
# to avoid the problem of same marker name from different species.
elif self.dataset.type == 'Geno':
@@ -287,7 +287,7 @@ class GeneralTrait(object):
escape(self.dataset.name),
escape(self.name))
traitInfo = g.db.execute(query).fetchone()
- print("traitInfo is: ", pf(traitInfo))
+ #print("traitInfo is: ", pf(traitInfo))
else: #Temp type
query = """SELECT %s FROM %s WHERE Name = %s
""" % (string.join(self.dataset.display_fields,','),