atomiq.parameter_space

Sources of per-point scan values.

A parameter space source enumerates the points of a scan. It provides only the values of the active scan axes. The constant and computed parts of a point are added by the experiment.

Classes

ParameterSpaceSource

Interface of a source of scanned point values.

MultiScanSource

Parameter space source that wraps an ARTIQ MultiScanManager.

Module Contents

class atomiq.parameter_space.ParameterSpaceSource[source]

Bases: Protocol

Interface of a source of scanned point values.

The schema is fixed before the source yields its first point. A consumer pairs it with every tuple that __iter__ yields to recover the argument names. The schema attribute holds the ordered (name, type) pairs of the scanned arguments.

schema: list[tuple[str, type]]
__iter__()[source]

Yield one tuple of scanned values per point, in schema order.

class atomiq.parameter_space.MultiScanSource(mult_scan, schema)[source]

Parameter space source that wraps an ARTIQ MultiScanManager.

Parameters:
  • mult_scan (MultiScanManager) -- Scan manager that enumerates the scan axes of the run.

  • schema (list[tuple[str, type]]) -- Ordered (name, type) pairs. The value of each name is read from the points of the scan manager.

mult_scan
schema
__iter__()[source]

Yield one tuple of scanned values per point, in schema order.