-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(app, components): add assets for absorbance reader, add to app, …
…remove calibration need fix PLAT-476, PLAT-477, PLAT-478, PLAT-479, PLAT-481, PLAt-482, PLAT-484, PLAT-486, PLAT-487
- Loading branch information
Showing
14 changed files
with
372 additions
and
24 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ import thermoModuleGen1HighRes from '/app/assets/images/modules/thermocyclerModu | |
import heaterShakerModuleHighRes from '/app/assets/images/modules/[email protected]' | ||
import thermoModuleGen2 from '/app/assets/images/thermocycler_gen_2_closed.png' | ||
import magneticBlockGen1 from '/app/assets/images/magnetic_block_gen_1.png' | ||
import absorbanceReader from 'app/assets/images/opentrons_plate_reader.png' | ||
|
||
import type { ModuleModel } from '@opentrons/shared-data' | ||
|
||
|
@@ -30,6 +31,8 @@ export function getModuleImage( | |
return thermoModuleGen2 | ||
case 'magneticBlockV1': | ||
return magneticBlockGen1 | ||
case 'absorbanceReaderV1': | ||
return absorbanceReader | ||
default: | ||
return 'Error: unknown module model' | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 85 additions & 0 deletions
85
app/src/organisms/Devices/ProtocolRun/SetupModuleAndDeck/utils.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
import { | ||
HEATERSHAKER_MODULE_V1_FIXTURE, | ||
MAGNETIC_BLOCK_V1_FIXTURE, | ||
STAGING_AREA_RIGHT_SLOT_FIXTURE, | ||
STAGING_AREA_SLOT_WITH_MAGNETIC_BLOCK_V1_FIXTURE, | ||
TEMPERATURE_MODULE_V2_FIXTURE, | ||
THERMOCYCLER_V2_FRONT_FIXTURE, | ||
THERMOCYCLER_V2_REAR_FIXTURE, | ||
TRASH_BIN_ADAPTER_FIXTURE, | ||
WASTE_CHUTE_ONLY_FIXTURES, | ||
WASTE_CHUTE_STAGING_AREA_FIXTURES, | ||
} from '@opentrons/shared-data' | ||
|
||
import magneticModule from '../../../../assets/images/magnetic_module_gen_2_transparent.png' | ||
import temperatureModule from '../../../../assets/images/temp_deck_gen_2_transparent.png' | ||
import thermoModuleGen1 from '../../../../assets/images/thermocycler_closed.png' | ||
import heaterShakerModule from '../../../../assets/images/heater_shaker_module_transparent.png' | ||
import magneticModuleHighRes from '../../../../assets/images/modules/[email protected]' | ||
import temperatureModuleHighRes from '../../../../assets/images/modules/[email protected]' | ||
import thermoModuleGen1HighRes from '../../../../assets/images/modules/[email protected]' | ||
import heaterShakerModuleHighRes from '../../../../assets/images/modules/[email protected]' | ||
import thermoModuleGen2 from '../../../../assets/images/thermocycler_gen_2_closed.png' | ||
import magneticBlockGen1 from '../../../../assets/images/magnetic_block_gen_1.png' | ||
import stagingAreaMagneticBlockGen1 from '../../../../assets/images/staging_area_magnetic_block_gen_1.png' | ||
import trashBin from '../../../../assets/images/flex_trash_bin.png' | ||
import stagingArea from '../../../../assets/images/staging_area_slot.png' | ||
import wasteChute from '../../../../assets/images/waste_chute.png' | ||
import wasteChuteStagingArea from '../../../../assets/images/waste_chute_with_staging_area.png' | ||
import absorbanceReader from '../../../../assets/images/opentrons_plate_reader.png' | ||
|
||
import type { CutoutFixtureId, ModuleModel } from '@opentrons/shared-data' | ||
|
||
export function getModuleImage( | ||
model: ModuleModel, | ||
highRes: boolean = false | ||
): string { | ||
switch (model) { | ||
case 'magneticModuleV1': | ||
case 'magneticModuleV2': | ||
return highRes ? magneticModuleHighRes : magneticModule | ||
case 'temperatureModuleV1': | ||
case 'temperatureModuleV2': | ||
return highRes ? temperatureModuleHighRes : temperatureModule | ||
case 'heaterShakerModuleV1': | ||
return highRes ? heaterShakerModuleHighRes : heaterShakerModule | ||
case 'thermocyclerModuleV1': | ||
return highRes ? thermoModuleGen1HighRes : thermoModuleGen1 | ||
case 'thermocyclerModuleV2': | ||
return thermoModuleGen2 | ||
case 'magneticBlockV1': | ||
return magneticBlockGen1 | ||
case 'absorbanceReaderV1': | ||
return absorbanceReader | ||
default: | ||
return 'Error: unknown module model' | ||
} | ||
} | ||
|
||
export function getFixtureImage(cutoutFixtureId: CutoutFixtureId): string { | ||
if (cutoutFixtureId === STAGING_AREA_RIGHT_SLOT_FIXTURE) { | ||
return stagingArea | ||
} else if (WASTE_CHUTE_ONLY_FIXTURES.includes(cutoutFixtureId)) { | ||
return wasteChute | ||
} else if (WASTE_CHUTE_STAGING_AREA_FIXTURES.includes(cutoutFixtureId)) { | ||
return wasteChuteStagingArea | ||
} else if (cutoutFixtureId === TRASH_BIN_ADAPTER_FIXTURE) { | ||
return trashBin | ||
} else if (cutoutFixtureId === THERMOCYCLER_V2_REAR_FIXTURE) { | ||
return thermoModuleGen2 | ||
} else if (cutoutFixtureId === THERMOCYCLER_V2_FRONT_FIXTURE) { | ||
return thermoModuleGen2 | ||
} else if (cutoutFixtureId === HEATERSHAKER_MODULE_V1_FIXTURE) { | ||
return heaterShakerModule | ||
} else if (cutoutFixtureId === TEMPERATURE_MODULE_V2_FIXTURE) { | ||
return temperatureModule | ||
} else if (cutoutFixtureId === MAGNETIC_BLOCK_V1_FIXTURE) { | ||
return magneticBlockGen1 | ||
} else if ( | ||
cutoutFixtureId === STAGING_AREA_SLOT_WITH_MAGNETIC_BLOCK_V1_FIXTURE | ||
) { | ||
return stagingAreaMagneticBlockGen1 | ||
} else { | ||
return 'Error: unknown fixture' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.