Skip to content

legacy

tergite_autocalibration.config.legacy

Classes:

Name Description
DataHandler

A temporary class to handle the transition from the old configuration files to the

Functions:

Name Description
update_nested

Update a nested data structure (usually a dict).

DataHandler

DataHandler()

A temporary class to handle the transition from the old configuration files to the new configuration packages

Methods:

Name Description
get_legacy

Temporary endpoint to provide data structures in the necessary shape as they are used in the code

get_legacy

get_legacy(variable_name: str)

Temporary endpoint to provide data structures in the necessary shape as they are used in the code right now.

Parameters:

Name Type Description Default
variable_name str

Old name of the variable that has to be called Can be: "VNA_resonator_frequencies", "VNA_qubit_frequencies", "VNA_f12_frequencies" for the values of the old VNA file "attenuation_setting" and "qubit_types" for the values from the old user_input.py file and "coupler_spi_mapping" to receive values in the format as it was in coupler_values.py

required

Returns:

update_nested

update_nested(target: Dict, updates: Dict) -> None

Update a nested data structure (usually a dict).

Parameters:

Name Type Description Default
target Dict

The original data structure

required
updates Dict

The updates that are going to be merged into the data structure

required

Returns:

Name Type Description
None None

Does not return anything, but works on the given objects