|
[Rivet-svn] r3448 - trunk/binblackhole at projects.hepforge.org blackhole at projects.hepforge.orgMon Oct 17 21:35:36 BST 2011
Author: buckley Date: Mon Oct 17 21:35:36 2011 New Revision: 3448 Log: Add 'E' to the sci notation regex Modified: trunk/bin/make-plots Modified: trunk/bin/make-plots ============================================================================== --- trunk/bin/make-plots Mon Oct 17 21:34:22 2011 (r3447) +++ trunk/bin/make-plots Mon Oct 17 21:35:36 2011 (r3448) @@ -962,7 +962,7 @@ out = "" out += ('\n%\n% Special\n%\n') import re - regex = re.compile(r'^(.*?)(\\physics[xy]?coor)\(\s?([0-9\.e+-]+)\s?,\s?([0-9\.e+-]+)\s?\)(.*)') + regex = re.compile(r'^(.*?)(\\physics[xy]?coor)\(\s?([0-9\.eE+-]+)\s?,\s?([0-9\.eE+-]+)\s?\)(.*)') # TODO: More precise number string matching, something like this: # num = r"-?[0-9]*(?:\.[0-9]*)(?:[eE][+-]?\d+]" # regex = re.compile(r'^(.*?)(\\physics[xy]?coor)\(\s?(' + num + ')\s?,\s?(' + num + ')\s?\)(.*)')
More information about the Rivet-svn mailing list |