class attune.Tune(independent, dependent, *, dep_units=None, **kwargs)[source]

Bases: object

__init__(independent, dependent, *, dep_units=None, **kwargs)[source]

A Tune which maps one set of inputs to associated output points.

Currently all tunes are assumed to have “nm” as their independent array units. All mappings are linear interpolations

  • independent (1D array-like) – The independent axis for input values to be mapped. Must be the same shape as dependent.

  • dependent (1D array-like) – The depending axis for the mapping. Must be the same shape as independent.

  • dep_units (str (optional)) – Units for the dependent axis

  • Note (kwargs are provided to make the serialized dictionary with ind_units) –

  • to initialize into a Tune object (easy) –

  • are currently ignored. (but) –


Serialize this Tune as a python dictionary.

property dep_units
property dependent
property ind_max
property ind_min
property ind_units
property independent