Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81406 - sandbox/variadic_templates/sandbox/slim/test
From: cppljevans_at_[hidden]
Date: 2012-11-17 15:50:22


Author: cppljevans
Date: 2012-11-17 15:50:21 EST (Sat, 17 Nov 2012)
New Revision: 81406
URL: http://svn.boost.org/trac/boost/changeset/81406

Log:
rename *plot.py to *filt.py to make name more meaningful
Removed:
   sandbox/variadic_templates/sandbox/slim/test/tuple_benchmark_plot.py
Text files modified:
   sandbox/variadic_templates/sandbox/slim/test/Makefile | 6 +++---
   sandbox/variadic_templates/sandbox/slim/test/tuple_benchmark_filt.py | 5 ++---
   2 files changed, 5 insertions(+), 6 deletions(-)

Modified: sandbox/variadic_templates/sandbox/slim/test/Makefile
==============================================================================
--- sandbox/variadic_templates/sandbox/slim/test/Makefile (original)
+++ sandbox/variadic_templates/sandbox/slim/test/Makefile 2012-11-17 15:50:21 EST (Sat, 17 Nov 2012)
@@ -24,9 +24,9 @@
 parse:#produces domain_range.pkl from $(OUT_BASENAME).txt
         $(PYTHON) tuple_benchmark_parserange.py $(OUT_BASENAME).txt
 
-.PHONY: plot
-plot: domain_range.pkl#produces filtered output from domain_range.pkl
- $(PYTHON) tuple_benchmark_plot.py domain_range.pkl
+.PHONY: filt
+filt: domain_range.pkl#produces filtered output from domain_range.pkl
+ $(PYTHON) tuple_benchmark_filt.py domain_range.pkl
 
 .PHONY: show
 show:#shows selected macro values.

Modified: sandbox/variadic_templates/sandbox/slim/test/tuple_benchmark_filt.py
==============================================================================
--- sandbox/variadic_templates/sandbox/slim/test/tuple_benchmark_filt.py (original)
+++ sandbox/variadic_templates/sandbox/slim/test/tuple_benchmark_filt.py 2012-11-17 15:50:21 EST (Sat, 17 Nov 2012)
@@ -1,11 +1,10 @@
 #!/usr/bin/env python
 ##Purpose:
-## Read pickle file containing plot data and plot it.
+## Read pickle file containing performance data
+## apply filter to it, print filtered data.
 ##===============================================
 from __future__ import print_function
 import sys, pickle
-import numpy as np
-import matplotlib.pyplot as plt
 from collections import namedtuple
 from print_domain_range import print_domain_range
 

Deleted: sandbox/variadic_templates/sandbox/slim/test/tuple_benchmark_plot.py
==============================================================================
--- sandbox/variadic_templates/sandbox/slim/test/tuple_benchmark_plot.py 2012-11-17 15:50:21 EST (Sat, 17 Nov 2012)
+++ (empty file)
@@ -1,40 +0,0 @@
-#!/usr/bin/env python
-##Purpose:
-## Read pickle file containing plot data and plot it.
-##===============================================
-from __future__ import print_function
-import sys, pickle
-import numpy as np
-import matplotlib.pyplot as plt
-from collections import namedtuple
-from print_domain_range import print_domain_range
-
-def main(argv):
- result = None
- if len(argv)>1:
- pkl_file_inp=open(argv[1],mode='rb')
- else:
- print("***expected input pickle filename as argv[1]")
- return 1
- (domain_names_lst,range_names_lst,domain_range_values)=pickle.load(pkl_file_inp)
- print(":domain_names_lst=",domain_names_lst)
- print(":range_names_lst=",range_names_lst)
- #print(":domain_range_values=")
- #print_domain_range(domain_range_values)
- domain_names_type=namedtuple('domain_names_indices',domain_names_lst)
- d_ndx=domain_names_type._make(range(len(domain_names_lst)))
- #print("domain_indices=",d_ndx)
- filt_dr=filter\
- ( lambda (d_lst,r_lst)
- : d_lst[d_ndx.compiler] == 'gcc4_8'
- and d_lst[d_ndx.TUPLE_SIZE] == 15
- , domain_range_values
- )
- print(":filt_dr=")
- print_domain_range(filt_dr)
- return result
-
-if __name__ == '__main__':
- ret = main(sys.argv)
- if ret is not None:
- sys.exit(ret)


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk