mxcubecore.HardwareObjects.EMBLFlexHCD¶
FlexHCD Linux Java implementation of sample changer. Example configuration:
class:
configuration: EMBLFlexHCD.EMBLFlexHCD
exporter_address: pcflex:9001
puck_configuration: ["SC3", "UNI", "SC3", "UNI", "UNI", "UNI", "UNI", "UNI"]
username: Sample Changer
objects:
controller: bliss.yaml # optional
Classes
|
|
|
|
|
|
|
- class mxcubecore.HardwareObjects.EMBLFlexHCD.Basket(container, cell_no, basket_no, unipuck=False)[source]¶
Bases:
Container
- class mxcubecore.HardwareObjects.EMBLFlexHCD.Cell(container, number, puck_type='SC3')[source]¶
Bases:
Container
- class mxcubecore.HardwareObjects.EMBLFlexHCD.EMBLFlexHCD(*args, **kwargs)[source]¶
Bases:
SampleChanger- class HOConfig(*, exporter_address: str | None = None, tango_device: str | None = None, puck_configuration: list | str = ['UNI', 'UNI', 'UNI', 'UNI', 'UNI', 'UNI', 'UNI', 'UNI'], **extra_data: Any)[source]¶
Bases:
HOConfig- Parameters:
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- get_sample_list() List[Any][source]¶
Returns a list of present samples enriched with information from the Flex getPresentSamples() call.
- get_sample_properties()[source]¶
- Returns:
With sample properties defined in Sample
- Return type:
(tuple)
- init()[source]¶
‘public’ post-initialization method. Override as needed.
For ConfiguredObjects called after loading contained objects.
- load(**kwargs)¶
Load a sample.
- Parameters:
sample (tuple) – sample address on the form (component1, … ,component_N-1, component_N)
wait (boolean) – True to wait for load to complete False otherwise
- Returns
- (Object): Value returned by _execute_task either a Task or result of the
operation
- unload(**kwargs)¶
Unload sample to location sample_slot, unloads to the same slot as it was loaded from if None is passed
- Parameters:
sample_slot (tuple) – sample address on the form (component1, … ,component_N-1, component_N)
wait – If True wait for unload to finish otherwise return immediately
- Returns:
- Value returned by _execute_task either a Task or result of the
operation
- Return type:
(Object)