Skip to content

Commit

Permalink
add vis_block to status
Browse files Browse the repository at this point in the history
  • Loading branch information
mileslucas committed Sep 14, 2024
1 parent 26896ae commit 748d43e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 0 additions & 3 deletions conf/daemons/vampires_mprocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,5 @@ procs:
shell: "while true; do sl; done"
autostart: false
monitor strehl:
shell: "watch 'vampires_strehl vcam1'"
autostart: false
monitor strehl (fast):
shell: "vampires_strehl_monitor vcam1"
autostart: false
10 changes: 10 additions & 0 deletions src/vampires_control/status/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"X_SRCEN",
"X_SRCFLX",
"X_SRCSEL",
"X_VISBLK",
"X_VPLPKO",
"X_VPLPKT",
"u_VOBMOD",
Expand Down Expand Up @@ -229,6 +230,15 @@ def get_table():
style=style,
)

## Block
if status_dict["X_VISBLK"].upper() == "IN":
style = danger_style
elif status_dict["X_VISBLK"].upper() == "OUT":
style = default_style
else:
style = unknown_style
table.add_row("Vis Block", str(status_dict["X_VISBLK"]), "", style=style)

## First pickoff
if status_dict["X_FIRPKO"].upper() == "IN":
style = active_style
Expand Down

0 comments on commit 748d43e

Please sign in to comment.