19def compare_results(egslst, inp_name):
21 gold_standard = os.path.join(os.path.dirname(os.path.abspath(__file__)),
"gold_standard.3ddose")
22 run_doses_file = inp_name+
".phantom.3ddose"
25 gold_doses = read3ddose(gold_standard)[
'doses'][:5]
26 run_doses = read3ddose(run_doses_file)[
'doses'][:5]
28 close = [values_close(g, r, 0.005)
for g, r
in zip(gold_doses, run_doses)]
31 return all(close), run_doses, gold_doses