@opentrons/step-generation 0.3.26-alpha.0 → 0.3.27-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/index.cjs +28 -28
- package/lib/index.mjs +18 -18
- package/package.json +3 -3
package/lib/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B1_NOZZLE as ny, C1_NOZZLE as oy, D1_NOZZLE as ay, E1_NOZZLE as sy, F1_NOZZLE as iy, G1_NOZZLE as ly, FLEX_STACKER_MODULE_TYPE as Qe, HEATERSHAKER_MODULE_TYPE as qe, MAGNETIC_MODULE_TYPE as jo, MAGNETIC_MODULE_V1 as uw, TEMPERATURE_MODULE_V1 as cw, VACUUM_MODULE_TYPE as Qt, THERMOCYCLER_MODULE_TYPE as Ke, TEMPERATURE_MODULE_TYPE as nt, ALL as Ze, COLUMN as gt, SINGLE as ut, ROW as gr, QUADRANT as uy, PARTIAL_COLUMN as We, A1_NOZZLE as Bn, A12_NOZZLE as Pc, H1_NOZZLE as Fo, H12_NOZZLE as cy, VACUUM_MODULE_DOCK_A4_ADDRESSABLE_AREA as Rc, MAGNETIC_BLOCK_TYPE as pw, ABSORBANCE_READER_TYPE as Hn, FLEX_ROBOT_TYPE as et, OT2_ROBOT_TYPE as $t, getIsLid as qr, locationIsOnAddressableArea as dw, MOVABLE_TRASH_ADDRESSABLE_AREAS as kp, locationIsOnModule as fw, locationIsOnLabware as mw, locationIsOnDeck as hw, FLEX_STAGING_AREA_SLOT_ADDRESSABLE_AREAS as yw, WASTE_CHUTE_ADDRESSABLE_AREAS as py, WELL_ORIGIN_TOP as ln, FLEX_SINGLE_SLOT_BY_CUTOUT_ID as bw, FLEX_STACKER_ADDRESSABLE_AREAS as dy, getDeckDefFromRobotType as Fr, FLEX_CUTOUT_BY_SLOT_ID as Cc, FLEX_STACKER_V1_FIXTURE as ww, GRIPPER_WASTE_CHUTE_ADDRESSABLE_AREA as Mr, getMaxPoolCount as fy, FLEX_STACKER_MODULE_V1 as my, getMmFromBottom as er, SAFE_MOVE_TO_WELL_OFFSET_FROM_TOP_MM as _w, linearInterpolate as zn, NINETY_SIX_CHANNEL_WASTE_CHUTE_ADDRESSABLE_AREA as Iw, EIGHT_CHANNEL_WASTE_CHUTE_ADDRESSABLE_AREA as gw, ONE_CHANNEL_WASTE_CHUTE_ADDRESSABLE_AREA as Sw, getWellNamePerMultiTip as Tw, getLabwareDefURI as Le, getIsTiprack as xr, PARTIAL_NOZZLE_MAP as Ho, getAddressableAreaNamesFromLoadedModule as vw, locationIsOffDeck as Po, getIsPipettableLabware as Ea, SYSTEM_LOCATION as Aw, GEN_ONE_MULTI_PIPETTES as kw, getLabwareDefinitionsByURIForProtocol as Lw, getModuleType as Nw, getPipetteSpecsV2 as Ew, getModuleDef as hy, getAreSlotsHorizontallyAdjacent as Dc, getAreSlotsVerticallyAdjacent as Ow, getIsLabwareAboveHeight as Pw, MAX_LABWARE_HEIGHT_EAST_WEST_HEATER_SHAKER_MM as Rw, getAreSlotsAdjacent as Cw, getAreFlexSlotsAdjacent as Dw, getAllLiquidClassDefs as Go, POSITION_REFERENCE_TOP as $w, DEFAULT_LIQUID_COLORS as Lp, getLabwareDefIsStandard as Va, isFlexPipette as xa, getFlexNameConversion as cn, getCutoutDisplayName as qw, getPositionFromSlotId as _s, B1_ADDRESSABLE_AREA as Fw, THERMOCYCLER_MODULE_V2 as Mw, getOt2SurroundingSlots as Vw, getFlexSurroundingSlots as xw, getAddressableAreaFromSlotId as Bw, getRobotDefFromRobotType as zw, WASTE_CHUTE_FIXTURES as Uw, orderWells as Np, getTiprackVolume as jw, LOW_VOLUME_PIPETTES as Mo, POSITION_REFERENCE_MAPPED_TO_WELL_ORIGIN as $e, WELL_ORIGIN_BOTTOM as Hw, getByVolumeValue as J, NONE_LIQUID_CLASS_NAME as $c, WATER_LIQUID_CLASS_NAME as qc, SAFE_MOVE_TO_WELL_LOCATION as Jt, fixtureTiprack1000ul as Gw, fixtureTiprackAdapter as Ww, fixtureTiprack300ul as Kw, fixture12Trough as Zw, fixture96Plate as Yw, fixtureTiprack10ul as Xw, fixtureP100096V2Specs as Jw, fixtureP300MultiV2Specs as Qw, fixtureP300SingleV2Specs as e_, fixtureP10MultiV2Specs as t_, fixtureP10SingleV2Specs as r_ } from "@opentrons/shared-data";
|
|
2
2
|
function n_() {
|
|
3
3
|
return {
|
|
4
4
|
type: "INSUFFICIENT_TIPS",
|
|
@@ -439,7 +439,7 @@ const V_ = /* @__PURE__ */ rt(M_), Ua = "TEMPERATURE_DEACTIVATED", vy = "TEMPERA
|
|
|
439
439
|
B4: "hopperB4",
|
|
440
440
|
C4: "hopperC4",
|
|
441
441
|
D4: "hopperD4"
|
|
442
|
-
}, ky = "vacuumDock", eI =
|
|
442
|
+
}, ky = "vacuumDock", eI = Rc, Ly = "opened", Ha = "closed", Wp = "power", Kp = "pressure", mL = "state", hL = "profile", yL = "pumpOff", bL = "pumpOn", wL = "vent", _L = "open", IL = "closed", gL = "VACUUM_DEACTIVATED", SL = "VACUUM_AT_TARGET", tI = [
|
|
443
443
|
"opentrons_vacuum_manifold_spacer_short",
|
|
444
444
|
"opentrons_vacuum_manifold_spacer_tall",
|
|
445
445
|
"opentrons_vacuum_manifold_spacer_3.2mm",
|
|
@@ -451,26 +451,26 @@ const V_ = /* @__PURE__ */ rt(M_), Ua = "TEMPERATURE_DEACTIVATED", vy = "TEMPERA
|
|
|
451
451
|
gt,
|
|
452
452
|
ut,
|
|
453
453
|
gr,
|
|
454
|
-
|
|
454
|
+
uy,
|
|
455
455
|
We
|
|
456
456
|
], Mc = [
|
|
457
457
|
Bn,
|
|
458
|
-
|
|
458
|
+
Pc,
|
|
459
|
+
ny,
|
|
459
460
|
oy,
|
|
460
461
|
ay,
|
|
461
462
|
sy,
|
|
462
463
|
iy,
|
|
463
464
|
ly,
|
|
464
|
-
uy,
|
|
465
465
|
Fo,
|
|
466
466
|
cy
|
|
467
467
|
], oI = [
|
|
468
|
+
ny,
|
|
468
469
|
oy,
|
|
469
470
|
ay,
|
|
470
471
|
sy,
|
|
471
472
|
iy,
|
|
472
|
-
ly
|
|
473
|
-
uy
|
|
473
|
+
ly
|
|
474
474
|
], Ge = [];
|
|
475
475
|
for (let e = 0; e < 256; ++e)
|
|
476
476
|
Ge.push((e + 256).toString(16).slice(1));
|
|
@@ -5262,11 +5262,11 @@ const mS = (e, t) => e.filter(
|
|
|
5262
5262
|
function wS(e) {
|
|
5263
5263
|
switch (e) {
|
|
5264
5264
|
case 1:
|
|
5265
|
-
return
|
|
5265
|
+
return Sw;
|
|
5266
5266
|
case 8:
|
|
5267
|
-
return
|
|
5267
|
+
return gw;
|
|
5268
5268
|
case 96:
|
|
5269
|
-
return
|
|
5269
|
+
return Iw;
|
|
5270
5270
|
}
|
|
5271
5271
|
}
|
|
5272
5272
|
function bb(e) {
|
|
@@ -5385,7 +5385,7 @@ function sn(e, t) {
|
|
|
5385
5385
|
};
|
|
5386
5386
|
}
|
|
5387
5387
|
function wb(e, t, r) {
|
|
5388
|
-
const n = e === 1 ? [r] :
|
|
5388
|
+
const n = e === 1 ? [r] : Tw(t, r, e);
|
|
5389
5389
|
if (!n)
|
|
5390
5390
|
return console.warn(
|
|
5391
5391
|
e === 1 ? `Invalid well: ${r}` : `For labware def (URI ${Le(
|
|
@@ -5715,7 +5715,7 @@ const AS = (e, t) => e.tipracks[t] != null ? Object.values(e.tipracks[t]).some(
|
|
|
5715
5715
|
const r = e[e.length - 1];
|
|
5716
5716
|
return t ? `STACKER ${r.slice(-2, -1)}` : r;
|
|
5717
5717
|
}
|
|
5718
|
-
}, NL = (e) => e ===
|
|
5718
|
+
}, NL = (e) => e === Rc ? nI : e, sp = (e) => e == null ? (console.error("expected to find stack but could not"), "unknown top location") : e[0], LS = (e) => e.length >= 2 ? e[1] : null, Pa = (e) => {
|
|
5719
5719
|
const { slot: t, labwareState: r, modulesState: n } = e, o = Object.values(n).find(
|
|
5720
5720
|
({ slot: a, moduleState: s }) => a === t && s.type === Qe
|
|
5721
5721
|
);
|
|
@@ -5750,7 +5750,7 @@ const AS = (e, t) => e.tipracks[t] != null ? Object.values(e.tipracks[t]).some(
|
|
|
5750
5750
|
return e;
|
|
5751
5751
|
}, ip = (e) => {
|
|
5752
5752
|
const t = Fr(et), r = `${e[0]}3`, n = Cc[r], o = t.cutoutFixtures.find(
|
|
5753
|
-
({ id: a }) => a ===
|
|
5753
|
+
({ id: a }) => a === ww
|
|
5754
5754
|
)?.providesAddressableAreas[n];
|
|
5755
5755
|
return dy.find((a) => o?.includes(a)) ?? null;
|
|
5756
5756
|
}, OS = (e, t, r, n) => {
|
|
@@ -5970,7 +5970,7 @@ const AS = (e, t) => e.tipracks[t] != null ? Object.values(e.tipracks[t]).some(
|
|
|
5970
5970
|
r,
|
|
5971
5971
|
s
|
|
5972
5972
|
);
|
|
5973
|
-
return i == null ? !1 : i - s >=
|
|
5973
|
+
return i == null ? !1 : i - s >= _w;
|
|
5974
5974
|
}, wm = (e) => e.reduce((t, r) => {
|
|
5975
5975
|
const { kind: n } = r;
|
|
5976
5976
|
return n === "onCutoutFixture" ? t : n === "onLabware" ? [...t, r.labwareId] : n === "onModule" || n === "inStackerHopper" ? [...t, r.moduleId] : n === "onAddressableArea" ? [...t, r.addressableAreaName] : [...t, r.logicalLocationName];
|
|
@@ -5989,7 +5989,7 @@ function _m(e) {
|
|
|
5989
5989
|
}
|
|
5990
5990
|
return {};
|
|
5991
5991
|
}
|
|
5992
|
-
const CS = (e) => J_.includes(e), Da = (e) => e ===
|
|
5992
|
+
const CS = (e) => J_.includes(e), Da = (e) => e === Rc, Sb = (e) => e.labwareOnShuttle?.primaryLabwareId ?? null, Tb = (e, t, r) => {
|
|
5993
5993
|
if (r?.storedLabwareDetails == null)
|
|
5994
5994
|
return !0;
|
|
5995
5995
|
const n = Object.values(
|
|
@@ -11323,7 +11323,7 @@ const XA = (e, t, r, n) => {
|
|
|
11323
11323
|
)
|
|
11324
11324
|
};
|
|
11325
11325
|
if (o === gt) {
|
|
11326
|
-
const u = r ===
|
|
11326
|
+
const u = r === Pc, c = Uh(a), p = l[c], d = u ? [...l].reverse() : l, f = d.indexOf(p);
|
|
11327
11327
|
return {
|
|
11328
11328
|
isSafe: d.slice(f + 1).flat().every((m) => t[m] === ye || i.includes(m)),
|
|
11329
11329
|
isComplete: d[f].every(
|
|
@@ -11447,7 +11447,7 @@ const XA = (e, t, r, n) => {
|
|
|
11447
11447
|
const u = tw(t) === "12" ? 1 : -1;
|
|
11448
11448
|
if (r === Ze && a === 96 || r === gr)
|
|
11449
11449
|
l = 12;
|
|
11450
|
-
else if (r ===
|
|
11450
|
+
else if (r === uy)
|
|
11451
11451
|
l = 6;
|
|
11452
11452
|
else
|
|
11453
11453
|
return u * QA;
|
|
@@ -11661,7 +11661,7 @@ function hk(e) {
|
|
|
11661
11661
|
!1,
|
|
11662
11662
|
`Pipette ${t} missing channels/spec or tiprack definition`
|
|
11663
11663
|
), null;
|
|
11664
|
-
const c = (T) => u[T] === ja, p = Np(l.ordering, "t2b", "l2r"), d = Np(l.ordering, "b2t", "l2r"), f = (T) => T.find(c) ?? null, m = (T) => [...T].reverse().find(c) ?? null, h = (T) => T.find((L) => L.every(c)) ?? null, y = (T) => [...T].reverse().find((L) => L.every(c)) ?? null, w = i === 8 && a === ut, b = w && s === Fo, I = w && s === Bn, g = i === 96 && a === ut, A = g && s === cy, S = g && s ===
|
|
11664
|
+
const c = (T) => u[T] === ja, p = Np(l.ordering, "t2b", "l2r"), d = Np(l.ordering, "b2t", "l2r"), f = (T) => T.find(c) ?? null, m = (T) => [...T].reverse().find(c) ?? null, h = (T) => T.find((L) => L.every(c)) ?? null, y = (T) => [...T].reverse().find((L) => L.every(c)) ?? null, w = i === 8 && a === ut, b = w && s === Fo, I = w && s === Bn, g = i === 96 && a === ut, A = g && s === cy, S = g && s === Pc, _ = g && s === Fo, v = g && s === Bn;
|
|
11665
11665
|
if (i === 1 || b || A)
|
|
11666
11666
|
return f(p);
|
|
11667
11667
|
if (I)
|
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.27-alpha.0",
|
|
13
13
|
"description": "Step generation",
|
|
14
14
|
"main": "lib/index.cjs",
|
|
15
15
|
"types": "lib/index.d.ts",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"homepage": "https://github.com/Opentrons/opentrons",
|
|
34
34
|
"license": "Apache-2.0",
|
|
35
35
|
"dependencies": {
|
|
36
|
+
"@opentrons/shared-data": "0.3.27-alpha.0",
|
|
36
37
|
"core-js": "3.2.1",
|
|
37
38
|
"immer": "^10.1.3",
|
|
38
39
|
"lodash": "4.18.1",
|
|
39
|
-
"uuid": "14.0.0"
|
|
40
|
-
"@opentrons/shared-data": "0.3.26-alpha.0"
|
|
40
|
+
"uuid": "14.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/lodash": "4.17.24"
|