Skip to main content

QUAlibrate connector for eTiKeT sync agent

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

etiket_sync_agent_qualibrate-0.0.1.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

etiket_sync_agent_qualibrate-0.0.1-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file etiket_sync_agent_qualibrate-0.0.1.tar.gz.

File metadata

File hashes

Hashes for etiket_sync_agent_qualibrate-0.0.1.tar.gz
Algorithm Hash digest
SHA256 85e459b2fccf4b2e15a2d28c64c8649a5ee9e8c471f7d82dbaecbe4fc42ea4cc
MD5 f011eeaa74b0127b38420e30229ed7d1
BLAKE2b-256 37e1a0c0be67183faaebad7fc9c86a4ff0442b8af8145d5b1eb3c0004cf016c2

See more details on using hashes here.

File details

Details for the file etiket_sync_agent_qualibrate-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for etiket_sync_agent_qualibrate-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f3506d0f422bab5d3c7f0f8098e0ae7b5c06ff584c7100122299904a60bbe051
MD5 6e01bada58d723bf436049fa53188594
BLAKE2b-256 221933fea43ff0f0c7d2c83d749f5a30fff6ebf68d21f16df4f0f4a9dba64e06

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page