- THIS FUNCTION LOOKS INTO A COLLECTION OF CURVES AND RETURNS CURVENAME=>LOOKUP VALUE*
Iterates over a collection of curves and returns a key-value map where each key is a curve attribute (name, id, or file) and the value is a scalar extracted from that curve (e.g. xmax, ymin, first intersection). Use this worker to summarise a curve group into a flat lookup table for downstream processing.
When to use¶
Classification: process.
Tagged: batch, curve_group, curves, keyvalue, lookup, scalar_extraction.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Curve Group | curve_group | vector | — | One or more input curves (Curve Group) to be iterated over; each curve contributes one key-value pair to the output. Leave empty only if curves are supplied programmatically by an upstream worker. | |
| Type | type | scalar | xfirst | The scalar quantity to extract from each curve — e.g. ‘xmax’ for the maximum X value, ‘ymin’ for the minimum Y, ‘first_intersect_x’ for the first zero-crossing X coordinate, etc. Defaults to ‘xfirst’. | |
| With Attr | with_attr | string | name | The curve attribute used as the key in the output map — ‘name’ (human-readable label), ‘id’ (internal identifier), or ‘file’ (source filename). Defaults to ‘name’. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| curves_lookup_keyvalue_output_1 | curves_lookup_keyvalue_output_1 | keyvalue | A key-value map (dict/object) where each key is the selected curve attribute (‘name’, ‘id’, or ‘file’) and each value is the scalar extracted from the corresponding curve according to the chosen lookup type. |
Disciplines¶
- data.curve.pair
- data.statistics
Runnable example¶
A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=curves_lookup_keyvalue
Auto-generated from transformation schema. Worker id: curves_lookup_keyvalue. Schema hash: b28ab15d483e. Hand-curated docs in workerexamples/ override this page when present.