galpy.util.conversion.physical_compatible

galpy.util.conversion.physical_compatible(obj: Any, other_obj: Any) bool[source]

Test whether the velocity and length units for converting between physical and internal units are compatible for two galpy objects.

Parameters:
  • obj (galpy object or list of such objects) – A galpy object or list of such objects (e.g., a Potential, list of Potentials, Orbit, actionAngle instance, DF instance)

  • other_obj (galpy object or list of such objects) – Another galpy object or list of such objects (e.g., a Potential, list of Potentials, Orbit, actionAngle instance, DF instance)

Returns:

True if the units are compatible, False if not (compatible means that the units are the same when they are set for both objects).

Return type:

bool

Notes

  • 2020-04-22 - Written - Bovy (UofT)