- qspec.models.find_models ( model , sub_model , model_list = None )[source]
-
- Parameters:
-
- modelqspec.models._base.Model
The model to search in.
- sub_modelqspec.models._base.Model | type
The submodel to find.
- model_listIterable
A list of models to append the found submodel to.
- Returns:
-
- outlist[qspec.models._base.Model]
This function returns a list of the first models of type or with the same type as
sub_model
for every branch in model.