attune.workup.holistic(data, channels, dependents, curve, *, spectral_axis=- 1, level=False, gtol=0.01, autosave=True, save_directory=None, **spline_kwargs)[source]

Workup multi-dependent tuning data.

Note: At this time, this function expects 2-dimensional motor space. The algorithm should generalize to N-dimensional motor space, however this is untested and plotting likely will fail.

  • data (WrightTools.Data) – The data object to process.

  • channels ( or int or str or 2-tuple) – If singular: the spectral axis, from which the 0th and 1st moments will be taken to obtain amplitudes and centers. In this case, spectral_axis determines which axis is used to obtain the moments. If a tuple: (amplitudes, centers), then these channels will be used directly.

  • dependents (tuple of str) – Names of the dependents to modify in the curve, in the same order as the axes of data.

  • curve (attune.Curve) – Curve object to modify. Setpoints are determined from the curve.

  • Parameters (Keyword) –

  • ------------------

  • spectral_axis ( or int or str (default -1)) – The axis along which to take moments. Only applies if a single channel is given.

  • level (bool (default False)) – Toggle leveling data. If two channels are given, only the amplitudes are leveled. If a single channel is given, leveling occurs before taking the moments.

  • gtol (float (default 0.01)) – Global tolerance for rejecting noise level relative to the global maximum.

  • autosave (bool (default True)) – Toggles saving of curve files and images.

  • save_directory (Path-like (Defaults to current working directory)) – Specify where to save files.

  • **spline_kwargs – Extra arguments to pass to spline creation (e.g. s=0, k=1 for linear interpolation)