AFL.automation.mixing.MassBalanceDriver#
Functions
|
Ensure that a number has units and convert to the default_units |
|
Parse a URL into 6 components: <scheme>://<netloc>/<path>;<params>?<query>#<fragment> |
Classes
|
Special type indicating an unconstrained type. |
|
Bounds constraint on the variables. |
|
Communicate with APIServer |
|
|
|
|
|
|
|
|
|
- class AFL.automation.mixing.MassBalanceDriver.MassBalanceDriver(overrides=None)[source]#
- defaults = {'minimum_volume': '20 ul', 'orchestrator_uri': '', 'orchestrator_username': 'Orchestrator', 'prepare_uri': '', 'prepare_username': 'Prepare', 'stocks': [], 'sweep_config': {}, 'targets': [], 'tol': 0.001}#
- property stock_components#
- property target_components#
- submit_orchestrator_grid(sample_mode: str = 'balanced_all', samples: List[Dict] | None = None, process_sample_kwargs: Dict | None = None, config_overrides: Dict | None = None, orchestrator_uri: str | None = None)[source]#
- submit_prepare_grid(sample_mode: str = 'balanced_all', samples: List[Dict] | None = None, prepare_kwargs: Dict | None = None, config_overrides: Dict | None = None, prepare_uri: str | None = None)[source]#
- get_sample_composition(composition_format='mass_fraction')[source]#
Get the composition of the last balanced target in the requested format.
Uses the Solution objects in
self.balancedwhich have full access to the component database, avoiding the need for the caller to reconstruct Solution objects.- Parameters:
composition_format (str or dict) – If str, a single format applied to all components. If dict, maps component names to format strings; components not listed default to
'mass_fraction'. Valid formats:'mass_fraction','volume_fraction','concentration','molarity'.- Returns:
Composition dictionary with component names as keys and numeric values in the requested format.
- Return type: