AFL.automation.mixing.BioSANSPrepare#
Functions
|
Classes
|
Special type indicating an unconstrained type. |
|
|
|
|
|
|
|
|
|
Minimal mock EIC client for testing and mock_mode. |
|
A dictionary-like class that serializes changes to disk |
- class AFL.automation.mixing.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': []}#
- is_feasible(targets: dict | list[dict]) list[dict | None][source]#
Check if the target composition(s) is/are feasible for preparation using mass balance. If feasible, returns the balanced target solution dictionary. Otherwise, returns None.
This implementation creates a local MassBalance instance for each feasibility check to avoid modifying the driver’s state.
- apply_fixed_comps(target: dict) dict[source]#
Apply fixed compositions to a target dictionary without overwriting existing values.
- prepare(target: dict, dest: str | None = None) tuple[dict, str] | tuple[None, None][source]#
Prepare the target solution. The dest argument is currently not used by this implementation.
- property client#
Property that returns the EIC client instance.
If the client doesn’t exist yet, it instantiates a new EICClient using the token and beamline from the configuration.
- Returns:
The client instance for communicating with the instrument.
- Return type:
EICClient
- 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.