pylabrobot.resources.tip_tracker.TipTracker

Contents

pylabrobot.resources.tip_tracker.TipTracker#

class pylabrobot.resources.tip_tracker.TipTracker(thing: str)#

Bases: object

A tip tracker tracks tip operations and raises errors if the tip operations are invalid.

Attributes

has_tip

Whether the tip tracker has a tip.

is_disabled

Methods

__init__(thing)

add_tip(tip[, origin, commit])

Update the pending state with the operation, if the operation is valid.

clear()

Clear the history.

commit()

Commit the pending operations.

disable()

Disable the tip tracker.

enable()

Enable the tip tracker.

get_tip()

Get the tip.

get_tip_origin()

Get the origin of the current tip, if known.

load_state(state)

Load a saved tip tracker state.

register_callback(callback)

remove_tip([commit])

Update the pending state with the operation, if the operation is valid

rollback()

Rollback the pending operations.

serialize()

Serialize the state of the tip tracker.

Parameters:

thing (str)