ENH: Add continuous HPI position calculation
FIX: Fix docstring
ENH: Better testing