science_jubilee.tools.HTTPSyringe#

Classes#

Module Contents#

class science_jubilee.tools.HTTPSyringe.HTTPSyringe(index, name, url)[source]#

Bases: science_jubilee.tools.Tool.Tool

name[source]#
index[source]#
syringe_loaded[source]#
remaining_volume[source]#
classmethod from_config(index, fp)[source]#
status()[source]#

Fetch and update status

load_syringe(volume, pulsewidth)[source]#

Configure a syringe after physically loading it

volume: Current loaded volume in syringe pulsewidth: current pulsewidth position of servo

_aspirate(vol, s)[source]#
_dispense(vol, s)[source]#
dispense(vol: float, location: science_jubilee.labware.Labware.Well | Tuple | science_jubilee.labware.Labware.Location, s: int = 100)[source]#

Moves the pipette to the specified location and dispenses the desired volume of liquid

Parameters:
  • vol (float) – The volume of liquid to dispense in uL

  • location (Union[Well, Tuple, Location]) – The location to dispense the liquid into.

  • s (int) – Speed at which to dispense. Best effort compliance based on constraints of system. uL/S

Raises:

ToolStateError – If the pipette does not have a tip attached

aspirate(vol: float, location: science_jubilee.labware.Labware.Well | Tuple | science_jubilee.labware.Labware.Location, s: int = 100)[source]#

Moves the pipette to the specified location and aspirates the desired volume of liquid

Parameters:
  • vol (float) – The volume of liquid to aspirate in uL

  • location (Union[Well, Tuple, Location]) – The location from where to aspirate the liquid from.

  • s (int) – Speed at which to aspirate. Best effort compliance based on constraints of system. uL/S.

Raises:

ToolStateError – If the pipette does not have a tip attached

mix(vol: float, n_mix: int, location: science_jubilee.labware.Labware.Well | Tuple | science_jubilee.labware.Labware.Location, t_hold: int = 1, s_aspirate: int = 100, s_dispense: int = 100)[source]#

Mixes n times with volume vol

Parameters:
  • vol (float) – Volume to aspirate/dispense in mixing. uL

  • n_mix (int) – Number of times to aspirate/dispense in mixing.

  • location (Union[Well, Tuple, Location]) – The location from where to mix

  • t_hold (int) – Hold time at top and bottom of mix cycle to allow liquid to ‘catch up’. Units seconds

  • s (int) – Speed at which to mix in uL/S. Best effort compliance.

set_pulsewidth(pulsewidth: int, s: int = 100)[source]#

Manually move the servo actuator to a new location by setting the new pulsewidth.

Does not update volume, use carefully

Parameters:
  • pulsewidth (int) – The servo motor pulsewidth to set the servo to. Read up on servo positioning for this to make sense. Ranges from 1000-2000 with a stricter range of accessible values for each syringe tool.

  • s (int) – Speed of movement in uL/S.