Logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2025 Patrick Müller. All rights reserved.

qspec.models.find_model  (  model sub_model  )[source]

Parameters:
modelqspec.models._base.Model

The model to search in.

sub_modelqspec.models._base.Model | type

The submodel to find.

Returns:
outOptional[qspec.models._base.Model]

The first submodel of type or with the same type as sub_model. If model already has the same type as sub_model, model will be returned. Returns None if model has no submodel sub_model.

API navigation