simonsobs / sorunlib

High level library for running observatory operations using OCS.
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Bidirectional tolerance on wait_until? #182

Open kmharrington opened 2 weeks ago

kmharrington commented 2 weeks ago

Starting a new issue so you can close the other one. With the sun breaks showing up and wanting to make the schedules easier for ROCs to queue. I'd like to be able to set the tolerance to only through errors if we're an hour after a time. Ex:

run.wait_until('2024-10-20T17:30:01.010000+00:00')
run.wait_until('2024-10-20T17:30:01.010000+00:00', tolerance=3600)

That's because I'm ending up with schedules that are going to end at 13:30 and then the telescope needs to stay parked for a few hours. If the schedules are running on auto-queue (easier for ROCs) I don't want that error tripping things.