Closed DominicOram closed 3 years ago
Should we look to returning a float for better accuracy? We'd need to adjust the underlying PV and a few other bits
There is already a get_run_duration
function the the genie python dae api , it also has optional period support
It seems RD requires something slightly different, he would like a duration since run start that does not take into account pause/waiting etc. get_run_duration above does allow for this, and is what is displayed on the dashboard as "run time". What RD requires is (time now - time run started) - we may need to give this a different name to "runtime" to avoid confusion.
Works great, minor comments on the PRs, sorry. Also, can you drop an email to the instrument scientist to let them know it will be there next cycle?
As an instrument scientist on Larmor (RD) I would like to be able to get the current runtime of the run through genie_python. This function should return an integer of how many seconds I have been running.
Acceptance Criteria
get_runtime
function in genie python that does the above