Commit e7f6b516 authored by Doak, Peter W's avatar Doak, Peter W
Browse files

Merge branch 'master' of code.ornl.gov:CNMS/CNMS_Computing_Resources

parents 2a91908e 63369ec8
......@@ -117,6 +117,10 @@ def read_output_influx(log):
for aindex, label in then_do:
the_value = (line.split())[aindex-1]
the_value = re.sub(r':',r'',the_value)
#case where vasp runs force into its error value
fmatch = re.search(r'([-\dEe\.]+)\[.*', the_value)
if fmatch:
the_value = fmatch.group(1)
print "{} {}".format(label, the_value)
influx_point = ("{},user_name={},code={},"
"job_name={},host={} value={} {}\n"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment