attune.intensity
- attune.intensity(*, data, channel, arrangement, tune, instrument=None, level=False, gtol=0.01, ltol=0.1, autosave=True, save_directory=None, **spline_kwargs)[source]
Workup a generic intensity plot for a single dependent.
- Parameters
data (wt.data.Data) – should be in (setpoint, dependent)
channel (wt.data.Channel or int or str) – channel to process
arrangement (str) – name of the arrangement to modify in the instrument
tune (str) – name of the tune to modify in the instrument
instrument (attune.Instrument, optional) – instrument object to modify (Default None: make a new instrument)
level (bool, optional) – toggle leveling data (Defalts to False)
gtol (float, optional) – global tolerance for rejecting noise level relative to global maximum
ltol (float, optional) – local tolerance for rejecting data relative to slice maximum
autosave (bool, optional) – toggles saving of instrument file and images (Defaults to True)
save_directory (Path-like) – where to save (Defaults to current working directory)
**spline_kwargs (optional) – extra arguments to pass to spline creation (e.g. s=0, k=1 for linear interpolation)
- Returns
New instrument object.
- Return type