compose_models_with_units#

astropy.modeling.compose_models_with_units(left, right)[source]#

This function is a convenience function to compose two models with units such that unit changes are possible.

This performs left | right, but with the added ability to handle unit changes

Parameters:
leftModel

The model to the left of the | operator.

rightModel

The model to the right of the | operator.

Returns:
modelCompoundModel

The composed left | right, with unit change through | enabled.