visiontoolkit.bounding_box_query

visiontoolkit.bounding_box_query(model_field, model_id, coord_tight_bounds, model_coord, halo_size, ascending=True)

Apply a custom query to get the bounding box.

This method is required, on top of the simple subspace query case, to handle cases whereby the query value endpoints both sit between one model field value and another so that the basic subspace fails, and we can’t solve this with a halo because the subspace doesn’t know what point to ‘halo’ around.