24def compare_results(egslst, inp_name):
28 "initialized": float(re.findall(
"Total Energy Initialized\s*:(.*?) MeV", egslst,re.S)[0]),
29 "escaping_source": float(re.findall(
"Total Energy Escaping Sources\s*:(.*?) MeV", egslst,re.S)[0]),
30 "escaping_geom": float(re.findall(
"Total Energy Escaping Geometry\s*:(.*?) MeV", egslst,re.S)[0]),
34 for etype, expected
in list(expected_results.items()):
35 actual = actual_results[etype]
36 if not values_close(actual, expected, max_percent_diff=0.01):
40 return all_good, actual_results, expected_results