@@ -619,6 +619,30 @@ def _mark_bad(self):
619
619
)
620
620
modify .save_tip_length_calibration (
621
621
calibration .pipette , tip_length_dict )
622
+ elif self .current_state == State .comparingPointOne and pipette_state :
623
+ # Here if we're on the second pipette, but the first slot we
624
+ # should make sure we mark both pipette cal and deck cal as bad.
625
+ pip_calibration = modify .mark_bad (
626
+ self ._pipette_calibrations [active_mount ],
627
+ SourceType .calibration_check )
628
+ deck_calibration = modify .mark_bad (
629
+ self ._deck_calibration ,
630
+ SourceType .calibration_check )
631
+ pipette_id = self .hw_pipette .pipette_id
632
+ assert pipette_id , 'Cannot update pipette offset calibraion'
633
+ modify .save_pipette_calibration (
634
+ offset = Point (* pip_calibration .offset ),
635
+ pip_id = pipette_id ,
636
+ mount = active_mount ,
637
+ tiprack_hash = pip_calibration .tiprack ,
638
+ tiprack_uri = pip_calibration .uri ,
639
+ cal_status = pip_calibration .status )
640
+ modify .save_robot_deck_attitude (
641
+ transform = deck_calibration .attitude ,
642
+ pip_id = deck_calibration .pipette_calibrated_with ,
643
+ lw_hash = deck_calibration .tiprack ,
644
+ source = deck_calibration .source ,
645
+ cal_status = deck_calibration .status )
622
646
elif self .current_state in pipette_offset_states :
623
647
calibration = modify .mark_bad (
624
648
self ._pipette_calibrations [active_mount ],
0 commit comments