bind_compound_bounding_box

astropy.modeling.bind_compound_bounding_box(modelinstance, bounding_boxes, selector_args, create_selector=None, ignored=None, order='C')[source]

Add a validated compound bounding box to a model instance.

Parameters:
modelinstanceModel instance

This is the model that the validated compound bounding box will be set on.

bounding_boxespython:dict

A dictionary of bounding box tuples, see Efficient Model Rendering with Bounding Boxes for details.

selector_argspython:list

List of selector argument tuples to define selection for compound bounding box, see Efficient Model Rendering with Bounding Boxes for details.

create_selectorpython:callable(), optional

An optional callable with interface (selector_value, model) which can generate a bounding box based on a selector value and model if there is no bounding box in the compound bounding box listed under that selector value. Default is None, meaning new bounding box entries will not be automatically generated.

ignoredpython:list

List of the inputs to be ignored by the bounding box.

orderpython:str, optional

The ordering of the bounding box tuple, can be either 'C' or 'F'.