galpy.util.bovy_conversion.physical_compatible

galpy.util.bovy_conversion.physical_compatible(obj, other_obj)[source]

NAME:

physical_compatible

PURPOSE:

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

INPUT:

obj - a galpy object or list of such objects (e.g., a Potential, list of Potentials, Orbit, actionAngle instance, DF instance)

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

OUTPUT:

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

HISTORY:

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