semi_cr.core.lab.utils.qharbor_tools package

Submodules

semi_cr.core.lab.utils.qharbor_tools.data_utils module

semi_cr.core.lab.utils.qharbor_tools.data_utils.load_yaml_file(path: str) dict[source]
semi_cr.core.lab.utils.qharbor_tools.data_utils.conversion_to_float_parameters(params: dict) dict[source]
semi_cr.core.lab.utils.qharbor_tools.data_utils.init_local_database(db_path: Path, SAMPLE_NAME: str, show_plottr: bool = False)[source]

Initialize a local QCodes SQLite database at the specified path.

Parameters:
  • db_path (Path) – The path where the database should be created.

  • SAMPLE_NAME (str) – The name of the sample, used to create a subdirectory for the database.

  • show_plottr (bool, optional) – If True, launch plottr-inspectr for data visualization. Defaults to False.

semi_cr.core.lab.utils.qharbor_tools.data_utils.create_raw_dataset(config: dict) dataset[source]

Create a new dataset based on the provided configuration.

Parameters:

config (dict) – Configuration dictionary containing user, equipment, protocol, and dataset information.

Example

data_config = {
“user”:{

“initials”: “ngk282”, “name”: “Yizhi Liu”

}, “equipment”:{

“name”: “juno - cqcc”

}, “protocol”:{

“name”: “Resistance reference measurement”,

}, “dataset”:{

“experiment_name”: Experiment_name, “use_existing”: 0, “uuid”: “”, “chip_id”: SAMPLE_NAME, “platform”: “Spin (SP) Qubit”, “project_id”: “Semi_Packaging”, “component”: “sample simulator”, “step”: “CQCC”, “substep”: “R_ref”, “description”: “Resistance reference measurement”, “scope”: “Test will be deleted”

}

}

semi_cr.core.lab.utils.qharbor_tools.data_utils.get_or_create_dataset(config: dict)[source]
semi_cr.core.lab.utils.qharbor_tools.data_utils.make_raw_dataset(scope_name: str, experimentName: str, equipment: str, protocolName: str, user_initials: str, user_name: str, platform: str, chip_id: str, project_id: str, component: str, step: str, sub_step: str, description='') dataset[source]
semi_cr.core.lab.utils.qharbor_tools.data_utils.make_tier2_qharbor_raw_dataset(experimentName: str, description: str, attributes: dict, scope_name: str = 'Test will be deleted') dataset[source]
semi_cr.core.lab.utils.qharbor_tools.data_utils.add_user_attributes(attributes: dict, user_initials: str, user_name: str) dict[source]
semi_cr.core.lab.utils.qharbor_tools.data_utils.add_chip_attributes(attributes: dict, chip_id: str, project_id: str, component: str) dict[source]
semi_cr.core.lab.utils.qharbor_tools.data_utils.start_live_plotting(station_name: str)[source]
semi_cr.core.lab.utils.qharbor_tools.data_utils.get_measured_subject_ids(raw_dataset: dataset) list[source]
semi_cr.core.lab.utils.qharbor_tools.data_utils.check_user_exists()[source]

_summary_

Check if the user exists in the qdrive scopes

Returns:

bool: True if the user exists, False otherwise

semi_cr.core.lab.utils.qharbor_tools.data_utils.show_plottr_inspectr(db_path: Path)[source]

_summary_

Show plottr-inspectr for data visualisation.

Args:

db_path (str): Path to the database file.

Module contents