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: MeasurementExecutionEngine

Common functionality of the measurement execution engine

Parameters:
async execute(commands_collection, detectors, *, md, **kwargs)[source]

The commands collections is missing Context i.e. in which view it is operating.

Return type:

str

Parameters:

Todo

evaluate if a set / read method should be provided as separate methods

get_data(uuid)[source]
get_expected_view_for_output()[source]
Return type:

str

async set(cmds)[source]

execute these commands together

Parameters:

cmds (Sequence[Command])

async trigger_read(rcmds)[source]
Return type:

ReadTogether

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

class accml.work_bench.core.SimpleDataStorage[source]

Bases: StorageInterface

add(data)[source]

return identifier for the object stored

Return type:

str

clear()[source]
get(uuid)[source]
Parameters:

uuid (str)

keys()[source]