docs(rapport): the price threshold as per cent above the model's path in the summaries and the conclusion

A derived number per solution and scenario, (k - 1) * 100, replaces
'1,068 times as high' with '7 % above' where a reader meets it first.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Kjell Tore Guttormsen 2026-11-14 22:14:13 +01:00
commit 2b20f81152
Signed by: ktg
SSH key fingerprint: SHA256:JakMjO6FTBBzN0Bhfj9saOoEjaFxlSdYuZQQpM/lF9Q
7 changed files with 19 additions and 10 deletions

View file

@ -258,6 +258,14 @@ def _pris(fil: Any, tall: dict[str, Tall], ut: Path) -> None: # noqa: ANN401
vist="over søkegrensen" if p["over_maks"] else "finnes ikke",
)
tall[f"{nokkel}.k"] = k
if p["k"] is not None:
# How far above the model's price path the threshold lies, in per cent.
tall[f"{nokkel}.pst-over"] = avledet(
(p["k"] - 1.0) * 100.0,
0,
FIL,
f"(k - 1) * 100 for pristerskler.{losning}.{scenario}.k",
)
innenfor = _ord(fra_fil(fil, FIL, (*sti, "innenfor_kontraktsprisene"), "tekst"))
tall[f"{nokkel}.innenfor"] = innenfor
andel = fra_fil(fil, FIL, (*sti, "andel_innenfor"), "pst", 1)