Exceptions einheitlich

This commit is contained in:
2026-02-07 19:34:54 +01:00
parent 49d03786dc
commit 322ac94299
8 changed files with 153 additions and 250 deletions

View File

@@ -282,7 +282,7 @@ def gha2_num(
if (best is None) or (s_quick < best[0]):
best = (s_quick, sol)
if best is None:
raise RuntimeError("Keine Startwert-Variante konvergiert (lambda-Fall).")
raise RuntimeError("GHA2_num: Keine Startwert-Variante konvergiert (lambda-Fall)")
beta_p0_sol = best[1]
beta_p0 = float(beta_p0_sol)
@@ -362,7 +362,7 @@ def gha2_num(
break
if abs(Y3_end) < 1e-20:
raise RuntimeError("Abbruch (Ableitung ~ 0) im beta-Fall.")
raise RuntimeError("GHA2_num: Ableitung ~ 0 im beta-Fall")
step = delta / Y3_end
step = np.clip(step, -1.0, 1.0)