From 872d00fc78a7c64771f1ade7b7129e59793d2506 Mon Sep 17 00:00:00 2001 From: CamDavidsonPilon Date: Mon, 15 Jul 2024 17:15:49 -0400 Subject: [PATCH] import automations --- pioreactor/background_jobs/dosing_automation.py | 1 - pioreactor/background_jobs/led_automation.py | 1 - pioreactor/background_jobs/temperature_automation.py | 1 - pioreactor/cli/run.py | 3 +++ 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pioreactor/background_jobs/dosing_automation.py b/pioreactor/background_jobs/dosing_automation.py index 80cac7be..8e70b4fb 100644 --- a/pioreactor/background_jobs/dosing_automation.py +++ b/pioreactor/background_jobs/dosing_automation.py @@ -27,7 +27,6 @@ from pioreactor.utils import whoami from pioreactor.utils.timing import current_utc_datetime from pioreactor.utils.timing import RepeatedTimer -from pioreactor.automations.dosing import * def close(x: float, y: float) -> bool: diff --git a/pioreactor/background_jobs/led_automation.py b/pioreactor/background_jobs/led_automation.py index c07c84b0..9c739cb4 100644 --- a/pioreactor/background_jobs/led_automation.py +++ b/pioreactor/background_jobs/led_automation.py @@ -22,7 +22,6 @@ from pioreactor.utils import whoami from pioreactor.utils.timing import current_utc_datetime from pioreactor.utils.timing import RepeatedTimer -from pioreactor.automations.led import * def brief_pause() -> float: diff --git a/pioreactor/background_jobs/temperature_automation.py b/pioreactor/background_jobs/temperature_automation.py index 0488737b..0dbe987a 100644 --- a/pioreactor/background_jobs/temperature_automation.py +++ b/pioreactor/background_jobs/temperature_automation.py @@ -29,7 +29,6 @@ from pioreactor.utils.timing import RepeatedTimer from pioreactor.utils.timing import to_datetime from pioreactor.version import rpi_version_info -from pioreactor.automations.temperature import * class TemperatureAutomationJob(AutomationJob): diff --git a/pioreactor/cli/run.py b/pioreactor/cli/run.py index c9529fd5..a4e64fff 100644 --- a/pioreactor/cli/run.py +++ b/pioreactor/cli/run.py @@ -16,6 +16,9 @@ from pioreactor.background_jobs.stirring import click_stirring from pioreactor.background_jobs.temperature_automation import click_temperature_automation from pioreactor.whoami import am_I_leader +from pioreactor.automations.dosing import * +from pioreactor.automations.temperature import * +from pioreactor.automations.led import * @click.group(short_help="run a job")