3A test for comparing the dose from sources with different source weighting and
4recyling on with calculations from when egs_brachy was in a known good state.
6Gold standard dose distribution was generated with egs_brachy and
15from eb_tests.utils import (compare_3ddose_files, doses_approx_equal,
16 extract_all_doses, read3ddose)
18EGSINP =
"variable_w_recycling.egsinp"
19TIME_LIMIT_S_PER_MHZ = 15/2993.
22BENCHMARK_DOSES = [(1.061E-13, 0.0001), (1.644E-13, 0.0001)]
27 gold_standard = os.path.join(os.path.dirname(os.path.abspath(__file__)),
"gold_standard.3ddose")
28 run_doses = inp_name+
".phantom.3ddose"
30 doses_close = compare_3ddose_files(
31 gold_standard, run_doses, max_percent_diff=0.0015)
33 return doses_close, read3ddose(run_doses), read3ddose(gold_standard)
compare_results(egslst, inp_name)