astropy:docs

format_input

astropy.modeling.format_input(func)[source] [edit on github]

Wraps a model’s __call__ method so that the input arrays are converted into the appropriate shape given the model’s parameter dimensions.

Wraps the result to match the shape of the last input array.

Page Contents