Coverage for /opt/conda/envs/apienv/lib/python3.10/site-packages/daiquiri/implementors/queue/monitor.py: 100%
8 statements
« prev ^ index » next coverage.py v7.6.5, created at 2024-11-15 02:12 +0000
« prev ^ index » next coverage.py v7.6.5, created at 2024-11-15 02:12 +0000
1from daiquiri.core.components import ComponentActor
2from daiquiri.core.hardware.bliss.session import *
4from bliss.config.static import get_config
7class MonitorActor(ComponentActor):
8 def method(self):
9 """This actor determines whether the queue is ready to process
11 Returns:
12 ready (boolean): If the queue is ready to process
13 """
14 cfg = get_config()
15 omega = cfg.get("omega")
16 return omega.position != 90