diff --git a/beams/behavior_tree/ActionNode.py b/beams/behavior_tree/ActionNode.py index 0599aa8..647d3d0 100644 --- a/beams/behavior_tree/ActionNode.py +++ b/beams/behavior_tree/ActionNode.py @@ -5,7 +5,8 @@ import py_trees -from beams.behavior_tree.ActionWorker import ActionWorker, wrapped_action_work # the latter is grabbed as a pas through +from beams.behavior_tree.ActionWorker import wrapped_action_work # noqa: F401 +from beams.behavior_tree.ActionWorker import ActionWorker from beams.behavior_tree.VolatileStatus import VolatileStatus from beams.typing_helper import ActionNodeWorkLoop, Evaluatable diff --git a/beams/behavior_tree/ActionWorker.py b/beams/behavior_tree/ActionWorker.py index e68b940..c560678 100644 --- a/beams/behavior_tree/ActionWorker.py +++ b/beams/behavior_tree/ActionWorker.py @@ -13,19 +13,18 @@ """ import logging import time -from multiprocessing import Event, Value, Queue +from multiprocessing import Event, Queue, Value from typing import Callable, Optional -from epics.multiproc import CAProcess - import py_trees +from epics.multiproc import CAProcess from beams.behavior_tree.VolatileStatus import VolatileStatus from beams.logging import LOGGER_QUEUE, worker_logging_configurer +from beams.sequencer.helpers.Timer import Timer +from beams.sequencer.helpers.Worker import Worker from beams.typing_helper import (ActionNodeWorkFunction, ActionNodeWorkLoop, Evaluatable) -from beams.sequencer.helpers.Worker import Worker -from beams.sequencer.helpers.Timer import Timer logger = logging.getLogger(__name__) diff --git a/beams/sequencer/helpers/Timer.py b/beams/sequencer/helpers/Timer.py index 0bee866..8e5c77c 100644 --- a/beams/sequencer/helpers/Timer.py +++ b/beams/sequencer/helpers/Timer.py @@ -3,9 +3,9 @@ class Timer(): def __init__(self, - name: str, + name: str, timer_period_seconds: float, - auto_start: bool = False, + auto_start: bool = False, is_periodic: bool = False): self.name = name self.timer_period_seconds = timer_period_seconds diff --git a/beams/tests/test_timer.py b/beams/tests/test_timer.py index ac12f21..9542b04 100644 --- a/beams/tests/test_timer.py +++ b/beams/tests/test_timer.py @@ -1,5 +1,7 @@ import time + import pytest + from beams.sequencer.helpers.Timer import Timer