|
[Rivet-svn] r1670 - trunk/binblackhole at projects.hepforge.org blackhole at projects.hepforge.orgThu Jul 9 12:59:17 BST 2009
Author: buckley Date: Thu Jul 9 12:59:17 2009 New Revision: 1670 Log: Passing num-threads type spec as a string rather than the conversion function, for Py 2.3 compatibility Modified: trunk/bin/make-plots Modified: trunk/bin/make-plots ============================================================================== --- trunk/bin/make-plots Wed Jul 8 12:25:53 2009 (r1669) +++ trunk/bin/make-plots Thu Jul 9 12:59:17 2009 (r1670) @@ -1497,7 +1497,7 @@ ## Parse command line options from optparse import OptionParser, OptionGroup parser = OptionParser(usage=msg) - parser.add_option("-n", "--num-threads", dest="NUM_THREADS", type=int, + parser.add_option("-n", "--num-threads", dest="NUM_THREADS", type="int", default=numcores, help="max number of threads to be used [%s]" % numcores) parser.add_option("--palatino", dest="OUTPUT_FONT", action="store_const", const="PALATINO", default="PALATINO", help="Use Palatino as font (default).")
More information about the Rivet-svn mailing list |