def deck_calibration_test(self): """ Deck calibration. """ config = { 'calibration': { 'a1': { 'type': 'reservoir', 'x': 10, 'y': 11, 'z': 12 } } } deck = Deck(a1=Reservoir()) deck.configure(config) margin = self.expected_margin reservoir = deck.slot('a1') col1 = reservoir.row(1).coordinates() col2 = reservoir.row(2).coordinates() self.assertEqual(col1, (10, 11, 12)) self.assertEqual(col2, (10, 11 + margin, 12))
def deck_calibration_test(self): """ Verify calibration offsets. """ config = { 'calibration': { 'a1': { 'type': 'tiprack_P2', 'x': 10, 'y': 11, 'z': 12 } } } deck = Deck(a1=tipracks.Tiprack()) deck.configure(config) margin = self.expected_margin rack = deck.slot('a1') a1 = rack.tip('a1').coordinates() b2 = rack.tip('b2').coordinates() self.assertEqual(a1, (10, 11, 12)) self.assertEqual(b2, (10 + margin, 11 + margin, 12))
def deck_calibration_test(self): """Calibrates through deck.""" config = { 'calibration': { 'a1': { 'type': 'microplate_96', 'x': 10, 'y': 11, 'z': 12 } } } deck = Deck(a1=Microplate()) deck.configure(config) margin = self.expected_margin plate = deck.slot('a1') a1 = plate.well('a1').coordinates() b2 = plate.well('b2').coordinates() self.assertEqual(a1, (10, 11, 12)) self.assertEqual(b2, (10 + margin, 11 + margin, 12))