@opentrons/step-generation 0.3.21-alpha.0 → 0.3.23-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/commandCreators/atomic/__tests__/absorbanceReaderInitialize.test.d.ts +1 -0
- package/lib/commandCreators/atomic/__tests__/absorbanceReaderRead.test.d.ts +1 -0
- package/lib/commandCreators/atomic/__tests__/heaterShakerCloseLatch.test.d.ts +1 -0
- package/lib/commandCreators/atomic/__tests__/heaterShakerDeactivateHeater.test.d.ts +1 -0
- package/lib/commandCreators/atomic/__tests__/heaterShakerSetTargetShakeSpeed.test.d.ts +1 -0
- package/lib/commandCreators/atomic/__tests__/heaterShakerStopShake.test.d.ts +1 -0
- package/lib/commandCreators/atomic/absorbanceReaderCloseLid.d.ts +2 -3
- package/lib/commandCreators/atomic/absorbanceReaderInitialize.d.ts +2 -3
- package/lib/commandCreators/atomic/absorbanceReaderOpenLid.d.ts +2 -3
- package/lib/commandCreators/atomic/absorbanceReaderRead.d.ts +2 -3
- package/lib/commandCreators/atomic/aspirateInPlace.d.ts +2 -3
- package/lib/commandCreators/atomic/aspirateWhileTracking.d.ts +2 -3
- package/lib/commandCreators/atomic/blowOutInPlace.d.ts +2 -3
- package/lib/commandCreators/atomic/blowOutInWell.d.ts +2 -3
- package/lib/commandCreators/atomic/configureForVolume.d.ts +2 -3
- package/lib/commandCreators/atomic/configureNozzleLayout.d.ts +2 -3
- package/lib/commandCreators/atomic/deactivateTemperature.d.ts +2 -3
- package/lib/commandCreators/atomic/dispenseInPlace.d.ts +2 -7
- package/lib/commandCreators/atomic/dispenseWhileTracking.d.ts +2 -3
- package/lib/commandCreators/atomic/dropTip.d.ts +2 -9
- package/lib/commandCreators/atomic/heaterShakerCloseLatch.d.ts +2 -3
- package/lib/commandCreators/atomic/heaterShakerDeactivateHeater.d.ts +2 -3
- package/lib/commandCreators/atomic/heaterShakerOpenLatch.d.ts +2 -3
- package/lib/commandCreators/atomic/heaterShakerSetTargetShakeSpeed.d.ts +2 -3
- package/lib/commandCreators/atomic/heaterShakerStopShake.d.ts +2 -3
- package/lib/commandCreators/atomic/liquidProbe.d.ts +2 -3
- package/lib/commandCreators/atomic/moveLabware.d.ts +2 -3
- package/lib/commandCreators/atomic/moveRelative.d.ts +2 -3
- package/lib/commandCreators/atomic/moveToCoordinates.d.ts +2 -3
- package/lib/commandCreators/atomic/moveToWell.d.ts +2 -3
- package/lib/commandCreators/atomic/pickUpTip.d.ts +2 -9
- package/lib/commandCreators/atomic/prepareToAspirate.d.ts +2 -3
- package/lib/commandCreators/atomic/setTemperature.d.ts +2 -3
- package/lib/commandCreators/atomic/touchTip.d.ts +2 -7
- package/lib/commandCreators/atomic/tryLiquidProbe.d.ts +2 -3
- package/lib/commandCreators/atomic/vacuumCloseVent.d.ts +2 -2
- package/lib/commandCreators/atomic/vacuumOpenVent.d.ts +2 -3
- package/lib/commandCreators/atomic/vacuumSetPumpPower.d.ts +2 -2
- package/lib/commandCreators/atomic/vacuumSetPumpPressure.d.ts +2 -2
- package/lib/commandCreators/atomic/vacuumStartRunProfile.d.ts +2 -2
- package/lib/commandCreators/atomic/vacuumStopPump.d.ts +2 -3
- package/lib/commandCreators/atomic/waitForTemperature.d.ts +2 -3
- package/lib/constants.d.ts +4 -0
- package/lib/getNextRobotStateAndWarnings/absorbanceReaderUpdates.d.ts +4 -5
- package/lib/getNextRobotStateAndWarnings/heaterShakerUpdates.d.ts +8 -9
- package/lib/index.cjs +104 -104
- package/lib/index.mjs +8440 -7721
- package/lib/types.d.ts +174 -0
- package/lib/utils/misc.d.ts +31 -0
- package/lib/utils/pythonFormat.d.ts +9 -2
- package/lib/utils/vacuumPythonArgs/getVacuumPumpHoldArgsPython.d.ts +1 -1
- package/package.json +2 -2
package/lib/types.d.ts
CHANGED
|
@@ -836,4 +836,178 @@ export type PipetteMovementSafetyStatus = {
|
|
|
836
836
|
isSafe: false;
|
|
837
837
|
reason: UnsafePipetteMovementReason;
|
|
838
838
|
};
|
|
839
|
+
export interface ModuleStepGenArgs {
|
|
840
|
+
moduleId: string;
|
|
841
|
+
}
|
|
842
|
+
export interface AbsorbanceReaderInitializeStepGenArgs {
|
|
843
|
+
moduleId: string;
|
|
844
|
+
measureMode: string;
|
|
845
|
+
sampleWavelengths: Array<number | string>;
|
|
846
|
+
referenceWavelength?: number | string;
|
|
847
|
+
}
|
|
848
|
+
export interface AbsorbanceReaderReadStepGenArgs {
|
|
849
|
+
moduleId: string;
|
|
850
|
+
fileName?: string | null;
|
|
851
|
+
}
|
|
852
|
+
export interface ConfigureForVolumeStepGenArgs {
|
|
853
|
+
pipetteId: string;
|
|
854
|
+
volume: number | string;
|
|
855
|
+
}
|
|
856
|
+
export interface ConfigureNozzleLayoutStepGenArgs {
|
|
857
|
+
pipetteId: string;
|
|
858
|
+
configurationParams: {
|
|
859
|
+
style: string;
|
|
860
|
+
primaryNozzle?: string;
|
|
861
|
+
backLeftNozzle?: string;
|
|
862
|
+
};
|
|
863
|
+
}
|
|
864
|
+
export interface VacuumSetPumpPowerStepGenArgs {
|
|
865
|
+
moduleId: string;
|
|
866
|
+
percentPower: number | string;
|
|
867
|
+
duration?: number | string;
|
|
868
|
+
ventAfter?: boolean | string;
|
|
869
|
+
}
|
|
870
|
+
export interface VacuumSetPumpPressureStepGenArgs {
|
|
871
|
+
moduleId: string;
|
|
872
|
+
gaugePressure: number | string;
|
|
873
|
+
duration?: number | string;
|
|
874
|
+
ventAfter?: boolean | string;
|
|
875
|
+
}
|
|
876
|
+
export interface VacuumStartRunProfileStepGenArgs {
|
|
877
|
+
moduleId: string;
|
|
878
|
+
profile: VacuumRunProfileParams['steps'];
|
|
879
|
+
ventAfter: boolean | string;
|
|
880
|
+
}
|
|
881
|
+
export interface WaitForTemperatureStepGenArgs {
|
|
882
|
+
moduleId: string;
|
|
883
|
+
celsius: number | string;
|
|
884
|
+
}
|
|
885
|
+
export interface HeaterShakerSetTargetShakeSpeedStepGenArgs {
|
|
886
|
+
moduleId: string;
|
|
887
|
+
rpm: number | string;
|
|
888
|
+
}
|
|
889
|
+
interface RuntimeWellLocation {
|
|
890
|
+
origin?: string;
|
|
891
|
+
offset?: {
|
|
892
|
+
x?: number | string;
|
|
893
|
+
y?: number | string;
|
|
894
|
+
z?: number | string;
|
|
895
|
+
};
|
|
896
|
+
}
|
|
897
|
+
export interface LiquidProbeStepGenArgs {
|
|
898
|
+
pipetteId: string;
|
|
899
|
+
labwareId: string;
|
|
900
|
+
wellName: string;
|
|
901
|
+
wellLocation?: RuntimeWellLocation;
|
|
902
|
+
}
|
|
903
|
+
export type TryLiquidProbeStepGenArgs = LiquidProbeStepGenArgs;
|
|
904
|
+
export interface TouchTipStepGenArgs {
|
|
905
|
+
pipetteId: string;
|
|
906
|
+
labwareId: string;
|
|
907
|
+
wellName: string;
|
|
908
|
+
zOffsetFromTop: number | string;
|
|
909
|
+
speed?: number | string;
|
|
910
|
+
mmFromEdge?: number | string;
|
|
911
|
+
}
|
|
912
|
+
export interface PrepareToAspirateStepGenArgs {
|
|
913
|
+
pipetteId: string;
|
|
914
|
+
}
|
|
915
|
+
export interface PickUpTipStepGenArgs {
|
|
916
|
+
pipetteId: string;
|
|
917
|
+
labwareId: string;
|
|
918
|
+
wellName: string;
|
|
919
|
+
primaryNozzle: PrimaryNozzleConfigurationStyle;
|
|
920
|
+
nozzles: NozzleConfigurationStyle;
|
|
921
|
+
tipTrackingOption?: TipTrackingOption;
|
|
922
|
+
}
|
|
923
|
+
export interface DropTipStepGenArgs {
|
|
924
|
+
pipette: string;
|
|
925
|
+
wellName?: string;
|
|
926
|
+
dropTipLocation?: string;
|
|
927
|
+
isReturnTip?: boolean;
|
|
928
|
+
}
|
|
929
|
+
export interface DispenseWhileTrackingStepGenArgs {
|
|
930
|
+
pipetteId: string;
|
|
931
|
+
volume: number | string;
|
|
932
|
+
flowRate: number | string;
|
|
933
|
+
labwareId: string;
|
|
934
|
+
wellName: string;
|
|
935
|
+
trackFromLocation: RuntimeWellLocation;
|
|
936
|
+
trackToLocation: RuntimeWellLocation;
|
|
937
|
+
pushOut?: number | string;
|
|
938
|
+
}
|
|
939
|
+
export interface DispenseInPlaceStepGenArgs {
|
|
940
|
+
pipetteId: string;
|
|
941
|
+
volume: number | string;
|
|
942
|
+
flowRate: number | string;
|
|
943
|
+
pushOut?: number | string;
|
|
944
|
+
correctionVolume?: number | string;
|
|
945
|
+
isAirGap?: boolean;
|
|
946
|
+
}
|
|
947
|
+
export interface BlowOutInWellStepGenArgs {
|
|
948
|
+
pipetteId: string;
|
|
949
|
+
labwareId: string;
|
|
950
|
+
wellName: string;
|
|
951
|
+
flowRate: number | string;
|
|
952
|
+
wellLocation?: RuntimeWellLocation;
|
|
953
|
+
}
|
|
954
|
+
export interface BlowOutInPlaceStepGenArgs {
|
|
955
|
+
pipetteId: string;
|
|
956
|
+
flowRate: number | string;
|
|
957
|
+
}
|
|
958
|
+
export interface AspirateWhileTrackingStepGenArgs {
|
|
959
|
+
pipetteId: string;
|
|
960
|
+
volume: number | string;
|
|
961
|
+
flowRate: number | string;
|
|
962
|
+
labwareId: string;
|
|
963
|
+
wellName: string;
|
|
964
|
+
trackFromLocation: RuntimeWellLocation;
|
|
965
|
+
trackToLocation: RuntimeWellLocation;
|
|
966
|
+
}
|
|
967
|
+
export interface AspirateInPlaceStepGenArgs {
|
|
968
|
+
pipetteId: string;
|
|
969
|
+
volume: number | string;
|
|
970
|
+
flowRate: number | string;
|
|
971
|
+
correctionVolume?: number | string;
|
|
972
|
+
}
|
|
973
|
+
export interface SetTemperatureStepGenArgs extends ModuleStepGenArgs {
|
|
974
|
+
celsius: number | string;
|
|
975
|
+
}
|
|
976
|
+
export interface MoveRelativeStepGenArgs {
|
|
977
|
+
pipetteId: string;
|
|
978
|
+
axis: string;
|
|
979
|
+
distance: number | string;
|
|
980
|
+
}
|
|
981
|
+
export interface MoveToCoordinatesStepGenArgs {
|
|
982
|
+
pipetteId: string;
|
|
983
|
+
coordinates: {
|
|
984
|
+
x: number | string;
|
|
985
|
+
y: number | string;
|
|
986
|
+
z: number | string;
|
|
987
|
+
};
|
|
988
|
+
minimumZHeight?: number | string;
|
|
989
|
+
forceDirect?: boolean | string;
|
|
990
|
+
}
|
|
991
|
+
export interface MoveToWellStepGenArgs {
|
|
992
|
+
pipetteId: string;
|
|
993
|
+
labwareId: string;
|
|
994
|
+
wellName: string;
|
|
995
|
+
wellLocation?: RuntimeWellLocation;
|
|
996
|
+
minimumZHeight?: number | string;
|
|
997
|
+
forceDirect?: boolean | string;
|
|
998
|
+
speed?: number | string;
|
|
999
|
+
}
|
|
1000
|
+
export interface MoveLabwareStepGenArgs {
|
|
1001
|
+
labwareId: string;
|
|
1002
|
+
strategy: string;
|
|
1003
|
+
newLocation: string | {
|
|
1004
|
+
slotName: string;
|
|
1005
|
+
} | {
|
|
1006
|
+
moduleId: string;
|
|
1007
|
+
} | {
|
|
1008
|
+
labwareId: string;
|
|
1009
|
+
} | {
|
|
1010
|
+
addressableAreaName: string;
|
|
1011
|
+
};
|
|
1012
|
+
}
|
|
839
1013
|
export {};
|
package/lib/utils/misc.d.ts
CHANGED
|
@@ -5,6 +5,17 @@ export declare const AIR: '__air__';
|
|
|
5
5
|
export declare const SOURCE_WELL_BLOWOUT_DESTINATION: 'source_well';
|
|
6
6
|
export declare const DEST_WELL_BLOWOUT_DESTINATION: 'dest_well';
|
|
7
7
|
export declare function getIsVacuumSpacer(def: LabwareDefinition2): boolean;
|
|
8
|
+
export declare function getIsStackableVacuumSpacer(def: LabwareDefinition2): boolean;
|
|
9
|
+
export declare function getIsVacuumSpacerSeat(def: LabwareDefinition2): boolean;
|
|
10
|
+
export declare const getStackableVacuumSpacerLoadNamesInStack: (stack: string[], labwareById: Record<string, {
|
|
11
|
+
def: LabwareDefinition2;
|
|
12
|
+
}>) => string[];
|
|
13
|
+
export declare const getCanPlaceStackableVacuumSpacer: (movingDef: LabwareDefinition2, stack: string[], labwareById: Record<string, {
|
|
14
|
+
def: LabwareDefinition2;
|
|
15
|
+
}>) => {
|
|
16
|
+
isCompatible: boolean;
|
|
17
|
+
isAboveStackLimit: boolean;
|
|
18
|
+
};
|
|
8
19
|
type trashOrLabware = 'wasteChute' | 'trashBin' | 'labware' | null;
|
|
9
20
|
export declare const getCutoutIdByAddressableArea: (addressableAreaName: AddressableAreaName, cutoutFixtureId: CutoutFixtureId, robotType: RobotType) => CutoutId;
|
|
10
21
|
export declare function getWasteChuteAddressableAreaNamePip(channels: PipetteChannels): AddressableAreaName;
|
|
@@ -203,4 +214,24 @@ export declare function resolveStringRuntimeValue(value: string, runtimeParamete
|
|
|
203
214
|
* boolean parameters resolve — `type` narrows `default` to `boolean`.
|
|
204
215
|
*/
|
|
205
216
|
export declare function resolveBooleanRuntimeValue(value: boolean | string, runtimeParameters: RuntimeParameters): boolean | null;
|
|
217
|
+
export declare function resolveAllowedRuntimeValue(value: string, allowed: readonly string[], runtimeParameters: RuntimeParameters): string | null;
|
|
218
|
+
export declare function pythonRuntimeString(raw: string, resolved: string, runtimeParameters: RuntimeParameters): string;
|
|
219
|
+
export declare function resolveRuntimeWellLocation(location: {
|
|
220
|
+
origin?: string;
|
|
221
|
+
offset?: {
|
|
222
|
+
x?: number | string;
|
|
223
|
+
y?: number | string;
|
|
224
|
+
z?: number | string;
|
|
225
|
+
};
|
|
226
|
+
} | undefined, runtimeParameters: RuntimeParameters): {
|
|
227
|
+
location: {
|
|
228
|
+
origin?: string;
|
|
229
|
+
offset?: {
|
|
230
|
+
x?: number;
|
|
231
|
+
y?: number;
|
|
232
|
+
z?: number;
|
|
233
|
+
};
|
|
234
|
+
} | undefined;
|
|
235
|
+
invalidParameterNames: string[];
|
|
236
|
+
};
|
|
206
237
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/** Utility functions for Python code generation. */
|
|
2
|
-
import type { WellLocation } from '@opentrons/shared-data/command/types/support';
|
|
3
2
|
/** The variable name for the ProtocolContext object in the run() function.
|
|
4
3
|
* Our docs call it `protocol`, which is slightly misleading since the object is not
|
|
5
4
|
* the protocol itself, but we'll try to stay consistent with the docs.
|
|
@@ -14,6 +13,7 @@ export declare const INDENT = " ";
|
|
|
14
13
|
export declare function indentPyLines(text: string): string;
|
|
15
14
|
/** Render an arbitrary JavaScript value to Python. */
|
|
16
15
|
export declare function formatPyValue(value: any): string;
|
|
16
|
+
export declare function formatPyRuntimeValue(value: number | boolean | string): string;
|
|
17
17
|
/** Render the string value to Python. */
|
|
18
18
|
export declare function formatPyStr(str: string): string;
|
|
19
19
|
/** Render an array value as a Python tuple. */
|
|
@@ -25,5 +25,12 @@ export declare function formatPyDict(dict: Record<string, any>): string;
|
|
|
25
25
|
/** Render a WellLocation to Python.
|
|
26
26
|
* Append the returned string to a Python well reference to get the wellLocation relative to the well.
|
|
27
27
|
*/
|
|
28
|
-
export declare function formatPyWellLocation(wellLocation?:
|
|
28
|
+
export declare function formatPyWellLocation(wellLocation?: {
|
|
29
|
+
origin?: string;
|
|
30
|
+
offset?: {
|
|
31
|
+
x?: number | string;
|
|
32
|
+
y?: number | string;
|
|
33
|
+
z?: number | string;
|
|
34
|
+
};
|
|
35
|
+
}): string;
|
|
29
36
|
export declare function getChunkForIndentingLists(lists: string[], size: number): string[][];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getVacuumPumpHoldArgsPython: (duration: number, ventAfter?: boolean) => string[];
|
|
1
|
+
export declare const getVacuumPumpHoldArgsPython: (duration: number | string, ventAfter?: boolean | string) => string[];
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"name": "@opentrons/step-generation",
|
|
11
11
|
"productName": "Opentrons Step Generation",
|
|
12
|
-
"version": "0.3.
|
|
12
|
+
"version": "0.3.23-alpha.0",
|
|
13
13
|
"description": "Step generation",
|
|
14
14
|
"main": "lib/index.cjs",
|
|
15
15
|
"types": "lib/index.d.ts",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"immer": "^10.1.3",
|
|
38
38
|
"lodash": "4.18.1",
|
|
39
39
|
"uuid": "14.0.0",
|
|
40
|
-
"@opentrons/shared-data": "0.3.
|
|
40
|
+
"@opentrons/shared-data": "0.3.23-alpha.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/lodash": "4.17.24"
|