pylabrobot.bmg_labtech.vantastar.driver.simulator.VANTAstarSimulationDriver#

class pylabrobot.bmg_labtech.vantastar.driver.simulator.VANTAstarSimulationDriver(declared_configuration_json: str, name: str = 'VANTAstar')#

Bases: VANTAstarDriver

A VANTAstar driver with no reader behind it.

Nothing reaches a wire. The configuration comes from declared_configuration_json; status comes from the simulated state; the drawer moves, the shaker shakes and the temperature controller reaches its target at once. Reads return random values or simulated_data.

Attributes

PROTOCOL_VERSION

default_poll_interval

default_read_timeout

Seconds a wait for the reader to be ready may last.

estimating

Whether the current task runs a read under estimate_duration.

measurement_poll_interval

Methods

__init__(declared_configuration_json[, name])

adjust_gain_and_focus(parameters, *[, timeout])

Run a gain and focus adjustment from prebuilt fields and return what it found.

build_absorbance_run(wavelengths, *, ...[, ...])

RUN fields for an absorbance endpoint read (MeasurementMode 2).

build_absorbance_spectrum_run(...[, ...])

RUN fields for an absorbance spectrum (MeasurementMode 2 with no discrete wavelengths): start, stop and step in 0.1 nm, then the reference wavelengths of an endpoint read.

build_fluorescence_run(monochromators, *, ...)

RUN fields for a top fluorescence-intensity endpoint read (MeasurementMode 0).

build_fluorescence_scan_run(first, last, ...)

RUN fields for a top fluorescence scan (MeasurementMode 0, ChromaticScan1): the number of points, then the monochromator settings of the first and the last point; the reader steps evenly between them.

build_gain_focus(monochromator, *, ...[, ...])

GainPlateCommand fields for a top fluorescence gain and focus adjustment, either alone.

build_incubator(command_type, temperature)

IncubatorCommand fields: type, nominal temperature (0.1 C), channels (all).

build_luminescence_run(monochromators, *, ...)

RUN fields for a top luminescence endpoint read (MeasurementMode 1).

discover()

Read the configuration from declared_configuration_json.

estimate_duration(read)

Raise: only a reader estimates a read.

estimate_run_time(parameters)

The run time in s the reader expects for a read of the RUN fields parameters, without reading: the RUN is sent with CalcTimeOnly set, as Voyager sends it while a method is edited.

exchange(payload)

Raise: a simulated reader sends nothing.

format_setup_summary()

One line describing the simulated reader and the configuration it answers from.

get_temperatures()

The three incubator sensor readings in degrees C (the first is the one Voyager displays), or None when the reader reports none.

initialize()

Mark the reader initialized, motors on.

measure_z_profile(parameters, *[, timeout])

Run a gain and focus adjustment from prebuilt fields with the focus, and return its focus curve.

request_status([retries])

The simulated state: never busy, the drawer where it was moved, a plate detected with the drawer in and a plate on the plate holder, the temperature controller's target as all three temperatures.

run_absorbance_spectrum(parameters, *, timeout)

Run an absorbance spectrum from prebuilt RUN fields and return one block per well, in the order the reader reads the wells; the first carries the calibration values.

run_blocks(parameters, *, timeout)

Run a read from prebuilt RUN fields and return its finished data blocks: one, or one per kinetic cycle.

run_measurement(parameters, *, timeout)

Run a read of one data block (an endpoint read or a fluorescence scan) from prebuilt RUN fields and return the block (run_blocks).

save_configuration(path[, indent])

Write what this reader reported to a file, to be declared later (declared_configuration_json).

send_command(*args, **kwargs)

Raise: a simulated reader sends nothing.

setup()

Initialize and read the configuration, with nothing to connect.

stop([accept_plate_left_in_device])

Close the drawer and check for a plate left in, as a reader does; then mark the reader not initialized.

stop_run()

Stop a measurement running on the reader (StopCommand, StopMode 0).

Parameters:
  • declared_configuration_json (str)

  • name (str)