Skip to main content

eTiKeT Sync Agent - QUAlibrate Connector

Connector for synchronizing QUAlibrate calibration data with the eTiKeT platform. This connector scans a QUAlibrate data directory for node/workflow snapshots and syncs them to the cloud.

Installation

Install the QUAlibrate connector using the eTiKeT Sync SDK:

from etiket_sdk.sync import Connectors

# Install the latest version
Connectors.install_from_pypi("etiket-sync-agent-qualibrate")

The package is automatically discovered by etiket_sync_agent through the entry-point system. Once installed, you can verify with:

# List installed connectors
print(Connectors.list())

# Get details for the QUAlibrate connector
connector = Connectors.get("etiket_sync_agent_qualibrate")
print(connector)

Updating the Connector

# Update to the latest version
Connectors.update_from_pypi("etiket-sync-agent-qualibrate")

What Gets Synchronized

Each QUAlibrate snapshot is a directory containing a node.json (metadata) and a data.json (results, with references to .npz/.h5/.png/.json files). When a snapshot is synced, the following data is extracted and uploaded:

QUAlibrate Data eTiKeT Field Description
Snapshot folder name alt_uid Unique identifier for the snapshot
metadata.name (or folder name) name Name of the dataset
created_at / metadata.run_start collected When the snapshot was created
metadata.type_of_execution keywords node or workflow
metadata.description description Snapshot description
type_of_execution, status attributes Small, searchable scalar metadata
data.jsonraw_data HDF5 file Raw measurement arrays combined into a single netCDF (raw_data.h5)

Data Processing

  • Reference resolution: data.json reference strings (./arrays.npz#a.b.c) are resolved into real numpy arrays, xarray datasets, and images via the vendored loader.
  • Raw-data extraction: Only the raw_data entry of the results tree is converted to netCDF. Other entries (e.g. fit_results) are intentionally excluded.
  • Array-to-dataset convention (npz format): this is a best-effort reconstruction. Within a group of sibling numpy arrays, the leading 1-D arrays are treated as the coordinate axes in order (x, y, z, ...) and the remaining arrays as the measured values over the grid those axes span. If shapes don't fit this convention, arrays fall back to standalone variables with independent dimensions.
  • Combining: per-measurement datasets are merged into one flat netCDF. Data variables are prefixed by their results-path; shared sweep axes stay shared (join="exact"). On conflict, every dataset is fully namespaced (lossless, collision-proof).
  • Workflows: workflow snapshots typically carry no array data, in which case no netCDF file is uploaded.

Configuration

The QUAlibrate connector requires a QualibrateConfigData configuration with the following fields:

Field Type Required Description
data_directory Path or str Yes Path to the QUAlibrate data directory (the root containing snapshot folders)
is_server_folder bool Yes Whether this is a server folder (e.g. on a network drive of the university)

A scope is required for this connector (scope_requirement = REQUIRED); scope mapping is not supported.

The configuration is validated on creation: data_directory must exist and be a directory, and it must not overlap (be identical to, a parent of, or a subdirectory of) the path of an existing QUAlibrate sync source.

Example Configuration

Example using the etiket-sdk package:

from etiket_sdk.sync import SyncSources

SyncSources.create(
    name="my_qualibrate_source",
    connector_identifier="etiket_sync_agent_qualibrate",
    config_data={
        "data_directory": "~/.qualibrate/user_storage",
        "is_server_folder": False
    },
    default_scope="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
)

Live Sync

Live synchronization is not supported by this connector. Snapshots are synced once they are complete (i.e. once a node.json is present in the snapshot directory).

Requirements

  • Python >= 3.10
  • numpy
  • xarray
  • h5netcdf
  • Pillow

License

Copyright © 2025 QHarbor. All Rights Reserved. See LICENCE for details.

Release files for etiket-sync-agent-qualibrate 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for etiket-sync-agent-qualibrate 0.0.1
File Size Uploaded
etiket_sync_agent_qualibrate-0.0.1.tar.gz 13.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for etiket-sync-agent-qualibrate 0.0.1
File Interpreter ABI Platform
etiket_sync_agent_qualibrate-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 27.5 kB

Release files / etiket_sync_agent_qualibrate-0.0.1.tar.gz

Download URL etiket_sync_agent_qualibrate-0.0.1.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
85e459b2fccf4b2e15a2d28c64c8649a5ee9e8c471f7d82dbaecbe4fc42ea4cc
BLAKE2b-256 checksum
How to use checksums
37e1a0c0be67183faaebad7fc9c86a4ff0442b8af8145d5b1eb3c0004cf016c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.14

Release files / etiket_sync_agent_qualibrate-0.0.1-py3-none-any.whl

Download URL etiket_sync_agent_qualibrate-0.0.1-py3-none-any.whl
Size 13.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f3506d0f422bab5d3c7f0f8098e0ae7b5c06ff584c7100122299904a60bbe051
BLAKE2b-256 checksum
How to use checksums
221933fea43ff0f0c7d2c83d749f5a30fff6ebf68d21f16df4f0f4a9dba64e06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page