Skip to content

QCoDeS

The QCoDeS connector synchronizes datasets from a QCoDeS measurement database (a SQLite .db file).

Package etiket_sync_agent_qcodes
Identifier etiket_sync_agent_qcodes
Type Database
Scope Required default scope
Live sync Yes — datasets still being acquired are synchronized live

Installation

from etiket_sdk.sync import Connectors

Connectors.install_from_pypi("etiket_sync_agent_qcodes")

In the DataQruiser app, go to the sync page and open Sync Settings with the gear button (top left). On the Connectors tab, find QCoDeS in the Available list and click Install. If it isn't listed, use Install Connector → Install from PyPI with etiket_sync_agent_qcodes as the package name.

Configuration

Parameter Type Description
database_path path Path to the QCoDeS SQLite .db file.
set_up str Name identifying the measurement setup; used to tag datasets from this source.
static_attributes dict (optional) Attributes added to every dataset synced from this source.

Create a sync source

from qdrive.scopes import get_scopes
from etiket_sdk.sync import SyncSources

print(get_scopes())  # find the scope UUID you want to sync to

source = SyncSources.create(
    name="my_qcodes_source",
    connector_identifier="etiket_sync_agent_qcodes",
    config_data={
        "database_path": "~/experiments/measurements.db",
        "set_up": "fridge-1",
        "static_attributes": {"sample": "Q7-R3"},
    },
    default_scope="6c319227-f6f8-4bc6-b7f9-ed278a8fb040",
)

You can also add this source from the DataQruiser app.

Notes

The connector tracks the QCoDeS run_id, so only runs added since the last sync are uploaded. Runs that are still being acquired are synchronized live and updated as new data comes in.