Skip to content

Commit

Permalink
use new top level automation class
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Sep 6, 2023
1 parent 38e9a4a commit 2f679d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pioreactor/automations/dosing/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
from pioreactor.actions.pump import add_alt_media
from pioreactor.actions.pump import add_media
from pioreactor.actions.pump import remove_waste
from pioreactor.automations import BaseAutomationJob
from pioreactor.automations import events
from pioreactor.background_jobs.dosing_control import DosingController
from pioreactor.background_jobs.subjobs import BackgroundSubJob
from pioreactor.config import config
from pioreactor.pubsub import QOS
from pioreactor.utils import is_pio_job_running
Expand Down Expand Up @@ -157,7 +157,7 @@ def _update_alt_media_fraction(
)


class DosingAutomationJob(BackgroundSubJob):
class DosingAutomationJob(BaseAutomationJob):
"""
This is the super class that automations inherit from. The `run` function will
execute every `duration` minutes (selected at the start of the program). If `duration` is left
Expand Down
4 changes: 2 additions & 2 deletions pioreactor/automations/temperature/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
from pioreactor import exc
from pioreactor import structs
from pioreactor import types as pt
from pioreactor.background_jobs.subjobs import BackgroundSubJob
from pioreactor.automations import BaseAutomationJob
from pioreactor.background_jobs.temperature_control import TemperatureController
from pioreactor.pubsub import QOS
from pioreactor.utils import is_pio_job_running
from pioreactor.utils.timing import current_utc_datetime


class TemperatureAutomationJob(BackgroundSubJob):
class TemperatureAutomationJob(BaseAutomationJob):
"""
This is the super class that Temperature automations inherit from.
The `execute` function, which is what subclasses will define, is updated every time a new temperature is recorded to MQTT.
Expand Down

0 comments on commit 2f679d8

Please sign in to comment.