CalibrationΒΆ

Class Arguments

Argument

Type

Default Value

input_unit

TStr

output_unit

TStr

Bold arguments are mandatory. For more documentation on the listed arguments refer to the class definition below. If parameters appear in this list but not in the class definition below, please recursively check the linked base classes for the definition of the parameter.

Inheritance Diagram

Inheritance diagram of atomiq.components.basics.calibration.Calibration

Example Component Dictionary

   {
    "calibration_example": {
        "classname": "atomiq.components.basics.calibration.Calibration",
        "arguments": {
            "input_unit": "<mandatory parameter (TStr)>",
            "output_unit": "<mandatory parameter (TStr)>"
        }
    }
}

Class Description

class atomiq.components.basics.calibration.Calibration(input_unit, output_unit, *args, **kwargs)[source]

Bases: Component

An abstract Calibration

This is an abstract class to describe a calibration.

Parameters:
  • input_unit (TStr) -- A string determining the input unit (e.g. 'mW', 'V', or 'uA')

  • output_unit (TStr) -- A string determining the output unit (e.g. 'mW', 'V', or 'uA')

transform(input_value)[source]

Transform a value according to the calibration

Parameters:

input_value (artiq.compiler.types.TMono('float', OrderedDict())) -- value to be transformed

Returns:

transformed value

Return type:

TFloat