r87281 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87280‎ | r87281 | r87282 >
Date:19:18, 2 May 2011
Author:rfaulk
Status:deferred
Tags:
Comment:
- Added 'CampaignReporting' which is currently a shell for reaying results from 'CampaignReportingLoader' for the moment
Modified paths:
  • /trunk/fundraiser-statistics/fundraiser-scripts/classes/DataReporting.py (modified) (history)

Diff [purge]

Index: trunk/fundraiser-statistics/fundraiser-scripts/classes/DataReporting.py
@@ -84,7 +84,7 @@
8585 if kwargs[key] == 'campaign_interval':
8686 self._data_loader_ = DL.CampaignIntervalReportingLoader()
8787
88 - print self._data_loader_.__str__
 88+ # print self._data_loader_.__str__
8989
9090 """
9191
@@ -1157,7 +1157,7 @@
11581158 """
11591159 def run(self, start_time, end_time, interval, query_type, metric_name, campaign, labels):
11601160
1161 - print '\nGenerating ' + query_type +', start and end times are: ' + start_time + ' - ' + end_time +' ... \n'
 1161+ # print '\nGenerating ' + query_type +', start and end times are: ' + start_time + ' - ' + end_time +' ... \n'
11621162
11631163 """ Execute the query that generates interval reporting data """
11641164 return_val = self._data_loader_.run_query(start_time, end_time, interval, query_type, metric_name, campaign)
@@ -1165,7 +1165,6 @@
11661166 times = return_val[1]
11671167
11681168 """ Select only the specified item keys """
1169 - print counts.keys()
11701169 if len(self._item_keys_) > 0:
11711170 counts = self.select_metric_keys(counts)
11721171 times = self.select_metric_keys(times)
@@ -1248,7 +1247,7 @@
12491248 if kwargs[key] == 't_test':
12501249 self._hypothesis_test_ = HT.TTest()
12511250
1252 - print self._hypothesis_test_.__str__
 1251+ # print self._hypothesis_test_.__str__
12531252
12541253 self._data_loader_ = DL.HypothesisTestLoader()
12551254 DataReporting.__init__(self, **kwargs)
@@ -1454,4 +1453,66 @@
14551454 self.print_metrics(fname, title, means_1, means_2, std_devs_1, std_devs_2, times_indices, labels, test_call)
14561455
14571456 return
1458 -
\ No newline at end of file
 1457+
 1458+
 1459+
 1460+
 1461+class CampaignReporting(DataReporting):
 1462+
 1463+ """
 1464+
 1465+ Constructor for confidence reporting class
 1466+
 1467+ INPUT:
 1468+
 1469+
 1470+
 1471+
 1472+ """
 1473+ def __init__(self, **kwargs):
 1474+
 1475+ self._data_loader_ = DL.CampaignReportingLoader()
 1476+ DataReporting.__init__(self, **kwargs)
 1477+
 1478+
 1479+
 1480+
 1481+
 1482+ """
 1483+ Describes how to run a report !! MODIFY !!
 1484+ """
 1485+ def usage(self):
 1486+
 1487+ print ''
 1488+
 1489+ return
 1490+
 1491+ """
 1492+ Print in Tabular form the means and standard deviation of each group over each
 1493+ interval
 1494+
 1495+ INPUT:
 1496+
 1497+ RETURN:
 1498+
 1499+ """
 1500+ def print_metrics(self):
 1501+
 1502+ return
 1503+
 1504+
 1505+ """
 1506+ Executes the test reporting
 1507+
 1508+ INPUT:
 1509+
 1510+ RETURN:
 1511+
 1512+ """
 1513+ def run(self, query_type, params):
 1514+
 1515+ data = self._data_loader_.run_query(start_time, end_time, interval, query_type, metric_name, campaign)
 1516+
 1517+ return
 1518+
 1519+
\ No newline at end of file

Status & tagging log