science_jubilee.tools.PneumaticSampleLoader#

Classes#

PneumaticSampleLoader

Interfaces the AFL sample loader tool with Jubilee deck

Module Contents#

class science_jubilee.tools.PneumaticSampleLoader.PneumaticSampleLoader(url, port, name, cell_location, safe_position, username, password)[source]#

Bases: science_jubilee.tools.Tool.Tool

Interfaces the AFL sample loader tool with Jubilee deck

name[source]#
url[source]#
port[source]#
safe_position[source]#
cell_location[source]#
username[source]#
password[source]#
arm_down_delay = 10[source]#
index = None[source]#
login()[source]#
classmethod from_config(fp)[source]#
load_sample(tool, sample_location: str, volume) bool[source]#

Load a sample into the sample cell using pneumatic pressure. First moves to the specified position, then performs the loading operation.

Parameters:
  • tool – pipette-like tool (ie OT P300, HTTP syringe)

  • sample_location – location

Returns:

True if sample was loaded successfully, False otherwise.

Return type:

bool

rinse_cell() bool[source]#

Clean the sample cell using pressurized air or cleaning solution.

Parameters:
  • pressure (float, optional) – The pressure (PSI) to use for cleaning. If None, uses default_clean_pressure from config.

  • cycles (int) – Number of cleaning cycles to perform.

Returns:

True if cleaning was successful, False otherwise.

Return type:

bool

prepare_cell()[source]#

Prepare the cell for loading - raise arm and make sure it is clean

_prepare_load()[source]#

Raise the arm of the pneumatic sample loader.

_load_sample(volume)[source]#
_rinse_cell()[source]#
update_status() dict[source]#

Get the current status of the sample loader.

Returns:

Status information including whether sample is loaded

and current pressure settings.

Return type:

dict

get_cell_state() str[source]#

Get the current state of the sample cell.

Returns:

The current state of the sample cell (e.g., ‘LOADED’, ‘IDLE’, etc.)

Return type:

str

parse_state(status_list: str) tuple[str, str][source]#

Parse the state and arm state from a status string.

Parameters:

status_str (str) – Raw status string from the device

Returns:

A tuple containing (cell_state, arm_state)

e.g., (‘LOADED’, ‘DOWN’)

Return type:

tuple[str, str]

enqueue(task: dict)[source]#

Enqueue a task to be executed by the pneumatic sample loader.

returns task uuid

unpause_queue()[source]#
pause_queue()[source]#
_safe_position()[source]#

Check if currentlu in safe postion, and if not, move to it

get_safety_state()[source]#

Returns the safety state of the machine.