Skip to content

Commit

Permalink
Merge pull request #694 from sanger/x1203-new-labware
Browse files Browse the repository at this point in the history
new labware type with name 8 strip tube: 8 rows, 1 column
  • Loading branch information
khelwood authored Jun 7, 2024
2 parents baf753f + b2cee97 commit 701793f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
7 changes: 6 additions & 1 deletion src/lib/factories/labwareFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ export const xeniumFactory = unregisteredLabwareFactory.associations({
labwareType: labwareTypes[LabwareTypeName.XENIUM].build()
});

export const stripeTubeFactory = unregisteredLabwareFactory.associations({
labwareType: labwareTypes[LabwareTypeName.STRIP_TUBE].build()
});

export const labwareFactories: Record<LabwareTypeName, Factory<NewLabwareLayout>> = {
[LabwareTypeName.TUBE]: tubeFactory,
[LabwareTypeName.PROVIASETTE]: proviasetteFactory,
Expand All @@ -155,5 +159,6 @@ export const labwareFactories: Record<LabwareTypeName, Factory<NewLabwareLayout>
[LabwareTypeName.VISIUM_LP_CYTASSIST]: visiumLPCytAssistFactory,
[LabwareTypeName.VISIUM_LP_CYTASSIST_XL]: visiumLPCytAssistXLFactory,
[LabwareTypeName.VISIUM_LP_CYTASSIST_HD]: visiumLPCytAssistHDFactory,
[LabwareTypeName.XENIUM]: xeniumFactory
[LabwareTypeName.XENIUM]: xeniumFactory,
[LabwareTypeName.STRIP_TUBE]: stripeTubeFactory
};
7 changes: 7 additions & 0 deletions src/lib/factories/labwareTypeFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@ export const labwareTypes: Record<LabwareTypeName, Factory<LabwareType>> = {
numRows: 2,
numColumns: 1,
labelType: labelTypeFactory.build({ name: `${LabwareTypeName.VISIUM_LP_CYTASSIST_HD} Label` })
}),
[LabwareTypeName.STRIP_TUBE]: labwareTypeFactory.params({
__typename: 'LabwareType',
name: LabwareTypeName.STRIP_TUBE,
numRows: 8,
numColumns: 1,
labelType: labelTypeFactory.build({ name: `${LabwareTypeName.STRIP_TUBE} Label` })
})
};

Expand Down
7 changes: 5 additions & 2 deletions src/pages/CytAssist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { reload } from '../lib/sdk';
import WorkNumberSelect from '../components/WorkNumberSelect';
import Heading from '../components/Heading';
import {
stripeTubeFactory,
visiumLPCytAssistFactory,
visiumLPCytAssistHDFactory,
visiumLPCytAssistXLFactory
Expand Down Expand Up @@ -131,7 +132,8 @@ const CytAssistOutputlabwareScanPanel: React.FC<OutputLabwareScanPanelProps> = (
options={[
LabwareTypeName.VISIUM_LP_CYTASSIST,
LabwareTypeName.VISIUM_LP_CYTASSIST_XL,
LabwareTypeName.VISIUM_LP_CYTASSIST_HD
LabwareTypeName.VISIUM_LP_CYTASSIST_HD,
LabwareTypeName.STRIP_TUBE
].map((key) => {
return {
label: key,
Expand Down Expand Up @@ -304,7 +306,8 @@ const CytAssist = () => {
const labwareFactories: Record<string, NewLabwareLayout> = {
[LabwareTypeName.VISIUM_LP_CYTASSIST]: visiumLPCytAssistFactory.build(),
[LabwareTypeName.VISIUM_LP_CYTASSIST_XL]: visiumLPCytAssistXLFactory.build(),
[LabwareTypeName.VISIUM_LP_CYTASSIST_HD]: visiumLPCytAssistHDFactory.build()
[LabwareTypeName.VISIUM_LP_CYTASSIST_HD]: visiumLPCytAssistHDFactory.build(),
[LabwareTypeName.STRIP_TUBE]: stripeTubeFactory.build()
};
if (!selectedDestination) return;
const destLabware = (labwareFactories[labwareType] as NewFlaggedLabwareLayout) || initialOutputLabwarePlaceHolder;
Expand Down
3 changes: 2 additions & 1 deletion src/types/stan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ export enum LabwareTypeName {
VISIUM_LP_CYTASSIST= "Visium LP CytAssist",
VISIUM_LP_CYTASSIST_XL= "Visium LP CytAssist XL",
VISIUM_LP_CYTASSIST_HD= "Visium LP CytAssist HD",
XENIUM = "Xenium"
XENIUM = "Xenium",
STRIP_TUBE = "8 Strip Tube"

}

Expand Down

0 comments on commit 701793f

Please sign in to comment.