A bite angle is considered 'inverted' if it exceeds 180°. Because this cannot be detected automatically from coordinates alone, you must provide a reference to determine the correct orientation.
You can supply ref_atoms (a list of atom indices). The class will automatically construct a ref_vector pointing from the metal atom to the geometric mean of these reference atoms. This vector defines the 'direction' of the ligand.
Use the .inverted property to check if the angle was detected as inverted.
from morfeus import BiteAngle, read_xyz
elements, coordinates = read_xyz("bpy_inverted.xyz")
# Use ref_atoms to resolve the orientation for angles > 180°
ba = BiteAngle(coordinates, 1, 2, 3, ref_atoms=[4, 17])
print(ba.angle) # Returns the angle (e.g., 198.39...)
print(ba.inverted) # Returns True if the angle is inverted