-
craftutils.wrap.psfex.Fittable2DModel.render(out=
None, coords=None) Evaluate a model at fixed positions, respecting the
bounding_box.The key difference relative to evaluating the model directly is that this method is limited to a bounding box if the Model.bounding_box attribute is set.
Parameters¶
- outnumpy.ndarray, optional
An array that the evaluated model will be added to. If this is not given (or given as
None), a new array will be created.- coordsarray-like, optional
An array to be used to translate from the model’s input coordinates to the
outarray. It should have the property thatself(coords)yields the same shape asout. Ifoutis not specified,coordswill be used to determine the shape of the returned array. If this is not provided (or None), the model will be evaluated on a grid determined by Model.bounding_box.
Returns¶
- outnumpy.ndarray
The model added to
outifoutis notNone, or else a new array from evaluating the model overcoords. Ifoutandcoordsare both None, the returned array is limited to the Model.bounding_box limits. If Model.bounding_box is None,arrorcoordsmust be passed.
Raises¶
- ValueError
If
coordsare not given and the the Model.bounding_box of this model is not set.
Examples¶