Doc-Strings und Type-Hinting

This commit is contained in:
2026-01-13 11:09:12 +01:00
parent 8507ca1afa
commit efd1b8c5fb
9 changed files with 235 additions and 135 deletions

View File

@@ -10,7 +10,7 @@ from numpy.typing import NDArray
# Panou 2013
def gha2_num(ell: EllipsoidTriaxial, beta_1: float, lamb_1: float, beta_2: float, lamb_2: float,
n: int = 16000, epsilon: float = 10**-12, iter_max: int = 30, all_points: bool = False
) -> Tuple[float, float, float]| Tuple[float, float, float, NDArray, NDArray]:
) -> Tuple[float, float, float] | Tuple[float, float, float, NDArray, NDArray]:
"""
:param ell: triaxiales Ellipsoid
@@ -252,7 +252,7 @@ def gha2_num(ell: EllipsoidTriaxial, beta_1: float, lamb_1: float, beta_2: float
else:
return alpha_1, alpha_2, s
else: # lamb_1 == lamb_2
else: # lamb_1 == lamb_2
N = n
dbeta = beta_2 - beta_1