Logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2026 Patrick Müller. All rights reserved.

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

Parameters:
modelqspec.models._base.Model | None

The model to search in.

sub_modeltype[T]

The submodel to find.

Returns:
outOptional[T]

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