attune.map_ind_limits

attune.map_ind_limits(instrument, arrangement, tune, min, max, units=None)[source]

Map the independent values of a tune onto new limits.

The resultant tune will have the same number of points as the original, evenly spaced between min and max.

Parameters:
  • instrument (Instrument) – The instrument object to alter.

  • arrangement (str) – The name of the arrangemnt to alter.

  • tune (str) – The name of the tune to alter.

  • min (float) – The new minimum setpoint.

  • max (float) – The new maximum setpoint.

  • units (Optional[str]) – The units of the new setpoints, will be converted to the original units. If not given, original units are assumed.

Returns:

The instrument with the tune remapped to new setpoints.

Return type:

Instrument