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

Basket(container, cell_no, basket_no[, unipuck])

Cell(container, number[, puck_type])

EMBLFlexHCD(*args, **kwargs)

Pin(basket, cell_no, basket_no, sample_no)

class mxcubecore.HardwareObjects.EMBLFlexHCD.Basket(container, cell_no, basket_no, unipuck=False)[source]

Bases: Container

clear_info()[source]

Clears all sample info (also in components if object is a container)

class mxcubecore.HardwareObjects.EMBLFlexHCD.Cell(container, number, puck_type='SC3')[source]

Bases: Container

clear_info()[source]

Clears all sample info (also in components if object is a 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:
  • exporter_address (str | None)

  • tango_device (str | None)

  • puck_configuration (list | str)

  • extra_data (Any)

model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'extra': 'allow'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

chained_load(old_sample, sample)[source]

Chain the unload of a sample with a load.

Parameters:
  • sample_to_unload (tuple) – sample address on the form (component1, … ,component_N-1, component_N)

  • sample_to_load (tuple) – sample address on the form (component1, … ,component_N-1, component_N)

  • (Object) – Value returned by _execute_task either a Task or result of the operation

get_sample_list() → List[Any][source]

Returns a list of present samples enriched with information from the Flex getPresentSamples() call.

Return type:

List[Any]

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)

class mxcubecore.HardwareObjects.EMBLFlexHCD.Pin(basket, cell_no, basket_no, sample_no)[source]

Bases: Sample