3A test for comparing the dose from a "stepped source" (i.e. superposition mode
4with variable activity) with previous calculations made when egs_brachy was in
12from eb_tests.utils import (compare_3ddose_files, doses_approx_equal,
13 extract_all_doses, read3ddose)
15EGSINP =
"stepped.egsinp"
16TIME_LIMIT_S_PER_MHZ = 1000/2993.
20 return sorted(zip(dose1, dose2))[-NCOMPARE:]
24 gold_standard = read3ddose(os.path.join(os.path.dirname(os.path.abspath(__file__)),
"gold_standard.3ddose"))
25 run_doses = read3ddose(inp_name+
".phantom.3ddose")
29 dose_diff = [abs((a-b)/a)
for a, b
in dose_pairs]
31 doses_close = max(dose_diff) < 0.01
33 rd, gs = list(zip(*dose_pairs))
34 return doses_close, rd, gs
compare_results(egslst, inp_name)
get_n_highest_dose_pairs(dose1, dose2, n=NCOMPARE)