accml.work_bench.core package
Module contents
- class accml.work_bench.core.BasicMeasurementExecutionEngine(*, backend, cmd_rewriter, storage, expected_view_for_output, num_readings)[source]
Bases:
MeasurementExecutionEngineCommon functionality of the measurement execution engine
- Parameters:
backend (BackendRW)
cmd_rewriter (CommandRewriterBase)
storage (StorageInterface)
expected_view_for_output (str)
num_readings (int)
- async execute(commands_collection, detectors, *, md, **kwargs)[source]
The commands collections is missing Context i.e. in which view it is operating.
- Return type:
- Parameters:
commands_collection (Sequence[TransactionCommand])
detectors (Sequence[ReadCommand])
Todo
evaluate if a set / read method should be provided as separate methods
- async trigger_read(rcmds)[source]
- Return type:
- Parameters:
rcmds (Sequence[ReadCommand])
Todo
- review handling context or view:
design / device
Can commands be only converted once?
command rewriter: separate function for read commands? i.e. a delegation to liaison manager