Verified Commit bf953a99 authored by Mohcine Chraibi's avatar Mohcine Chraibi
Browse files

adapt test to new flow file

parent 3ecfb9b0
Pipeline #21762 passed with stages
in 9 minutes and 20 seconds
......@@ -15,7 +15,7 @@ def runtest(inifile, trajfile):
failure = 0
ids, outflow = get_outflow(inifile)
for (i, o) in zip(ids, outflow):
filename = "flow_exit_id_%d_rate_%.2f.txt"%(i, o)
filename = "flow_exit_id_%d_rate_%.2f_%s.txt"%(i, o, os.path.basename(trajfile).split(".")[0])
if not os.path.exists(filename):"ERROR: can not find statistics file %s"%filename)
......@@ -31,7 +31,7 @@ def runtest(inifile, trajfile):
if abs(J-o) > tolerance:
failure = 1"Plot to flow.png")
if failure:"flow from statistics files does not much expected flow from inifile")
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