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.Offset  (  model = None x_cuts = None offsets = None  )[source]

Cuts the x-axis and adds y-axis offsets to every segment.

Parameters:
modelqspec.models._base.Model | None

The submodel the offset will be added to. If None, the offset will be added to zero.

x_cutsarray_like | None

x values where to cut the x-axis.

offsetsarray_like | None

A list of maximally considered polynomial orders for each slice. The list must have length len(x_cuts) + 1.

API navigation