Skip to content

Commit

Permalink
update strehl_monitor outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
mileslucas committed Sep 14, 2024
1 parent 748d43e commit 7d695d3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/vampires_control/strehl.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import os
import warnings
from datetime import datetime, timezone

import click
import numpy as np
Expand Down Expand Up @@ -211,7 +213,11 @@ def vampires_strehl_monitor(stream: str):
stdin, stdout, stderr = client.exec_command(
f"/home/scexao/miniforge3/envs/vampires_control/bin/vampires_strehl {stream}"
)
print(stdout.readlines())
output = "".join(stdout.readlines())
os.system("cls" if os.name == "nt" else "clear")
print(datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M:%S.%s"))
print()
print(output)


if __name__ == "__main__":
Expand Down

0 comments on commit 7d695d3

Please sign in to comment.