-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf(api): P1000 pick-up-tip shake and drop-tip plunger #2446
Changes from all commits
00929fc
664e6da
4a96ecf
06c5c92
1980a9a
10cc7e9
44efe1c
d906753
5259e0c
e66148c
3308e45
4893eea
af8b820
e6931b6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1004,8 +1004,8 @@ def test_tip_tracking_simple(self): | |
self.p200.pick_up_tip() | ||
|
||
assert self.p200.move_to.mock_calls == \ | ||
self.build_pick_up_tip(self.tiprack1[0]) + \ | ||
self.build_pick_up_tip(self.tiprack1[1]) | ||
self.build_pick_up_tip(self.p200, self.tiprack1[0]) + \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Comment: Why did these have to change? Were they failing? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yea, the movements generated are different depending on the pipette now, because they have different distances that they move down to make the seal (10 vs 15 mm) |
||
self.build_pick_up_tip(self.p200, self.tiprack1[1]) | ||
|
||
def test_simulate_plunger_while_enqueing(self): | ||
|
||
|
@@ -1060,9 +1060,9 @@ def test_tip_tracking_chain(self): | |
|
||
expected = [] | ||
for i in range(0, total_tips_per_plate): | ||
expected.extend(self.build_pick_up_tip(self.tiprack1[i])) | ||
expected.extend(self.build_pick_up_tip(self.p200, self.tiprack1[i])) | ||
for i in range(0, total_tips_per_plate): | ||
expected.extend(self.build_pick_up_tip(self.tiprack2[i])) | ||
expected.extend(self.build_pick_up_tip(self.p200, self.tiprack2[i])) | ||
|
||
self.assertEqual( | ||
self.p200.move_to.mock_calls, | ||
|
@@ -1103,9 +1103,11 @@ def test_tip_tracking_chain_multi_channel(self): | |
|
||
expected = [] | ||
for i in range(0, 12): | ||
expected.extend(self.build_pick_up_tip(self.tiprack1.cols[i])) | ||
expected.extend( | ||
self.build_pick_up_tip(p200_multi, self.tiprack1.cols[i])) | ||
for i in range(0, 12): | ||
expected.extend(self.build_pick_up_tip(self.tiprack2.cols[i])) | ||
expected.extend( | ||
self.build_pick_up_tip(p200_multi, self.tiprack2.cols[i])) | ||
|
||
self.assertEqual( | ||
p200_multi.move_to.mock_calls, | ||
|
@@ -1163,14 +1165,16 @@ def test_direct_movement_within_well(self): | |
] | ||
self.assertEqual(self.robot.move_to.mock_calls, expected) | ||
|
||
def build_pick_up_tip(self, well): | ||
plunge = -10 | ||
def build_pick_up_tip(self, pipette, well): | ||
return [ | ||
mock.call(well.top()), | ||
mock.call(well.top(plunge), strategy='direct'), | ||
mock.call( | ||
well.top(-pipette._pick_up_distance), strategy='direct'), | ||
mock.call(well.top(), strategy='direct'), | ||
mock.call(well.top(plunge - 1), strategy='direct'), | ||
mock.call( | ||
well.top(-pipette._pick_up_distance - 1), strategy='direct'), | ||
mock.call(well.top(), strategy='direct'), | ||
mock.call(well.top(plunge - 2), strategy='direct'), | ||
mock.call( | ||
well.top(-pipette._pick_up_distance - 2), strategy='direct'), | ||
mock.call(well.top(), strategy='direct') | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I can tell, the pick up distance (and current) is added here, and added to the configs, but not actually passed from the configs to
Pipette.__init__()
. We need to add it to the call inInstrumentsWrapper._create_pipette_from_config()
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also if we're going to add
pick_up_current
as an argument here, we should pass it as an argument in_create_pipette_from_config
rather than callingset_pick_up_current()
in _create_pipette_from_config()` after the pipette object is initialized.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done