@opentrons/step-generation 0.3.3-alpha.0 → 0.3.5-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__/aspirateWhileTracking.test.d.ts +1 -0
- package/lib/commandCreators/atomic/__tests__/dispenseWhileTracking.test.d.ts +1 -0
- package/lib/commandCreators/atomic/__tests__/home.test.d.ts +1 -0
- package/lib/commandCreators/atomic/__tests__/moveRelative.test.d.ts +1 -0
- package/lib/commandCreators/atomic/__tests__/moveToCoordinate.test.d.ts +1 -0
- package/lib/commandCreators/atomic/__tests__/tryLiquidProbe.test.d.ts +1 -0
- package/lib/commandCreators/atomic/aspirateWhileTracking.d.ts +3 -0
- package/lib/commandCreators/atomic/dispenseWhileTracking.d.ts +3 -0
- package/lib/commandCreators/atomic/home.d.ts +3 -0
- package/lib/commandCreators/atomic/index.d.ts +17 -0
- package/lib/commandCreators/atomic/moveRelative.d.ts +3 -0
- package/lib/commandCreators/atomic/moveToCoordinates.d.ts +3 -0
- package/lib/commandCreators/atomic/tryLiquidProbe.d.ts +3 -0
- package/lib/commandCreators/index.d.ts +1 -1
- package/lib/constants.d.ts +1 -0
- package/lib/index.cjs +98 -90
- package/lib/index.mjs +6296 -5876
- package/lib/types.d.ts +2 -14
- package/lib/utils/getCommandCreatorFromStepArgs.d.ts +2 -0
- package/lib/utils/getTransformedWellsForPartialColumn.d.ts +6 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/misc.d.ts +12 -4
- package/lib/utils/pythonFileUtils.d.ts +2 -2
- package/lib/utils/safePipetteMovements.d.ts +9 -1
- package/package.json +2 -2
package/lib/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ABSORBANCE_READER_TYPE, AddressableArea, CreateCommand, FLEX_STACKER_MODULE_TYPE, FlexStackerStoredLabwareGroup, HEATERSHAKER_MODULE_TYPE, Height, LabwareDefinition2, LabwareLocation, LabwareMovementStrategy, LoadedLabwareLocation, MAGNETIC_BLOCK_TYPE, MAGNETIC_MODULE_TYPE, ModuleModel, ModuleType, PipetteMount as Mount, NozzleConfigurationStyle, PipetteName, PipetteV2Specs, PositionReference, PrimaryNozzleConfigurationStyle, ShakeSpeedParams, StackerStoredLabwareDefinitionURIs, TCExtendedProfileParams, TEMPERATURE_MODULE_TYPE, THERMOCYCLER_MODULE_TYPE, VACUUM_MODULE_TYPE, VacuumRunProfileParams, Width } from '@opentrons/shared-data';
|
|
1
|
+
import type { ABSORBANCE_READER_TYPE, AddressableArea, CommonArgs, CreateCommand, FLEX_STACKER_MODULE_TYPE, FlexStackerStoredLabwareGroup, HEATERSHAKER_MODULE_TYPE, Height, LabwareDefinition2, LabwareLocation, LabwareMovementStrategy, LoadedLabwareLocation, MAGNETIC_BLOCK_TYPE, MAGNETIC_MODULE_TYPE, ModuleModel, ModuleType, PipetteMount as Mount, NozzleConfigurationStyle, OpentronsAIArgs, PipetteName, PipetteV2Specs, PositionReference, PrimaryNozzleConfigurationStyle, ShakeSpeedParams, StackerStoredLabwareDefinitionURIs, TCExtendedProfileParams, TEMPERATURE_MODULE_TYPE, THERMOCYCLER_MODULE_TYPE, VACUUM_MODULE_TYPE, VacuumRunProfileParams, Width } from '@opentrons/shared-data';
|
|
2
2
|
import type { AUTOMATIC, CLEAN, DIRTY, EMPTY, MANUAL, TEMPERATURE_APPROACHING_TARGET, TEMPERATURE_AT_TARGET, TEMPERATURE_DEACTIVATED, VACUUM_MODE_POWER, VACUUM_MODE_PRESSURE, VACUUM_VENT_CLOSED, VACUUM_VENT_OPEN } from './constants';
|
|
3
3
|
export type DeckSlot = string;
|
|
4
4
|
type THERMOCYCLER_STATE = 'thermocyclerState';
|
|
@@ -244,18 +244,6 @@ export interface InnerMixArgs {
|
|
|
244
244
|
export interface InnerDelayArgs {
|
|
245
245
|
seconds: number;
|
|
246
246
|
}
|
|
247
|
-
interface CommonArgs {
|
|
248
|
-
/** NOTE: stepNumber probably shouldn't be optional but making it optional
|
|
249
|
-
* for the sake of not having to make too many changes for PD 8.5.2
|
|
250
|
-
* this should be refactored to not be optional for PD 8.6.0
|
|
251
|
-
* making it optional saves a lot of changes in unit tests
|
|
252
|
-
*/
|
|
253
|
-
stepNumber?: number;
|
|
254
|
-
/** Optional user-readable name for this step */
|
|
255
|
-
name?: string | null;
|
|
256
|
-
/** Optional user-readable description/notes for this step */
|
|
257
|
-
description?: string | null;
|
|
258
|
-
}
|
|
259
247
|
export type SharedTransferLikeArgs = CommonArgs & {
|
|
260
248
|
tipRack: string;
|
|
261
249
|
pipette: string;
|
|
@@ -670,7 +658,7 @@ export interface VacuumCloseVentStartProfileArgs extends CommonArgs {
|
|
|
670
658
|
}
|
|
671
659
|
export type VacuumArgs = VacuumPumpArgs | VacuumStartRunProfileArgs | VacuumOpenVentArgs | VacuumCloseVentArgs | VacuumStopPumpArgs;
|
|
672
660
|
export type FlexStackerArgs = FlexStackerEmptyArgs | FlexStackerFillItemsArgs | FlexStackerRetrieveArgs | FlexStackerStoreArgs;
|
|
673
|
-
export type CommandCreatorArgs = AbsorbanceReaderInitializeArgs | AbsorbanceReaderReadArgs | AbsorbanceReaderLidArgs | ConsolidateArgs | CaptureImageArgs | DistributeArgs | MixArgs | PauseArgs | WaitForModuleTaskArgs | TransferArgs | EngageMagnetArgs | DisengageMagnetArgs | SetTemperatureArgs | WaitForTemperatureArgs | DeactivateTemperatureArgs | ThermocyclerProfileStepArgs | ThermocyclerStateStepArgs | HeaterShakerArgs | MoveLabwareArgs | CommentArgs | FlexStackerArgs | VacuumArgs;
|
|
661
|
+
export type CommandCreatorArgs = AbsorbanceReaderInitializeArgs | AbsorbanceReaderReadArgs | AbsorbanceReaderLidArgs | ConsolidateArgs | CaptureImageArgs | DistributeArgs | MixArgs | PauseArgs | WaitForModuleTaskArgs | TransferArgs | EngageMagnetArgs | DisengageMagnetArgs | SetTemperatureArgs | WaitForTemperatureArgs | DeactivateTemperatureArgs | ThermocyclerProfileStepArgs | ThermocyclerStateStepArgs | HeaterShakerArgs | MoveLabwareArgs | CommentArgs | FlexStackerArgs | VacuumArgs | OpentronsAIArgs;
|
|
674
662
|
export interface LocationLiquidState {
|
|
675
663
|
[ingredGroup: string]: {
|
|
676
664
|
volume: number;
|
package/lib/utils/index.d.ts
CHANGED
package/lib/utils/misc.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import type { CommandCreator, CurriedCommandCreator, FlexStackerModuleState, Inv
|
|
|
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
|
+
export declare function getIsVacuumSpacer(def: LabwareDefinition2): boolean;
|
|
7
8
|
type trashOrLabware = 'wasteChute' | 'trashBin' | 'labware' | null;
|
|
8
9
|
export declare const getCutoutIdByAddressableArea: (addressableAreaName: AddressableAreaName, cutoutFixtureId: CutoutFixtureId, robotType: RobotType) => CutoutId;
|
|
9
10
|
export declare function getWasteChuteAddressableAreaNamePip(channels: PipetteChannels): AddressableAreaName;
|
|
@@ -98,7 +99,11 @@ export declare const delayLocationHelper: CommandCreator<DelayLocationHelperArgs
|
|
|
98
99
|
export declare const getSlotInLocationStack: (stack: string[] | null, isStacker?: boolean) => string;
|
|
99
100
|
export declare const getTopLocationInStack: (stack?: string[]) => string;
|
|
100
101
|
export declare const getNearestParentInStack: (stack: string[]) => string | null;
|
|
101
|
-
export declare const getLargestStackInSlot: (
|
|
102
|
+
export declare const getLargestStackInSlot: (args: {
|
|
103
|
+
slot: string;
|
|
104
|
+
labwareState: RobotState['labware'];
|
|
105
|
+
modulesState: RobotState['modules'];
|
|
106
|
+
}) => string[];
|
|
102
107
|
/** Single-slot deck id (e.g. A3) for a staging-area slot (e.g. A4) on Flex. */
|
|
103
108
|
export declare const getFlexStackerCutoutBaseDeckSlotId: (column4StagingSlotId: (typeof COLUMN_4_SLOTS)[number]) => string;
|
|
104
109
|
export declare const column4StagingSlotIdFromFlexStackerShuttleAddressableArea: (addressableAreaName: AddressableAreaName) => (typeof COLUMN_4_SLOTS)[number] | null;
|
|
@@ -170,12 +175,15 @@ export declare const getIsRetractSafeForAirGap: (args: {
|
|
|
170
175
|
}) => boolean;
|
|
171
176
|
export declare const getStackForLabwareLocation: (locationSequence: LabwareLocationSequence) => string[];
|
|
172
177
|
export declare function createStagingAreaForInvariantContext(params: LoadLidStackRunTimeCommand['params'] | LoadLabwareRunTimeCommand['params'] | LoadLidParams): StagingAreaEntities;
|
|
173
|
-
export declare const getLabwareIdOnHopper: (labware: {
|
|
174
|
-
[labwareId: string]: LabwareTemporalProperties;
|
|
175
|
-
}, moduleSlotLocation: string) => string;
|
|
176
178
|
export declare const getIsSlotAHopper: (slot: string) => boolean;
|
|
177
179
|
export declare const getIsSlotAVacuumDock: (slot: string) => boolean;
|
|
178
180
|
export declare const getLabwareIdOnShuttle: (stackerState: FlexStackerModuleState) => string | null;
|
|
179
181
|
export declare const labwareMatchesLabwareInHopper: (labwareId: string, invariantContext: InvariantContext, stackerState: FlexStackerModuleState | null) => boolean;
|
|
180
182
|
export declare const getIsSpaceInHopper: (stackerState: FlexStackerModuleState | null, labwareEntities: LabwareEntities) => boolean;
|
|
183
|
+
export declare const getLabwareHasLid: (args: {
|
|
184
|
+
labwareId: string;
|
|
185
|
+
labwareRobotState: RobotState['labware'];
|
|
186
|
+
labwareEntities: LabwareEntities;
|
|
187
|
+
}) => boolean;
|
|
188
|
+
export declare const getIsInPipettableLocation: (location: string) => boolean;
|
|
181
189
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ProtocolFile, RobotType } from '@opentrons/shared-data';
|
|
2
2
|
import type { ChangeTipOptions, InvariantContext, LabwareEntities, LabwareLiquidState, LabwareTemporalProperties, LiquidEntities, ModuleEntities, ModuleTemporalProperties, PipetteEntities, Timeline, TimelineFrame, TrashBinEntities, WasteChuteEntities } from '../types';
|
|
3
|
-
export declare const PAPI_VERSION = "2.
|
|
4
|
-
export declare const PD_APPLICATION_VERSION = "
|
|
3
|
+
export declare const PAPI_VERSION = "2.30";
|
|
4
|
+
export declare const PD_APPLICATION_VERSION = "9.0.0";
|
|
5
5
|
export declare function pythonImports(): string;
|
|
6
6
|
export declare function pythonMetadata(fileMetadata: ProtocolFile<{}>['metadata'] & {
|
|
7
7
|
protocolDesigner?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AddressableArea, CoordinateTuple, CutoutId, LabwareDefinition, NozzleConfigurationStyle, PipetteChannels, PrimaryNozzleConfigurationStyle } from '@opentrons/shared-data';
|
|
1
|
+
import type { AddressableArea, CoordinateTuple, CutoutId, LabwareDefinition, NozzleConfigurationStyle, PipetteChannels, PipetteV2Specs, PrimaryNozzleConfigurationStyle } from '@opentrons/shared-data';
|
|
2
2
|
import type { InvariantContext, PipetteMovementSafetyStatus, Point, RobotState, TipState } from '../types';
|
|
3
3
|
interface SlotInfo {
|
|
4
4
|
addressableArea: AddressableArea | null;
|
|
@@ -42,4 +42,12 @@ export declare const getTargetTipsFromWellSets: (args: {
|
|
|
42
42
|
channels: PipetteChannels;
|
|
43
43
|
primaryNozzle: string;
|
|
44
44
|
}) => string[];
|
|
45
|
+
interface PipetteCenteringArgs {
|
|
46
|
+
wellTargetName: string;
|
|
47
|
+
primaryNozzle: PrimaryNozzleConfigurationStyle;
|
|
48
|
+
nozzleConfiguration: NozzleConfigurationStyle;
|
|
49
|
+
specs: PipetteV2Specs;
|
|
50
|
+
labwareDef: LabwareDefinition;
|
|
51
|
+
}
|
|
52
|
+
export declare const getPipetteCenteringFullOffset: (args: PipetteCenteringArgs) => Point;
|
|
45
53
|
export {};
|
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.5-alpha.0",
|
|
13
13
|
"description": "Step generation",
|
|
14
14
|
"main": "lib/index.cjs",
|
|
15
15
|
"types": "lib/index.d.ts",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"homepage": "https://github.com/Opentrons/opentrons",
|
|
34
34
|
"license": "Apache-2.0",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@opentrons/shared-data": "0.3.
|
|
36
|
+
"@opentrons/shared-data": "0.3.5-alpha.0",
|
|
37
37
|
"core-js": "3.2.1",
|
|
38
38
|
"immer": "^10.1.3",
|
|
39
39
|
"lodash": "4.18.1",
|