It was a duplicate of the true_anomaly calculation already performed by cartesian_to_orbital_elements(). Added a note in old_tests for future refactor suggesting the replacement usage.