Skip to content

Commit

Permalink
import automations
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Jul 15, 2024
1 parent 872d00f commit f1fa2f1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pioreactor/automations/dosing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
from .chemostat import Chemostat
from .fed_batch import FedBatch
from .pid_morbidostat import PIDMorbidostat
from .silent import Silent
from .silent import Silent as DosingSilent
from .turbidostat import Turbidostat
2 changes: 1 addition & 1 deletion pioreactor/automations/led/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
from __future__ import annotations

from .light_dark_cycle import LightDarkCycle
from .silent import Silent
from .silent import Silent as LEDSilent
2 changes: 0 additions & 2 deletions pioreactor/background_jobs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
# -*- coding: utf-8 -*-
# needed to import to "load" the automation subclasses,
# and hence the *-controller will register them.
from __future__ import annotations
9 changes: 5 additions & 4 deletions pioreactor/cli/run.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# -*- coding: utf-8 -*-
# run.py
from __future__ import annotations

import click

from pioreactor import actions
from pioreactor import plugin_management
from pioreactor.automations.dosing import * # noqa: F403, F401
from pioreactor.automations.led import * # noqa: F403, F401
from pioreactor.automations.temperature import * # noqa: F403, F401
from pioreactor.background_jobs.dosing_automation import click_dosing_automation
from pioreactor.background_jobs.growth_rate_calculating import click_growth_rate_calculating
from pioreactor.background_jobs.leader.mqtt_to_db_streaming import click_mqtt_to_db_streaming
Expand All @@ -16,9 +18,8 @@
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 *

# required to "discover" automations


@click.group(short_help="run a job")
Expand Down

0 comments on commit f1fa2f1

Please sign in to comment.