qudi.util.mapper.Converter

class qudi.util.mapper.Converter[source]

Bases: builtins.object

Class for converting data between display and storage (i.e. widget and model).

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

model_to_widget(data)

Converts data from the model format to the widget data format.

widget_to_model(data)

Converts data from the format given by the widget to the model data format.

model_to_widget(data)[source]

Converts data from the model format to the widget data format.

Parameters:
dataobject

Data to be converted from the model format to the widget format.

Returns:
object

Converted data in the widget format.

widget_to_model(data)[source]

Converts data from the format given by the widget to the model data format.

Parameters:
dataobject

Data to be converted.

Returns:
object

Converted data.