AFL.automation.prepare.BioSANSPrepare#

Classes

BioSANSPrepare([overrides])

MockEICClient(*args, **kwargs)

Minimal mock EIC client for testing and mock_mode.

PrepareDriver(driver_name[, overrides])

Base class for prepare drivers.

class AFL.automation.prepare.BioSANSPrepare.BioSANSPrepare(overrides=None)[source]#
defaults = {'beamline': 'CG3', 'catch_volume': '10 ul', 'cfenable_timeout_s': 1800.0, 'eic_token': '1', 'exposure': 600, 'fixed_compositions': {}, 'ipts_number': '1234', 'mixing_locations': [], 'mock_mode': False, 'stocks': []}#
__init__(overrides=None)[source]#
before_balance(target: dict) None[source]#

Subclass hook to perform backend-specific checks before solving.

resolve_destination(dest)[source]#

Return destination identifier for this backend.

on_prepare_exception(destination, dest_was_none)[source]#

Subclass hook to rollback destination bookkeeping on exceptions.

execute_preparation(target: dict, balanced_target, destination: str) bool[source]#

Execute backend-specific prepare actions.

Returns False for handled, non-fatal failures where caller should return (None, None). Raise for hard failures.

blockForTableScan()[source]#

Block until the last submitted table scan is complete.

reset()[source]#
property client#
make_stock_pv_map()[source]#
set_pv(pv_name, value, timeout=10, wait=True)[source]#
get_pv(pv_name, timeout=10)[source]#
advanceSample(**kwargs)#

Default no-op handler for injected commands.

calibrate_sensor(**kwargs)#

Default no-op handler for injected commands.

home(**kwargs)#

Default no-op handler for injected commands.

loadSample(**kwargs)#

Default no-op handler for injected commands.

rinseCell(**kwargs)#

Default no-op handler for injected commands.

transfer(**kwargs)#

Default no-op handler for injected commands.

transfer_to_catch(**kwargs)#

Default no-op handler for injected commands.