diff options
author | Sam Ockman | 2012-06-10 06:02:11 -0400 |
---|---|---|
committer | Sam Ockman | 2012-06-10 06:02:11 -0400 |
commit | be2baf17cba5468d901f8e2d8818fe558e2ee5fe (patch) | |
tree | 93dc79e3d1a6d661001482f5bf64f9b7d97858ae | |
parent | 893164a15a18030715167c45f0d114d13e37aadb (diff) | |
download | genenetwork2-be2baf17cba5468d901f8e2d8818fe558e2ee5fe.tar.gz |
Debug messages for trying to understand code
-rwxr-xr-x | wqflask/basicStatistics/BasicStatisticsFunctions.py | 4 | ||||
-rwxr-xr-x | wqflask/wqflask/show_trait/DataEditingPage.py | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/wqflask/basicStatistics/BasicStatisticsFunctions.py b/wqflask/basicStatistics/BasicStatisticsFunctions.py index d2584bdd..74784853 100755 --- a/wqflask/basicStatistics/BasicStatisticsFunctions.py +++ b/wqflask/basicStatistics/BasicStatisticsFunctions.py @@ -4,6 +4,7 @@ from __future__ import print_function from math import * #import piddle as pid #import os +import traceback from pprint import pformat as pf @@ -18,6 +19,7 @@ from base import webqtlConfig from dbFunction import webqtlDatabaseFunction def basicStatsTable(vals, trait_type=None, cellid=None, heritability=None): + print("basicStatsTable called - len of vals", len(vals)) st = {} # This is the dictionary where we'll put everything for the template valsOnly = [] dataXZ = vals[:] @@ -48,6 +50,8 @@ def basicStatsTable(vals, trait_type=None, cellid=None, heritability=None): at75 = stats.percentile(75) at25 = stats.percentile(25) + print("should get a stack") + traceback.print_stack() print("Interquartile:", at75 - at25) #tbl.append(HT.TR(HT.TD("Statistic",align="left", Class="fs14 fwb ffl b1 cw cbrb", width = 180), diff --git a/wqflask/wqflask/show_trait/DataEditingPage.py b/wqflask/wqflask/show_trait/DataEditingPage.py index d82c47d5..a496a919 100755 --- a/wqflask/wqflask/show_trait/DataEditingPage.py +++ b/wqflask/wqflask/show_trait/DataEditingPage.py @@ -175,6 +175,7 @@ class DataEditingPage(templatePage): else: pass # We'll get this part working later + print("Calling dispBasicStatistics") self.dispBasicStatistics(fd, thisTrait) #self.dispMappingTools(fd, title4Body, thisTrait) |