From 8f46bc9d96774ad2559272daa8283ddf23734942 Mon Sep 17 00:00:00 2001 From: Derek Maggio Date: Thu, 21 Jul 2022 07:36:45 -0700 Subject: [PATCH] Make home_delay_time customizable --- api/src/opentrons/hardware_control/emulation/heater_shaker.py | 2 +- api/src/opentrons/hardware_control/emulation/settings.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/api/src/opentrons/hardware_control/emulation/heater_shaker.py b/api/src/opentrons/hardware_control/emulation/heater_shaker.py index 64e8fe17909..a465de86312 100644 --- a/api/src/opentrons/hardware_control/emulation/heater_shaker.py +++ b/api/src/opentrons/hardware_control/emulation/heater_shaker.py @@ -111,7 +111,7 @@ def _get_temp(self, command: Command) -> str: return res def _home(self, command: Command) -> str: - sleep(2) + sleep(self._settings.home_delay_time) self._rpm.deactivate(0.0) self._rpm.set_target(0.0) return "G28" diff --git a/api/src/opentrons/hardware_control/emulation/settings.py b/api/src/opentrons/hardware_control/emulation/settings.py index 54094b733b3..c78198edc3b 100644 --- a/api/src/opentrons/hardware_control/emulation/settings.py +++ b/api/src/opentrons/hardware_control/emulation/settings.py @@ -50,6 +50,7 @@ class ThermocyclerSettings(BaseModuleSettings): class HeaterShakerSettings(BaseModuleSettings): temperature: TemperatureModelSettings rpm: RPMModelSettings + home_delay_time: int = 0 class ProxySettings(BaseModel): @@ -91,6 +92,7 @@ class Settings(BaseSettings): version="v0.0.1", temperature=TemperatureModelSettings(), rpm=RPMModelSettings(), + home_delay_time=0 ) heatershaker_proxy: ProxySettings = ProxySettings(