Skip to content

Instantly share code, notes, and snippets.

@meling
Created May 20, 2015 08:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meling/dd2d90d7f5cf2dc6605a to your computer and use it in GitHub Desktop.
Save meling/dd2d90d7f5cf2dc6605a to your computer and use it in GitHub Desktop.
import re
#other code...
match = re.search('<=ips tic 2 acu/(ps.+?) value', line)
if match:
key = match.group(1)
nxtLine = f.readline()
value = ExtractPval(nxtLine)
if not data.has_key(key):
data[key]=[]
data[key].append(value)
line = f.readline()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment