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

1from daiquiri.core.components import ComponentActor 

2from daiquiri.core.hardware.bliss.session import * 

3 

4from bliss.config.static import get_config 

5 

6 

7class MonitorActor(ComponentActor): 

8 def method(self): 

9 """This actor determines whether the queue is ready to process 

10 

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