modify interaction, fix use of global variables

This commit is contained in:
2024-03-22 15:28:14 +01:00
parent 762b857720
commit 483fd93f42
5 changed files with 151 additions and 181 deletions

3
src/lib/utils.py Normal file → Executable file
View File

@@ -10,7 +10,8 @@ def rot2D(ang):
def princ_angle(ang):
"""
Return the principal angle in the 0° to 360° quadrant.
Return the principal angle in the 0° to 180° quadrant as PA is always
defined at p/m 180°.
"""
if not isinstance(ang, np.ndarray):
A = np.array([ang])