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

@@ -78,6 +78,10 @@ def gha1_num(ell: EllipsoidTriaxial, point: NDArray, alpha0: float, s: float, nu
if alpha1 < 0:
alpha1 += 2 * np.pi
_, _, h = ell.cart2geod(point1, "ligas3")
if h > 1e-5:
raise Exception("GHA1_num: explodiert, Punkt liegt nicht mehr auf dem Ellipsoid")
if all_points:
return point1, alpha1, werte
else: