1. Georg Brandl
  2. miezelib

Commits

Georg Brandl  committed 102ff9d

Recognize plus/minus numbers better.

  • Participants
  • Parent commits 705f5f5
  • Branches default

Comments (0)

Files changed (1)

File miezdata.py

View file
  • Ignore whitespace
             m.append(map(try_float, line.split()))
     return m, c
 
-pm_re = re.compile(r'([0-9e.]+)\s+\+/-\s+([0-9e.]+)')
+pm_re = re.compile(r'-?([0-9e.]+)\s+\+/-\s+([0-9e.]+)')
 vv_re = re.compile(r'# ([a-zA-Z0-9_]+)\s+is at\s+([0-9e.]+)')
 
 _single_cache = {}