@opentrons/step-generation 0.3.0-alpha.1 → 0.3.2-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__/vacuumOpenVent.test.d.ts +1 -0
- package/lib/commandCreators/atomic/__tests__/vacuumSetPumpPower.test.d.ts +1 -0
- package/lib/commandCreators/atomic/__tests__/vacuumSetPumpPressure.test.d.ts +1 -0
- package/lib/commandCreators/atomic/__tests__/vacuumStartRunProfile.test.d.ts +1 -0
- package/lib/commandCreators/atomic/__tests__/vacuumStopPump.test.d.ts +1 -0
- package/lib/commandCreators/atomic/index.d.ts +6 -0
- package/lib/commandCreators/atomic/vacuumCloseVent.d.ts +2 -0
- package/lib/commandCreators/atomic/vacuumOpenVent.d.ts +3 -0
- package/lib/commandCreators/atomic/vacuumSetPumpPower.d.ts +2 -0
- package/lib/commandCreators/atomic/vacuumSetPumpPressure.d.ts +2 -0
- package/lib/commandCreators/atomic/vacuumStartRunProfile.d.ts +2 -0
- package/lib/commandCreators/atomic/vacuumStopPump.d.ts +3 -0
- package/lib/commandCreators/compound/index.d.ts +3 -0
- package/lib/commandCreators/compound/vacuumCloseVentSetPumpPower.d.ts +2 -0
- package/lib/commandCreators/compound/vacuumCloseVentSetPumpPressure.d.ts +2 -0
- package/lib/commandCreators/compound/vacuumCloseVentStartProfile.d.ts +2 -0
- package/lib/commandCreators/index.d.ts +2 -2
- package/lib/constants.d.ts +6 -3
- package/lib/errorCreators.d.ts +7 -2
- package/lib/getNextRobotStateAndWarnings/__tests__/forSetTipState.test.d.ts +1 -0
- package/lib/getNextRobotStateAndWarnings/__tests__/vacuumUpdates.test.d.ts +1 -0
- package/lib/getNextRobotStateAndWarnings/forSetTipState.d.ts +3 -0
- package/lib/getNextRobotStateAndWarnings/forWaitForTasks.d.ts +2 -1
- package/lib/getNextRobotStateAndWarnings/thermocyclerUpdates.d.ts +2 -2
- package/lib/getNextRobotStateAndWarnings/vacuumUpdates.d.ts +9 -0
- package/lib/index.cjs +107 -162
- package/lib/index.d.ts +1 -1
- package/lib/index.mjs +7661 -9898
- package/lib/types.d.ts +142 -15
- package/lib/utils/__tests__/getModuleHasLiveTask.test.d.ts +1 -0
- package/lib/utils/__tests__/getPipetteCriticalPoint.test.d.ts +1 -0
- package/lib/utils/__tests__/getPipetteMovementSafetyStatus.test.d.ts +1 -0
- package/lib/utils/getModuleHasLiveTask.d.ts +2 -0
- package/lib/utils/getPipetteCriticalPoint.d.ts +3 -0
- package/lib/utils/index.d.ts +2 -1
- package/lib/utils/misc.d.ts +1 -0
- package/lib/utils/safePipetteMovements.d.ts +5 -9
- package/lib/utils/vacuumPythonArgs/__tests__/getVacuumProfileStepString.test.d.ts +1 -0
- package/lib/utils/vacuumPythonArgs/__tests__/getVacuumPumpHoldArgsPython.test.d.ts +1 -0
- package/lib/utils/vacuumPythonArgs/getVacuumProfileStepString.d.ts +2 -0
- package/lib/utils/vacuumPythonArgs/getVacuumPumpHoldArgsPython.d.ts +1 -0
- package/package.json +5 -5
- /package/lib/{utils/__tests__/getIsSafePipetteMovement.test.d.ts → commandCreators/atomic/__tests__/vacuumCloseVent.test.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -33,4 +33,10 @@ export { thermocyclerStartRunExtendedProfile } from './thermocyclerStartRunExten
|
|
|
33
33
|
export { prepareToAspirate } from './prepareToAspirate';
|
|
34
34
|
export { setTemperature } from './setTemperature';
|
|
35
35
|
export { touchTip } from './touchTip';
|
|
36
|
+
export { vacuumCloseVent } from './vacuumCloseVent';
|
|
37
|
+
export { vacuumOpenVent } from './vacuumOpenVent';
|
|
38
|
+
export { vacuumSetPumpPower } from './vacuumSetPumpPower';
|
|
39
|
+
export { vacuumSetPumpPressure } from './vacuumSetPumpPressure';
|
|
40
|
+
export { vacuumStartRunProfile } from './vacuumStartRunProfile';
|
|
41
|
+
export { vacuumStopPump } from './vacuumStopPump';
|
|
36
42
|
export { waitForTemperature } from './waitForTemperature';
|
|
@@ -17,4 +17,7 @@ export { replaceTip } from './replaceTip';
|
|
|
17
17
|
export { thermocyclerProfileStep } from './thermocyclerProfileStep';
|
|
18
18
|
export { thermocyclerStateStep } from './thermocyclerStateStep';
|
|
19
19
|
export { transfer } from './transfer';
|
|
20
|
+
export { vacuumCloseVentSetPumpPower } from './vacuumCloseVentSetPumpPower';
|
|
21
|
+
export { vacuumCloseVentSetPumpPressure } from './vacuumCloseVentSetPumpPressure';
|
|
22
|
+
export { vacuumCloseVentStartProfile } from './vacuumCloseVentStartProfile';
|
|
20
23
|
export { waitForModuleTask } from './waitForModuleTask';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { absorbanceReaderCloseInitialize, absorbanceReaderCloseRead, consolidate, distribute, dropTipInTrash, dropTipInWasteChute, heaterShaker, mix, replaceTip, thermocyclerProfileStep, thermocyclerStateStep, transfer, waitForModuleTask, } from './compound';
|
|
2
|
-
export { absorbanceReaderCloseLid, absorbanceReaderInitialize, absorbanceReaderOpenLid, absorbanceReaderRead, aspirate, blowOutInWell, captureImage, comment, deactivateTemperature, delay, disengageMagnet, dispense, dropTip, dropTipInPlace, engageMagnet, flexStackerEmpty, flexStackerFillItems, flexStackerRetrieve, flexStackerStore, moveLabware, moveToAddressableArea, moveToAddressableAreaForDropTip, setTemperature, touchTip, waitForTemperature, } from './atomic';
|
|
1
|
+
export { absorbanceReaderCloseInitialize, absorbanceReaderCloseRead, consolidate, distribute, dropTipInTrash, dropTipInWasteChute, heaterShaker, mix, replaceTip, thermocyclerProfileStep, thermocyclerStateStep, transfer, vacuumCloseVentSetPumpPressure, vacuumCloseVentSetPumpPower, vacuumCloseVentStartProfile, waitForModuleTask, } from './compound';
|
|
2
|
+
export { absorbanceReaderCloseLid, absorbanceReaderInitialize, absorbanceReaderOpenLid, absorbanceReaderRead, aspirate, blowOutInWell, captureImage, comment, deactivateTemperature, delay, disengageMagnet, dispense, dropTip, dropTipInPlace, engageMagnet, flexStackerEmpty, flexStackerFillItems, flexStackerRetrieve, flexStackerStore, moveLabware, moveToAddressableArea, moveToAddressableAreaForDropTip, setTemperature, touchTip, vacuumCloseVent, vacuumOpenVent, vacuumSetPumpPower, vacuumSetPumpPressure, vacuumStartRunProfile, vacuumStopPump, waitForTemperature, } from './atomic';
|
package/lib/constants.d.ts
CHANGED
|
@@ -41,15 +41,18 @@ export type HopperLocationMapKey = keyof typeof FAKE_HOPPER_LOCATION_MAP;
|
|
|
41
41
|
export declare const BOTTOM_UP_LABWARE_POOL_KEYS: Array<keyof FlexStackerStoredLabwareGroup>;
|
|
42
42
|
export declare const BOTTOM_UP_STORED_LABWARE_URI_KEYS: Array<keyof StackerStoredLabwareDefinitionURIs>;
|
|
43
43
|
export declare const SLOT_LOCATIONS_TO_FAKE_HOPPER_LOCATIONS: Record<DeckSlotId, string>;
|
|
44
|
+
export declare const VACUUM_DOCK_LOCATION = "vacuumDock";
|
|
45
|
+
export declare const VACUUM_DOCK_ADDRESSABLE_AREA: "vacuumModuleV1DockA4";
|
|
44
46
|
export declare const VACUUM_VENT_OPEN: 'open';
|
|
45
47
|
export declare const VACUUM_VENT_CLOSED: 'closed';
|
|
46
48
|
export declare const VACUUM_MODE_POWER: 'power';
|
|
47
49
|
export declare const VACUUM_MODE_PRESSURE: 'pressure';
|
|
48
50
|
export declare const VACUUM_PROGRAM_STATE: 'state';
|
|
49
51
|
export declare const VACUUM_PROGRAM_PROFILE: 'profile';
|
|
50
|
-
export declare const
|
|
52
|
+
export declare const VACUUM_STATE_PUMP_OFF: 'pumpOff';
|
|
53
|
+
export declare const VACUUM_STATE_PUMP_ON: 'pumpOn';
|
|
51
54
|
export declare const VACUUM_STATE_VENT: 'vent';
|
|
52
55
|
export declare const VACUUM_VENT_SET_OPEN: 'open';
|
|
53
56
|
export declare const VACUUM_VENT_SET_CLOSED: 'closed';
|
|
54
|
-
export declare const
|
|
55
|
-
export declare const
|
|
57
|
+
export declare const VACUUM_DEACTIVATED: 'VACUUM_DEACTIVATED';
|
|
58
|
+
export declare const VACUUM_AT_TARGET: 'VACUUM_AT_TARGET';
|
package/lib/errorCreators.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Utility fns to create reusable CommandCreatorErrors */
|
|
2
|
-
import type { CommandCreatorError } from './types';
|
|
2
|
+
import type { CommandCreatorError, UnsafePipetteMovementReason } from './types';
|
|
3
3
|
export declare function insufficientTips(): CommandCreatorError;
|
|
4
4
|
export declare function missingAdapter(): CommandCreatorError;
|
|
5
5
|
export declare function removeAdapter(): CommandCreatorError;
|
|
@@ -53,7 +53,9 @@ export declare const flexStackerLabwareTypeMissing: () => CommandCreatorError;
|
|
|
53
53
|
export declare const flexStackerHopperFull: () => CommandCreatorError;
|
|
54
54
|
export declare const heaterShakerIsShaking: () => CommandCreatorError;
|
|
55
55
|
export declare const tallLabwareEastWestOfHeaterShaker: (position: 'left' | 'right') => CommandCreatorError;
|
|
56
|
-
export declare const possiblePipetteCollision: (
|
|
56
|
+
export declare const possiblePipetteCollision: (args: {
|
|
57
|
+
unsafePipetteMovementReason: UnsafePipetteMovementReason;
|
|
58
|
+
}) => CommandCreatorError;
|
|
57
59
|
export declare const heaterShakerEastWestWithLatchOpen: () => CommandCreatorError;
|
|
58
60
|
export declare const heaterShakerNorthSouthEastWestShaking: () => CommandCreatorError;
|
|
59
61
|
export declare const heaterShakerEastWestOfMultiChannelPipette: () => CommandCreatorError;
|
|
@@ -87,3 +89,6 @@ export declare const stackTooHigh: (args: {
|
|
|
87
89
|
export declare const tooManyTips: () => CommandCreatorError;
|
|
88
90
|
export declare const incompletePickup: () => CommandCreatorError;
|
|
89
91
|
export declare const labwareOnHopper: () => CommandCreatorError;
|
|
92
|
+
export declare const missingPumpActivity: () => CommandCreatorError;
|
|
93
|
+
export declare const invalidWaitCondition: (waitCondition: string) => CommandCreatorError;
|
|
94
|
+
export declare const liveTaskError: () => CommandCreatorError;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { SetTipStateParams } from '@opentrons/shared-data';
|
|
2
|
+
import type { InvariantContext, RobotStateAndWarnings } from '../types';
|
|
3
|
+
export declare function forSetTipState(params: SetTipStateParams, _invariantContext: InvariantContext, robotStateAndWarnings: RobotStateAndWarnings): void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import type { WaitForTasksParams } from '@opentrons/shared-data';
|
|
1
|
+
import type { ModuleType, WaitForTasksParams } from '@opentrons/shared-data';
|
|
2
2
|
import type { InvariantContext, RobotStateAndWarnings } from '../types';
|
|
3
3
|
export declare function forWaitForTasks(params: WaitForTasksParams, invariantContext: InvariantContext, robotStateAndWarnings: RobotStateAndWarnings): void;
|
|
4
|
+
export declare const handleWaitForTaskForModules: (taskId: string, robotStateAndWarnings: RobotStateAndWarnings, moduleType?: ModuleType) => boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TCExtendedProfileParams, TCStartExtendedProfileParams } from '@opentrons/shared-data';
|
|
2
2
|
import type { ModuleOnlyParams, TCProfileParams, TemperatureParams, ThermocyclerSetTargetBlockTemperatureParams } from '@opentrons/shared-data/protocol/types/schemaV6/command/module';
|
|
3
|
-
import type { InvariantContext, RobotStateAndWarnings } from '../types';
|
|
3
|
+
import type { InvariantContext, RobotStateAndWarnings, ThermocyclerModuleState } from '../types';
|
|
4
4
|
export declare const forThermocyclerSetTargetBlockTemperature: (params: ThermocyclerSetTargetBlockTemperatureParams, invariantContext: InvariantContext, robotStateAndWarnings: RobotStateAndWarnings) => void;
|
|
5
5
|
export declare const forThermocyclerSetTargetLidTemperature: (params: TemperatureParams, invariantContext: InvariantContext, robotStateAndWarnings: RobotStateAndWarnings) => void;
|
|
6
6
|
export declare const forThermocyclerAwaitBlockTemperature: (params: ModuleOnlyParams, invariantContext: InvariantContext, robotStateAndWarnings: RobotStateAndWarnings) => void;
|
|
@@ -19,4 +19,4 @@ export declare const forThermocyclerStartRunExtendedProfile: (params: TCStartExt
|
|
|
19
19
|
* This returns `true` if this task was found to be a Thermocycler-related task.
|
|
20
20
|
* If it's not a Thermocycler-related task, this returns `false` and no-ops.
|
|
21
21
|
*/
|
|
22
|
-
export declare const handleWaitForTaskForThermocyclers: (
|
|
22
|
+
export declare const handleWaitForTaskForThermocyclers: (thermocyclerModuleState: ThermocyclerModuleState) => boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { VacuumModuleOpenVentCreateCommand, VacuumModuleSetTargetPowerCreateCommand, VacuumModuleSetTargetPressureCreateCommand, VacuumModuleStartRunProfileCreateCommand, VacuumModuleStopPumpCreateCommand } from '@opentrons/shared-data';
|
|
2
|
+
import type { InvariantContext, RobotStateAndWarnings, VacuumModuleState } from '../types';
|
|
3
|
+
export declare const forVacuumOpenVent: (params: VacuumModuleOpenVentCreateCommand['params'], invariantContext: InvariantContext, robotStateAndWarnings: RobotStateAndWarnings) => void;
|
|
4
|
+
export declare const forVacuumCloseVent: (params: VacuumModuleOpenVentCreateCommand['params'], invariantContext: InvariantContext, robotStateAndWarnings: RobotStateAndWarnings) => void;
|
|
5
|
+
export declare const forVacuumSetPumpPressure: (params: VacuumModuleSetTargetPressureCreateCommand['params'], invariantContext: InvariantContext, robotStateAndWarnings: RobotStateAndWarnings) => void;
|
|
6
|
+
export declare const forVacuumSetPumpPower: (params: VacuumModuleSetTargetPowerCreateCommand['params'], invariantContext: InvariantContext, robotStateAndWarnings: RobotStateAndWarnings) => void;
|
|
7
|
+
export declare const forVacuumStopPump: (params: VacuumModuleStopPumpCreateCommand['params'], invariantContext: InvariantContext, robotStateAndWarnings: RobotStateAndWarnings) => void;
|
|
8
|
+
export declare const forVacuumStartRunProfile: (params: VacuumModuleStartRunProfileCreateCommand['params'], invariantContext: InvariantContext, robotStateAndWarnings: RobotStateAndWarnings) => void;
|
|
9
|
+
export declare const handleWaitForTaskForVacuums: (vacuumModuleState: VacuumModuleState) => boolean;
|