AstroHuntsman / huntsman-pocs

POCS on the Huntsman Telescope
MIT License
7 stars 8 forks source link

Weather safety checks fail in take_dark_observation if using simulated dome #506

Open danjampro opened 2 years ago

danjampro commented 2 years ago

Log sample:

D 07-12 07:40:23.906 Observation created: BiasObservation
D 07-12 07:40:23.926 Checking for AC power
D 07-12 07:40:23.952 Using power simulator
D 07-12 07:40:24.086 Sun -5.39 deg > -18.0 deg [observe]
D 07-12 07:40:24.089 Observatory is_dark: False
D 07-12 07:40:24.114 Dark Check: False
D 07-12 07:40:24.134 Checking weather safety
D 07-12 07:40:24.161 Weather Safety: False [148 sec old - 2021-07-12 07:37:55]
W 07-12 07:40:24.290 Unsafe conditions: {'ac_power': True, 'is_dark': False, 'good_weather': False, 'free_space_root': True, 'free_space_images': True}
W 07-12 07:40:24.290 Unsafe conditions: {'ac_power': True, 'is_dark': False, 'good_weather': False, 'free_space_root': True, 'free_space_images': True}
C 07-12 07:40:24.294 Problem going from 'taking_darks' to 'starting', exiting loop [RuntimeError('Safety check failed!')]
C 07-12 07:40:24.294 Problem going from 'taking_darks' to 'starting', exiting loop [RuntimeError('Safety check failed!')]

Problematic code: https://github.com/AstroHuntsman/huntsman-pocs/blob/e1023abfee19ffdf431b8b72b52402e3d7f30cf3/src/huntsman/pocs/observatory.py#L476

danjampro commented 2 years ago

513 will not solve this problem. I need to check if I created the simulated dome correctly.