@opentrons/step-generation 0.3.20-alpha.0 → 0.3.22-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/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/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/errorCreators.d.ts +3 -0
- package/lib/index.cjs +105 -100
- package/lib/index.mjs +7210 -6670
- package/lib/types.d.ts +152 -7
- package/lib/utils/misc.d.ts +48 -1
- package/lib/utils/pythonFileUtils.d.ts +2 -1
- 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
|
@@ -184,18 +184,33 @@ export type Ingredient = Omit<LiquidEntity, 'pythonName'>;
|
|
|
184
184
|
export interface Ingredients {
|
|
185
185
|
[liquidId: string]: Ingredient;
|
|
186
186
|
}
|
|
187
|
-
|
|
188
|
-
export interface RuntimeParameter {
|
|
187
|
+
interface RuntimeParameterBase {
|
|
189
188
|
variableName: string;
|
|
190
189
|
displayName: string;
|
|
191
|
-
|
|
192
|
-
|
|
190
|
+
description?: string;
|
|
191
|
+
}
|
|
192
|
+
export interface NumericRuntimeParameter extends RuntimeParameterBase {
|
|
193
|
+
type: 'float' | 'int';
|
|
194
|
+
default: number;
|
|
193
195
|
minimum?: number;
|
|
194
196
|
maximum?: number;
|
|
195
|
-
choices?:
|
|
197
|
+
choices?: number[];
|
|
196
198
|
unit?: string;
|
|
197
|
-
description?: string;
|
|
198
199
|
}
|
|
200
|
+
export interface BooleanRuntimeParameter extends RuntimeParameterBase {
|
|
201
|
+
type: 'boolean';
|
|
202
|
+
default: boolean;
|
|
203
|
+
}
|
|
204
|
+
export interface StringRuntimeParameter extends RuntimeParameterBase {
|
|
205
|
+
type: 'string';
|
|
206
|
+
default: string;
|
|
207
|
+
choices?: string[];
|
|
208
|
+
}
|
|
209
|
+
export interface CsvRuntimeParameter extends RuntimeParameterBase {
|
|
210
|
+
type: 'csv';
|
|
211
|
+
default: string;
|
|
212
|
+
}
|
|
213
|
+
export type RuntimeParameter = NumericRuntimeParameter | BooleanRuntimeParameter | StringRuntimeParameter | CsvRuntimeParameter;
|
|
199
214
|
export interface RuntimeParameters {
|
|
200
215
|
[variableName: string]: RuntimeParameter;
|
|
201
216
|
}
|
|
@@ -752,7 +767,7 @@ export interface TimelineFrame {
|
|
|
752
767
|
};
|
|
753
768
|
}
|
|
754
769
|
export type RobotState = TimelineFrame;
|
|
755
|
-
export type ErrorType = 'ABSORBANCE_READER_LID_CLOSED' | 'ABSORBANCE_READER_NO_GRIPPER' | 'ABSORBANCE_READER_NO_INITIALIZATION' | 'CANNOT_MOVE_WITH_GRIPPER' | 'CLOSING_THERMOCYCLER_WITH_INVALID_LABWARE_LID' | 'DROP_TIP_LOCATION_DOES_NOT_EXIST' | 'EQUIPMENT_DOES_NOT_EXIST' | 'FLEX_STACKER_NO_GRIPPER' | 'GRIPPER_REQUIRED' | 'HEATER_SHAKER_EAST_WEST_LATCH_OPEN' | 'HEATER_SHAKER_EAST_WEST_MULTI_CHANNEL' | 'HEATER_SHAKER_IS_SHAKING' | 'HEATER_SHAKER_LATCH_CLOSED' | 'HEATER_SHAKER_LATCH_OPEN' | 'HEATER_SHAKER_NORTH_SOUTH__OF_NON_TIPRACK_WITH_MULTI_CHANNEL' | 'HEATER_SHAKER_NORTH_SOUTH_EAST_WEST_SHAKING' | 'HOPPER_EMPTY' | 'HOPPER_FULL' | 'INCOMPLETE_PICKUP' | 'INSUFFICIENT_TIPS' | 'INVALID_SLOT' | 'INVALID_WAIT_CONDITION' | 'LABWARE_DISCARDED_IN_TRASH' | 'LABWARE_DOES_NOT_EXIST' | 'LABWARE_OFF_DECK' | 'LABWARE_ON_ANOTHER_ENTITY' | 'LABWARE_ON_HOPPER' | 'LIVE_TASK_ERROR' | 'MISMATCHED_SOURCE_DEST_WELLS' | 'MISMATCHED_STACKER_LABWARE_TYPE' | 'MISSING_96_CHANNEL_TIPRACK_ADAPTER' | 'MISSING_MODULE' | 'MISSING_PROFILE_STEP' | 'MISSING_PUMP_ACTIVITY' | 'MISSING_STACKER_LABWARE_TYPE' | 'MISSING_TEMPERATURE_STEP' | 'MOVE_LOCATION_NOT_SPECIFIED' | 'MODULE_PIPETTE_COLLISION_DANGER' | 'MULTI_ASPIRATE_VOLUME_TOO_HIGH' | 'MULTI_DISPENSE_VOLUME_TOO_HIGH' | 'NEXT_TIPRACK_HAS_LID' | 'NO_TIP_ON_PIPETTE' | 'NO_TIP_SELECTED' | 'PIPETTE_DOES_NOT_EXIST' | 'PIPETTE_HAS_TIP' | 'PIPETTE_VOLUME_EXCEEDED' | 'PIPETTING_INTO_COLUMN_4' | 'POSSIBLE_PIPETTE_COLLISION_THERMOCYCLER_LID' | 'POSSIBLE_PIPETTE_COLLISION_OUTSIDE_DECK_EXTENTS' | 'POSSIBLE_PIPETTE_COLLISION_ADJACENT_ADDRESSABLE_AREA' | 'REMOVE_96_CHANNEL_TIPRACK_ADAPTER' | 'RETRACT_BELOW_ASPIRATE' | 'RETRACT_BELOW_DISPENSE' | 'RETURN_TIP_UNAVAILABLE' | 'SHUTTLE_FULL' | 'SHUTTLE_EMPTY' | 'STACK_TOO_HIGH' | 'SUBMERGE_BELOW_ASPIRATE' | 'SUBMERGE_BELOW_DISPENSE' | 'TALL_LABWARE_EAST_WEST_OF_HEATER_SHAKER' | 'THERMOCYCLER_BUSY_WITH_PROFILE' | 'THERMOCYCLER_LID_CLOSED' | 'TIP_VOLUME_EXCEEDED' | 'TIPRACK_LID_NOT_ALLOWED_ON_DECK' | 'TOO_MANY_TIPS' | 'VACUUM_UNDER_PRESSURE';
|
|
770
|
+
export type ErrorType = 'ABSORBANCE_READER_LID_CLOSED' | 'ABSORBANCE_READER_NO_GRIPPER' | 'ABSORBANCE_READER_NO_INITIALIZATION' | 'CANNOT_MOVE_WITH_GRIPPER' | 'CLOSING_THERMOCYCLER_WITH_INVALID_LABWARE_LID' | 'DROP_TIP_LOCATION_DOES_NOT_EXIST' | 'EQUIPMENT_DOES_NOT_EXIST' | 'FLEX_STACKER_NO_GRIPPER' | 'GRIPPER_REQUIRED' | 'HEATER_SHAKER_EAST_WEST_LATCH_OPEN' | 'HEATER_SHAKER_EAST_WEST_MULTI_CHANNEL' | 'HEATER_SHAKER_IS_SHAKING' | 'HEATER_SHAKER_LATCH_CLOSED' | 'HEATER_SHAKER_LATCH_OPEN' | 'HEATER_SHAKER_NORTH_SOUTH__OF_NON_TIPRACK_WITH_MULTI_CHANNEL' | 'HEATER_SHAKER_NORTH_SOUTH_EAST_WEST_SHAKING' | 'HOPPER_EMPTY' | 'HOPPER_FULL' | 'INCOMPLETE_PICKUP' | 'INSUFFICIENT_TIPS' | 'INVALID_RUNTIME_PARAMETER' | 'INVALID_SLOT' | 'INVALID_WAIT_CONDITION' | 'LABWARE_DISCARDED_IN_TRASH' | 'LABWARE_DOES_NOT_EXIST' | 'LABWARE_OFF_DECK' | 'LABWARE_ON_ANOTHER_ENTITY' | 'LABWARE_ON_HOPPER' | 'LIVE_TASK_ERROR' | 'MISMATCHED_SOURCE_DEST_WELLS' | 'MISMATCHED_STACKER_LABWARE_TYPE' | 'MISSING_96_CHANNEL_TIPRACK_ADAPTER' | 'MISSING_MODULE' | 'MISSING_PROFILE_STEP' | 'MISSING_PUMP_ACTIVITY' | 'MISSING_STACKER_LABWARE_TYPE' | 'MISSING_TEMPERATURE_STEP' | 'MOVE_LOCATION_NOT_SPECIFIED' | 'MODULE_PIPETTE_COLLISION_DANGER' | 'MULTI_ASPIRATE_VOLUME_TOO_HIGH' | 'MULTI_DISPENSE_VOLUME_TOO_HIGH' | 'NEXT_TIPRACK_HAS_LID' | 'NO_TIP_ON_PIPETTE' | 'NO_TIP_SELECTED' | 'PIPETTE_DOES_NOT_EXIST' | 'PIPETTE_HAS_TIP' | 'PIPETTE_VOLUME_EXCEEDED' | 'PIPETTING_INTO_COLUMN_4' | 'POSSIBLE_PIPETTE_COLLISION_THERMOCYCLER_LID' | 'POSSIBLE_PIPETTE_COLLISION_OUTSIDE_DECK_EXTENTS' | 'POSSIBLE_PIPETTE_COLLISION_ADJACENT_ADDRESSABLE_AREA' | 'REMOVE_96_CHANNEL_TIPRACK_ADAPTER' | 'RETRACT_BELOW_ASPIRATE' | 'RETRACT_BELOW_DISPENSE' | 'RETURN_TIP_UNAVAILABLE' | 'SHUTTLE_FULL' | 'SHUTTLE_EMPTY' | 'STACK_TOO_HIGH' | 'SUBMERGE_BELOW_ASPIRATE' | 'SUBMERGE_BELOW_DISPENSE' | 'TALL_LABWARE_EAST_WEST_OF_HEATER_SHAKER' | 'THERMOCYCLER_BUSY_WITH_PROFILE' | 'THERMOCYCLER_LID_CLOSED' | 'TIP_VOLUME_EXCEEDED' | 'TIPRACK_LID_NOT_ALLOWED_ON_DECK' | 'TOO_MANY_TIPS' | 'VACUUM_UNDER_PRESSURE';
|
|
756
771
|
export interface CommandCreatorError {
|
|
757
772
|
message: string;
|
|
758
773
|
type: ErrorType;
|
|
@@ -821,4 +836,134 @@ export type PipetteMovementSafetyStatus = {
|
|
|
821
836
|
isSafe: false;
|
|
822
837
|
reason: UnsafePipetteMovementReason;
|
|
823
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 TouchTipStepGenArgs {
|
|
898
|
+
pipetteId: string;
|
|
899
|
+
labwareId: string;
|
|
900
|
+
wellName: string;
|
|
901
|
+
zOffsetFromTop: number | string;
|
|
902
|
+
speed?: number | string;
|
|
903
|
+
mmFromEdge?: number | string;
|
|
904
|
+
}
|
|
905
|
+
export interface PrepareToAspirateStepGenArgs {
|
|
906
|
+
pipetteId: string;
|
|
907
|
+
}
|
|
908
|
+
export interface PickUpTipStepGenArgs {
|
|
909
|
+
pipetteId: string;
|
|
910
|
+
labwareId: string;
|
|
911
|
+
wellName: string;
|
|
912
|
+
primaryNozzle: PrimaryNozzleConfigurationStyle;
|
|
913
|
+
nozzles: NozzleConfigurationStyle;
|
|
914
|
+
tipTrackingOption?: TipTrackingOption;
|
|
915
|
+
}
|
|
916
|
+
export interface DropTipStepGenArgs {
|
|
917
|
+
pipette: string;
|
|
918
|
+
wellName?: string;
|
|
919
|
+
dropTipLocation?: string;
|
|
920
|
+
isReturnTip?: boolean;
|
|
921
|
+
}
|
|
922
|
+
export interface DispenseWhileTrackingStepGenArgs {
|
|
923
|
+
pipetteId: string;
|
|
924
|
+
volume: number | string;
|
|
925
|
+
flowRate: number | string;
|
|
926
|
+
labwareId: string;
|
|
927
|
+
wellName: string;
|
|
928
|
+
trackFromLocation: RuntimeWellLocation;
|
|
929
|
+
trackToLocation: RuntimeWellLocation;
|
|
930
|
+
pushOut?: number | string;
|
|
931
|
+
}
|
|
932
|
+
export interface DispenseInPlaceStepGenArgs {
|
|
933
|
+
pipetteId: string;
|
|
934
|
+
volume: number | string;
|
|
935
|
+
flowRate: number | string;
|
|
936
|
+
pushOut?: number | string;
|
|
937
|
+
correctionVolume?: number | string;
|
|
938
|
+
isAirGap?: boolean;
|
|
939
|
+
}
|
|
940
|
+
export interface BlowOutInWellStepGenArgs {
|
|
941
|
+
pipetteId: string;
|
|
942
|
+
labwareId: string;
|
|
943
|
+
wellName: string;
|
|
944
|
+
flowRate: number | string;
|
|
945
|
+
wellLocation?: RuntimeWellLocation;
|
|
946
|
+
}
|
|
947
|
+
export interface BlowOutInPlaceStepGenArgs {
|
|
948
|
+
pipetteId: string;
|
|
949
|
+
flowRate: number | string;
|
|
950
|
+
}
|
|
951
|
+
export interface AspirateWhileTrackingStepGenArgs {
|
|
952
|
+
pipetteId: string;
|
|
953
|
+
volume: number | string;
|
|
954
|
+
flowRate: number | string;
|
|
955
|
+
labwareId: string;
|
|
956
|
+
wellName: string;
|
|
957
|
+
trackFromLocation: RuntimeWellLocation;
|
|
958
|
+
trackToLocation: RuntimeWellLocation;
|
|
959
|
+
}
|
|
960
|
+
export interface AspirateInPlaceStepGenArgs {
|
|
961
|
+
pipetteId: string;
|
|
962
|
+
volume: number | string;
|
|
963
|
+
flowRate: number | string;
|
|
964
|
+
correctionVolume?: number | string;
|
|
965
|
+
}
|
|
966
|
+
export interface SetTemperatureStepGenArgs extends ModuleStepGenArgs {
|
|
967
|
+
celsius: number | string;
|
|
968
|
+
}
|
|
824
969
|
export {};
|
package/lib/utils/misc.d.ts
CHANGED
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
import { COLUMN_4_SLOTS } from '../constants';
|
|
2
2
|
import type { ActiveNozzleNumber, AddressableAreaName, BlowoutParams, CutoutFixtureId, CutoutId, LabwareDefinition2, LabwareLocationSequence, LoadLabwareRunTimeCommand, LoadLidParams, LoadLidStackRunTimeCommand, NozzleConfigurationStyle, PipetteChannels, PipetteV2Specs, PositionReference, PrimaryNozzleConfigurationStyle, RobotType } from '@opentrons/shared-data';
|
|
3
|
-
import type { CommandCreator, CurriedCommandCreator, FlexStackerModuleState, InvariantContext, LabwareEntities, LabwareTemporalProperties, LocationLiquidState, ModuleEntities, PathOption, RobotState, SourceAndDest, StagingAreaEntities, TrashBinEntities, WasteChuteEntities } from '../types';
|
|
3
|
+
import type { CommandCreator, CurriedCommandCreator, FlexStackerModuleState, InvariantContext, LabwareEntities, LabwareTemporalProperties, LocationLiquidState, ModuleEntities, PathOption, RobotState, RuntimeParameters, SourceAndDest, StagingAreaEntities, TrashBinEntities, WasteChuteEntities } from '../types';
|
|
4
4
|
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;
|
|
@@ -187,4 +198,40 @@ export declare const getLabwareHasLid: (args: {
|
|
|
187
198
|
labwareEntities: LabwareEntities;
|
|
188
199
|
}) => boolean;
|
|
189
200
|
export declare const getIsInPipettableLocation: (location: string) => boolean;
|
|
201
|
+
/**
|
|
202
|
+
* Numbers pass through. Strings are runtime parameter variable names, and only
|
|
203
|
+
* float/int parameters resolve — `type` narrows `default` to `number`.
|
|
204
|
+
*/
|
|
205
|
+
export declare function resolveNumericRuntimeValue(value: number | string, runtimeParameters: RuntimeParameters): number | null;
|
|
206
|
+
/**
|
|
207
|
+
* A string id is literal unless it names a runtime parameter. Only string
|
|
208
|
+
* parameters resolve — `type` narrows `default` to `string`. Any other
|
|
209
|
+
* parameter type is invalid.
|
|
210
|
+
*/
|
|
211
|
+
export declare function resolveStringRuntimeValue(value: string, runtimeParameters: RuntimeParameters): string | null;
|
|
212
|
+
/**
|
|
213
|
+
* Booleans pass through. Strings are runtime parameter variable names, and only
|
|
214
|
+
* boolean parameters resolve — `type` narrows `default` to `boolean`.
|
|
215
|
+
*/
|
|
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
|
+
};
|
|
190
237
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ProtocolFile, RobotType } from '@opentrons/shared-data';
|
|
2
|
-
import type { ChangeTipOptions, InvariantContext, LabwareEntities, LabwareLiquidState, LabwareTemporalProperties, LiquidEntities, ModuleEntities, ModuleTemporalProperties, PipetteEntities, Timeline, TimelineFrame, TrashBinEntities, WasteChuteEntities } from '../types';
|
|
2
|
+
import type { ChangeTipOptions, InvariantContext, LabwareEntities, LabwareLiquidState, LabwareTemporalProperties, LiquidEntities, ModuleEntities, ModuleTemporalProperties, PipetteEntities, RuntimeParameters, Timeline, TimelineFrame, TrashBinEntities, WasteChuteEntities } from '../types';
|
|
3
3
|
export declare const PAPI_VERSION = "2.31";
|
|
4
4
|
export declare const PD_APPLICATION_VERSION = "9.0.1";
|
|
5
5
|
export declare function pythonImports(): string;
|
|
@@ -28,3 +28,4 @@ export declare const getSetStoredLabware: (moduleEntities: ModuleEntities, labwa
|
|
|
28
28
|
}, modules: {
|
|
29
29
|
[moduleId: string]: ModuleTemporalProperties;
|
|
30
30
|
}, robotStateTimeline: Timeline) => string;
|
|
31
|
+
export declare function getRunTimeParameters(runtimeParameters: RuntimeParameters): string;
|
|
@@ -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.22-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.22-alpha.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/lodash": "4.17.24"
|