21def compare_results(egslst, inp_name):
23 gold_standard = read3ddose(os.path.join(os.path.dirname(os.path.abspath(__file__)),
"gold_standard.3ddose"))
24 run_doses = read3ddose(inp_name+
".phantom.3ddose")
28 dose_diff = [abs(a-b)/a
for a, b
in dose_pairs]
30 doses_close = max(dose_diff) < 0.01
32 rd, gs = list(zip(*dose_pairs))
33 return doses_close, rd, gs