feat(step-generation): create fn to get custom liquid class properties#18558
feat(step-generation): create fn to get custom liquid class properties#18558jerader merged 5 commits intochore_release-pd-8.5.0from
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## chore_release-pd-8.5.0 #18558 +/- ##
===========================================================
+ Coverage 25.98% 56.98% +31.00%
===========================================================
Files 3258 3274 +16
Lines 280648 281846 +1198
Branches 27621 33747 +6126
===========================================================
+ Hits 72923 160620 +87697
+ Misses 207698 121032 -86666
- Partials 27 194 +167
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
| z_offset?: number | ||
| mm_from_edge?: number | ||
| speed?: number | ||
| } |
There was a problem hiding this comment.
Hm, do these overlap at all with an existing schema? I'd prefer not to write another file with the same fields if we can help it.
There was a problem hiding this comment.
good call, i'll take a look!
There was a problem hiding this comment.
I suspect the answer is that there is an existing schema we could use, but we'd have to generate the schema file from either Sanniti's Python TypedDict, or from shared-data/liquid-class/schemas/1.json. (But still, generating the schema programmatically might be more reliable than typing it out by hand.)
#18558) to prep for emitting `transfer_with_liquid_class` and the other liquid class papi commands, this PR creates a helper function to get the custom liquid class properties.
# Overview
The custom liquid class dict for `define_liquid_class()` is kind of big.
This PR makes the dict formatting a bit more compact: if all the entries
in the dict are scalar, and their total length is short-ish, we will
emit the dict on a single line.
Before:
```
"offset": {
"x": 1,
"y": 0,
"z": 5,
},
```
After:
```
"offset": {"x": 1, "y": 0, "z": 5},
```
(See tests for other examples.)
This PR also cleans up the code for emitting lists of pairs as Python
tuples that was introduced in PR #18558.
## Test Plan and Hands on Testing
Added/updated unit tests.
## Risk assessment
Low.
Overview
to prep for emitting
transfer_with_liquid_classand the other liquid class papi commands, this PR creates a helper function to get the custom liquid class properties.please see Sanniti's PR here to review an example usage. Basically, this fn helps define the custom liquid class object that is used in
define_custom_liquid_class()Test Plan and Hands on Testing
Review the code and the test
Changelog
Review requests
transferArgs that don't map to anything areblowoutOffsetFromTopMm,dispenseOffsetFromBottomMm, andaspirateOffsetFromBottomMm. I'm pretty sure we can deprecate them but need to confirm.Risk assessment
low