Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
joshc-slac committed Oct 19, 2024
1 parent b4d4931 commit d49a5ee
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
3 changes: 2 additions & 1 deletion beams/behavior_tree/ActionNode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 4 additions & 5 deletions beams/behavior_tree/ActionWorker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)

Expand Down
4 changes: 2 additions & 2 deletions beams/sequencer/helpers/Timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions beams/tests/test_timer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import time

import pytest

from beams.sequencer.helpers.Timer import Timer


Expand Down

0 comments on commit d49a5ee

Please sign in to comment.