Skip to content
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

fix(api): set parent for in-slot offsets to empty #6211

Merged
merged 1 commit into from
Jul 27, 2020

Conversation

sfoster1
Copy link
Member

We store calibration offsets by parent - including by slot. When an
offset is stored for a slot, the parent key (which is used to determine
the location of the calibration file) is saved as the labware hash.

However, this is not how it should be expressed when loaded - the parent
of a slot-relative offset is empty until and unless we start saving
different calibration offsets for the same labware in different slots.

Also, fill out the example fields for the labware calibration model in
the robot server and restore an early return in get labware calibrations
if there are no calibrations to return.

This also is required to support #6100

We store calibration offsets by parent - including by slot. When an
offset is stored for a slot, the parent key (which is used to determine
the location of the calibration file) is saved as the labware hash.

However, this is not how it should be expressed when loaded - the parent
of a slot-relative offset is empty until and unless we start saving
different calibration offsets for the same labware in different slots.

Also, fill out the example fields for the labware calibration model in
the robot server and restore an early return in get labware calibrations
if there are no calibrations to return.
@sfoster1 sfoster1 added api Affects the `api` project robot server Affects the `robot-server` project labels Jul 24, 2020
@sfoster1 sfoster1 requested review from b-cooper and amitlissack July 24, 2020 15:13
@sfoster1 sfoster1 requested a review from a team as a code owner July 24, 2020 15:13
Copy link
Contributor

@b-cooper b-cooper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code looks good to me ⚡

@sfoster1 sfoster1 merged commit 463d56d into edge Jul 27, 2020
@sfoster1 sfoster1 deleted the api_no-parent-for-slot-cal branch July 27, 2020 17:49
sfoster1 added a commit that referenced this pull request Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Affects the `api` project robot server Affects the `robot-server` project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants