panoptes / POCS

An Observatory Control System for the PANOPTES citizen-science project designed to help find transiting exoplanets! :telescope: :stars:
https://pocs.readthedocs.io/en/latest/
MIT License
77 stars 49 forks source link

gphoto timeout duration fix #1202

Closed wtgee closed 9 months ago

wtgee commented 9 months ago

Make the timeout durations consistent. A default timeout had been added to the camera's take_exposure method, which was then being passed to the _poll_exposure. Previously _poll_exposure had a timeout=None default, so it would build a new timeout duration consisting of the exptime, readout time, and a "timeout" padding. This change just builds that default in take_exposure and passes it to _poll_exposure but also uses the value to control the blocking in take_exposure.