40 inp =
InputData(I=200, V=200, physics_option=
"full_CD_fission")
43 for k, v
in DEFAULTS.items():
44 got = inp.reactions.get(k)
45 check(f
"{k} loaded", got
is not None and abs(float(got) - float(v)) < 1e-9,
50 check(
"LoopEnergetics T* consumed",
51 abs(rr.loop_energetics.T_star_C - DEFAULTS[
"T_star_conv_C"]) < 1e-9,
52 rr.loop_energetics.T_star_C)
53 check(
"n_loop_min consumed", rr.n_loop_min == DEFAULTS[
"n_loop_min"],
57 f0 = rr.loop_energetics.Fhat_100_0
58 supp0 = int((rr.Gamma_uni > 0).sum())
59 inp.reactions[
"T_star_conv_C"] = 520.0
61 f1 = rr2.loop_energetics.Fhat_100_0
62 supp1 = int((rr2.Gamma_uni > 0).sum())
63 check(
"override T* shifts Fhat_100_0", abs(f1 - f0) > 1e-6, (f0, f1))
64 check(
"override T* shifts conversion support", supp1 != supp0, (supp0, supp1))
66 print(f
"\n{'ALL PASS' if not _fails else str(_fails) + ' FAILED'}")
67 return 1
if _fails
else 0