Exemplo n.º 1
0
    def __init__(self,
                 hardware: ThreadManager,
                 mount: Mount,
                 has_calibration_block: bool,
                 tip_rack: 'LabwareDefinition'):
        self._tip_rack_definition = tip_rack
        self._hardware = hardware
        self._mount = mount
        self._has_calibration_block = has_calibration_block
        self._hw_pipette = self._hardware._attached_instruments[mount]
        if not self._hw_pipette:
            raise ErrorExc(Error.NO_PIPETTE, mount)
        self._tip_origin_pt: Optional[Point] = None
        self._nozzle_height_at_reference: Optional[float] = None

        deck_load_name = SHORT_TRASH_DECK if ff.short_fixed_trash() \
            else STANDARD_DECK
        self._deck = geometry.Deck(load_name=deck_load_name)
        self._initialize_deck()

        self._current_state = State.sessionStarted
        self._state_machine = TipCalibrationStateMachine()

        self._command_map: COMMAND_MAP = {
            CalibrationCommand.load_labware: self.load_labware,
            CalibrationCommand.jog: self.jog,
            CalibrationCommand.pick_up_tip: self.pick_up_tip,
            CalibrationCommand.invalidate_tip: self.invalidate_tip,
            CalibrationCommand.save_offset: self.save_offset,
            TipLengthCalibrationCommand.move_to_reference_point: self.move_to_reference_point,  # noqa: E501
            TipLengthCalibrationCommand.move_to_tip_rack: self.move_to_tip_rack,  # noqa: E501
            CalibrationCommand.exit: self.exit_session,
        }
Exemplo n.º 2
0
 def __init__(self, hardware: ThreadManager):
     self._hardware = hardware
     self._relate_mount = self._key_by_uuid(
         hardware.get_attached_instruments()
     )
     self._deck = geometry.Deck()
     self._slot_options = ['8', '6']
     self._labware_info = self._determine_required_labware()
     self._moves = self._build_deck_moves()
Exemplo n.º 3
0
    def __init__(self,
                 hardware: ThreadManager,
                 lights_on_before: bool = False):
        self._hardware = hardware
        self._lights_on_before = lights_on_before

        deck_load_name = SHORT_TRASH_DECK if ff.short_fixed_trash() \
            else STANDARD_DECK
        self._deck = geometry.Deck(load_name=deck_load_name)
        self._pip_info_by_mount = self._get_pip_info_by_mount(
            hardware.get_attached_instruments())
        self._labware_info = self._determine_required_labware()
        self._moves = self._build_deck_moves()
Exemplo n.º 4
0
 def __init__(self, hardware: ThreadManager):
     self._hardware = hardware
     self._deck = geometry.Deck()
     self._pip_info_by_mount = self._get_pip_info_by_mount(
             hardware.get_attached_instruments())
     if ff.short_fixed_trash():
         trash_lw = labware.load(
             'opentrons_1_trash_850ml_fixed',
             self._deck.position_for('12'))
     else:
         trash_lw = labware.load(
             'opentrons_1_trash_1100ml_fixed',
             self._deck.position_for('12'))
     self._deck['12'] = trash_lw
     self._trash_lw = trash_lw
     self._labware_info = self._determine_required_labware()
     self._moves = self._build_deck_moves()