- craftutils.wrap.psfex.Fittable2DModel.output_units(**kwargs)
Return a dictionary of output units for this model given a dictionary of fitting inputs and outputs
The input and output Quantity objects should be given as keyword arguments.
Notes¶
This method is needed in order to be able to fit models with units in the parameters, since we need to temporarily strip away the units from the model during the fitting (which might be done by e.g. scipy functions).
This method will force extra model evaluations, which maybe computationally expensive. To avoid this, one can add a return_units property to the model, see return_units.