Skip to content

Hamilton command read_timeout not adjustable #944

@nedru004

Description

@nedru004

I am trying to run a protein purification that slowly pipettes a solution over a resin inside a tip. When I set the volume to 400 and the flowrate to 0.4ul/s it times out after 300 seconds. I changed the backend timeout to 1200 to account for the 1000 seconds it would take, but it continues to timeout at 300.

from pylabrobot.liquid_handling import LiquidHandler
from pylabrobot.liquid_handling.backends import STARBackend
from pylabrobot.resources.hamilton import STARDeck

lh = LiquidHandler(backend=STARBackend(read_timeout=1200), deck=STARDeck(core_grippers="1000uL-5mL-on-waste"))
await lh.setup(skip_iswap=True)

await lh.pick_up_tips96(lh.deck.get_resource("imac_tips"))
await lh.aspirate96(lh.deck.get_resource(plate_loc), volume=400, flow_rate=0.4)

I found that the command should default to lh.backend.read_timeout. Is there an upper limit to read_timeout with the usb package?

# Attempt to read packets until timeout, or when we identify the right id.
if read_timeout is None:
read_timeout = self.read_timeout

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions