pyobs-core 2.28.2__tar.gz → 2.29.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (487) hide show
  1. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/PKG-INFO +1 -1
  2. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/application.py +32 -4
  3. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/cli/pyobs.py +14 -1
  4. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/cli/pyobsd.py +215 -33
  5. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/mixins/coolingramp.py +49 -3
  6. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/constraints/__init__.py +2 -0
  7. pyobs_core-2.29.0/pyobs/robotic/scheduler/constraints/timeofdayconstraint.py +66 -0
  8. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/merits/__init__.py +0 -2
  9. pyobs_core-2.29.0/pyobs/utils/shutdown.py +191 -0
  10. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyproject.toml +1 -1
  11. pyobs_core-2.28.2/pyobs/robotic/scheduler/merits/timeofday.py +0 -54
  12. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/.gitignore +0 -0
  13. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/LICENSE +0 -0
  14. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/README.md +0 -0
  15. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/__init__.py +0 -0
  16. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/background_task.py +0 -0
  17. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/cli/__init__.py +0 -0
  18. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/cli/_cli.py +0 -0
  19. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/cli/pyobsw.py +0 -0
  20. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/comm/__init__.py +0 -0
  21. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/comm/comm.py +0 -0
  22. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/comm/commlogging.py +0 -0
  23. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/comm/dummy/__init__.py +0 -0
  24. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/comm/dummy/dummycomm.py +0 -0
  25. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/comm/local/__init__.py +0 -0
  26. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/comm/local/localcomm.py +0 -0
  27. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/comm/local/localnetwork.py +0 -0
  28. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/comm/proxy.py +0 -0
  29. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/comm/xmpp/__init__.py +0 -0
  30. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/comm/xmpp/rpc.py +0 -0
  31. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/comm/xmpp/serializer.py +0 -0
  32. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/comm/xmpp/xep_0009/__init__.py +0 -0
  33. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/comm/xmpp/xep_0009/rpc.py +0 -0
  34. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/comm/xmpp/xep_0009_timeout/__init__.py +0 -0
  35. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/comm/xmpp/xep_0009_timeout/rpc.py +0 -0
  36. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/comm/xmpp/xep_0009_timeout/stanza/RPC.py +0 -0
  37. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/comm/xmpp/xep_0009_timeout/stanza/__init__.py +0 -0
  38. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/comm/xmpp/xmppclient.py +0 -0
  39. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/comm/xmpp/xmppcomm.py +0 -0
  40. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/events/__init__.py +0 -0
  41. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/events/badweather.py +0 -0
  42. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/events/event.py +0 -0
  43. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/events/exposurestatuschanged.py +0 -0
  44. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/events/filewritten.py +0 -0
  45. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/events/filterchanged.py +0 -0
  46. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/events/focusfound.py +0 -0
  47. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/events/goodweather.py +0 -0
  48. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/events/log.py +0 -0
  49. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/events/modechanged.py +0 -0
  50. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/events/moduleclosed.py +0 -0
  51. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/events/moduleopened.py +0 -0
  52. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/events/motionstatuschanged.py +0 -0
  53. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/events/move.py +0 -0
  54. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/events/newdata.py +0 -0
  55. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/events/newimage.py +0 -0
  56. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/events/newspectrum.py +0 -0
  57. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/events/offsets.py +0 -0
  58. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/events/roofclosing.py +0 -0
  59. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/events/roofopened.py +0 -0
  60. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/events/taskfailed.py +0 -0
  61. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/events/taskfinished.py +0 -0
  62. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/events/taskskipped.py +0 -0
  63. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/events/taskstarted.py +0 -0
  64. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/events/testevent.py +0 -0
  65. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/__init__.py +0 -0
  66. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/image.py +0 -0
  67. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/meta/__init__.py +0 -0
  68. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/meta/altazoffsets.py +0 -0
  69. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/meta/datapipeline.py +0 -0
  70. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/meta/exptime.py +0 -0
  71. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/meta/genericoffset.py +0 -0
  72. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/meta/onskydistance.py +0 -0
  73. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/meta/pixeloffsets.py +0 -0
  74. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/meta/radecoffsets.py +0 -0
  75. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/meta/skyoffsets.py +0 -0
  76. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processor.py +0 -0
  77. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/__init__.py +0 -0
  78. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/_daobackgroundremover.py +0 -0
  79. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/annotation/__init__.py +0 -0
  80. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/annotation/_pillow.py +0 -0
  81. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/annotation/circle.py +0 -0
  82. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/annotation/crosshair.py +0 -0
  83. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/annotation/text.py +0 -0
  84. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/astrometry/__init__.py +0 -0
  85. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/astrometry/_dotnet_request.py +0 -0
  86. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/astrometry/_dotnet_request_builder.py +0 -0
  87. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/astrometry/_dotnet_request_logger.py +0 -0
  88. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/astrometry/_dotnet_response_saver.py +0 -0
  89. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/astrometry/astrometry.py +0 -0
  90. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/astrometry/dotnet.py +0 -0
  91. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/calibration/__init__.py +0 -0
  92. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/calibration/_calibration_cache.py +0 -0
  93. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/calibration/_ccddata_calibrator.py +0 -0
  94. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/calibration/calibration.py +0 -0
  95. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/detection/__init__.py +0 -0
  96. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/detection/_pysep_stats_calculator.py +0 -0
  97. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/detection/_source_catalog.py +0 -0
  98. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/detection/daophot.py +0 -0
  99. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/detection/pysep.py +0 -0
  100. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/detection/simpledisk.py +0 -0
  101. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/detection/sourcedetection.py +0 -0
  102. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/exptime/__init__.py +0 -0
  103. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/exptime/exptime.py +0 -0
  104. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/exptime/star.py +0 -0
  105. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/image/__init__.py +0 -0
  106. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/image/addfitsheaders.py +0 -0
  107. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/image/download.py +0 -0
  108. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/image/flip.py +0 -0
  109. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/image/grayscale.py +0 -0
  110. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/image/httpserver.py +0 -0
  111. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/image/normalize.py +0 -0
  112. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/image/save.py +0 -0
  113. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/image/saveimage.py +0 -0
  114. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/image/smooth.py +0 -0
  115. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/image/softbin.py +0 -0
  116. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/misc/__init__.py +0 -0
  117. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/misc/addmask.py +0 -0
  118. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/misc/catalogcircularmask.py +0 -0
  119. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/misc/circularmask.py +0 -0
  120. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/misc/createfilename.py +0 -0
  121. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/misc/imagesourcefilter.py +0 -0
  122. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/misc/removebackground.py +0 -0
  123. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/modules/__init__.py +0 -0
  124. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/modules/getfitsheaders.py +0 -0
  125. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/offsets/__init__.py +0 -0
  126. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/offsets/astrometry.py +0 -0
  127. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/offsets/brighteststar.py +0 -0
  128. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/offsets/brighteststar_guiding.py +0 -0
  129. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/offsets/dummyoffsets.py +0 -0
  130. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/offsets/dummyskyoffsets.py +0 -0
  131. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/offsets/fitsheader.py +0 -0
  132. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/offsets/offsets.py +0 -0
  133. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/offsets/pixeloffsets.py +0 -0
  134. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/offsets/projected.py +0 -0
  135. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/offsets/spilled_light.py +0 -0
  136. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/photometry/__init__.py +0 -0
  137. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/photometry/_photometry_calculator.py +0 -0
  138. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/photometry/_photutil_aperture_photometry.py +0 -0
  139. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/photometry/_sep_aperture_photometry.py +0 -0
  140. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/photometry/aperture_photometry.py +0 -0
  141. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/photometry/photometry.py +0 -0
  142. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/photometry/photutil.py +0 -0
  143. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/photometry/pysep.py +0 -0
  144. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/stack/__init__.py +0 -0
  145. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/stack/combinestack.py +0 -0
  146. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/stack/mean.py +0 -0
  147. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/stack/median.py +0 -0
  148. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/stack/sigmaclip.py +0 -0
  149. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/stack/sum.py +0 -0
  150. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/wcs/__init__.py +0 -0
  151. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/images/processors/wcs/solarhelioprojective.py +0 -0
  152. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IAbortable.py +0 -0
  153. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IAcquisition.py +0 -0
  154. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IAutoFocus.py +0 -0
  155. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IAutoGuiding.py +0 -0
  156. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IAutonomous.py +0 -0
  157. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IBinning.py +0 -0
  158. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/ICalibrate.py +0 -0
  159. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/ICamera.py +0 -0
  160. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IConfig.py +0 -0
  161. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/ICooling.py +0 -0
  162. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IData.py +0 -0
  163. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IDataPipeline.py +0 -0
  164. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IDataSequence.py +0 -0
  165. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IDataStack.py +0 -0
  166. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IDome.py +0 -0
  167. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IExposure.py +0 -0
  168. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IExposureTime.py +0 -0
  169. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IFilters.py +0 -0
  170. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IFitsHeaderAfter.py +0 -0
  171. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IFitsHeaderBefore.py +0 -0
  172. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IFlatField.py +0 -0
  173. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IFocusModel.py +0 -0
  174. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IFocuser.py +0 -0
  175. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IGain.py +0 -0
  176. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IImageFormat.py +0 -0
  177. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IImageType.py +0 -0
  178. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IMode.py +0 -0
  179. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IModule.py +0 -0
  180. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IMotion.py +0 -0
  181. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IMultiFiber.py +0 -0
  182. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IOffsetsAltAz.py +0 -0
  183. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IOffsetsRaDec.py +0 -0
  184. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IPointingAltAz.py +0 -0
  185. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IPointingBody.py +0 -0
  186. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IPointingHeliocentricPolar.py +0 -0
  187. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IPointingHeliographicStonyhurst.py +0 -0
  188. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IPointingHelioprojective.py +0 -0
  189. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IPointingOrbitalElements.py +0 -0
  190. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IPointingRaDec.py +0 -0
  191. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IPointingSeries.py +0 -0
  192. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IPushNotifications.py +0 -0
  193. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IReady.py +0 -0
  194. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IResettable.py +0 -0
  195. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IRobotic.py +0 -0
  196. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IRoboticScheduler.py +0 -0
  197. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IRoof.py +0 -0
  198. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IRotation.py +0 -0
  199. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IRunnable.py +0 -0
  200. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IRunning.py +0 -0
  201. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IScriptRunner.py +0 -0
  202. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/ISpectrograph.py +0 -0
  203. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IStartStop.py +0 -0
  204. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IStructuredConfig.py +0 -0
  205. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/ISyncTarget.py +0 -0
  206. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/ITelescope.py +0 -0
  207. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/ITemperatures.py +0 -0
  208. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/ITrackingMode.py +0 -0
  209. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/ITrackingRate.py +0 -0
  210. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IVideo.py +0 -0
  211. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IWeather.py +0 -0
  212. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/IWindow.py +0 -0
  213. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/__init__.py +0 -0
  214. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/interfaces/interface.py +0 -0
  215. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/mixins/__init__.py +0 -0
  216. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/mixins/camerasettings.py +0 -0
  217. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/mixins/datapipeline.py +0 -0
  218. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/mixins/datasequence.py +0 -0
  219. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/mixins/fitsheader.py +0 -0
  220. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/mixins/fitsnamespace.py +0 -0
  221. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/mixins/follow.py +0 -0
  222. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/mixins/motionstatus.py +0 -0
  223. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/mixins/pipeline.py +0 -0
  224. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/mixins/waitformotion.py +0 -0
  225. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/mixins/weatheraware.py +0 -0
  226. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/__init__.py +0 -0
  227. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/camera/__init__.py +0 -0
  228. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/camera/adaptive.py +0 -0
  229. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/camera/basecamera.py +0 -0
  230. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/camera/basedata.py +0 -0
  231. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/camera/basespectrograph.py +0 -0
  232. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/camera/basevideo.py +0 -0
  233. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/camera/dummycamera.py +0 -0
  234. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/camera/dummyspectrograph.py +0 -0
  235. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/camera/dummyvideo.py +0 -0
  236. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/camera/pipelinecamera.py +0 -0
  237. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/camera/videoframes.py +0 -0
  238. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/flatfield/__init__.py +0 -0
  239. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/flatfield/flatfield.py +0 -0
  240. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/flatfield/pointing.py +0 -0
  241. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/flatfield/scheduler.py +0 -0
  242. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/focus/__init__.py +0 -0
  243. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/focus/dummyautofocus.py +0 -0
  244. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/focus/focusmodel.py +0 -0
  245. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/focus/focusseries.py +0 -0
  246. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/image/__init__.py +0 -0
  247. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/image/imagewatcher.py +0 -0
  248. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/image/imagewriter.py +0 -0
  249. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/image/pipeline.py +0 -0
  250. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/image/seeing.py +0 -0
  251. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/module.py +0 -0
  252. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/pointing/__init__.py +0 -0
  253. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/pointing/_base.py +0 -0
  254. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/pointing/_baseguiding.py +0 -0
  255. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/pointing/acquisition.py +0 -0
  256. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/pointing/autoguiding.py +0 -0
  257. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/pointing/dummyacquisition.py +0 -0
  258. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/pointing/dummyguiding.py +0 -0
  259. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/pointing/guidingsource.py +0 -0
  260. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/pointing/guidingstatistics/__init__.py +0 -0
  261. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/pointing/guidingstatistics/guidingstatistics.py +0 -0
  262. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/pointing/guidingstatistics/pixeloffset.py +0 -0
  263. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/pointing/guidingstatistics/skyoffsets.py +0 -0
  264. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/pointing/guidingstatistics/uptime.py +0 -0
  265. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/pointing/scienceframeguiding.py +0 -0
  266. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/robotic/__init__.py +0 -0
  267. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/robotic/dummymastermind.py +0 -0
  268. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/robotic/dummyscheduler.py +0 -0
  269. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/robotic/mastermind.py +0 -0
  270. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/robotic/pointing.py +0 -0
  271. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/robotic/scheduler.py +0 -0
  272. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/robotic/scriptrunner.py +0 -0
  273. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/roof/__init__.py +0 -0
  274. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/roof/basedome.py +0 -0
  275. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/roof/baseroof.py +0 -0
  276. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/roof/dummyroof.py +0 -0
  277. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/telescope/__init__.py +0 -0
  278. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/telescope/_dummytelescopebase.py +0 -0
  279. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/telescope/basetelescope.py +0 -0
  280. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/telescope/dummyaltaztelescope.py +0 -0
  281. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/telescope/dummyradectelescope.py +0 -0
  282. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/telescope/dummysolartelescope.py +0 -0
  283. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/test/__init__.py +0 -0
  284. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/test/standalone.py +0 -0
  285. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/utils/__init__.py +0 -0
  286. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/utils/dummymode.py +0 -0
  287. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/utils/dummystructuredconfig.py +0 -0
  288. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/utils/fluentlogger.py +0 -0
  289. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/utils/httpfilecache.py +0 -0
  290. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/utils/kiosk.py +0 -0
  291. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/utils/matrix.py +0 -0
  292. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/utils/pushnotifier.py +0 -0
  293. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/utils/stellarium.py +0 -0
  294. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/utils/telegram.py +0 -0
  295. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/utils/trigger.py +0 -0
  296. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/weather/__init__.py +0 -0
  297. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/weather/mockweather.py +0 -0
  298. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/weather/weather.py +0 -0
  299. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/weather/weather_api.py +0 -0
  300. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/modules/weather/weather_state.py +0 -0
  301. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/object.py +0 -0
  302. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/py.typed +0 -0
  303. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/__init__.py +0 -0
  304. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/instruments.py +0 -0
  305. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/observation.py +0 -0
  306. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/__init__.py +0 -0
  307. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/_executor.py +0 -0
  308. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/astroplanscheduler.py +0 -0
  309. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/constraints/airmassconstraint.py +0 -0
  310. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/constraints/constraint.py +0 -0
  311. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/constraints/moonilluminationconstraint.py +0 -0
  312. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/constraints/moonseparationconstraint.py +0 -0
  313. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/constraints/solarelevationconstraint.py +0 -0
  314. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/constraints/timeconstraint.py +0 -0
  315. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/dataprovider.py +0 -0
  316. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/merits/aftertime.py +0 -0
  317. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/merits/beforetime.py +0 -0
  318. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/merits/constant.py +0 -0
  319. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/merits/follow.py +0 -0
  320. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/merits/interval.py +0 -0
  321. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/merits/merit.py +0 -0
  322. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/merits/pernight.py +0 -0
  323. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/merits/random.py +0 -0
  324. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/merits/timewindow.py +0 -0
  325. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/merits/transit.py +0 -0
  326. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/observationarchiveevolution.py +0 -0
  327. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/observingperiod.py +0 -0
  328. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/ondemandscheduler.py +0 -0
  329. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/targets/__init__.py +0 -0
  330. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/targets/dynamictarget.py +0 -0
  331. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/targets/heliocentricpolartarget.py +0 -0
  332. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/targets/helioprojectivetarget.py +0 -0
  333. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/targets/picker/__init__.py +0 -0
  334. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/targets/picker/csvpicker.py +0 -0
  335. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/targets/picker/picker.py +0 -0
  336. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/targets/siderealtarget.py +0 -0
  337. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/targets/target.py +0 -0
  338. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scheduler/taskscheduler.py +0 -0
  339. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scripts/__init__.py +0 -0
  340. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scripts/calibration/__init__.py +0 -0
  341. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scripts/calibration/darkbias.py +0 -0
  342. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scripts/calibration/pointing.py +0 -0
  343. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scripts/calibration/skyflats.py +0 -0
  344. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scripts/control/__init__.py +0 -0
  345. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scripts/control/cases.py +0 -0
  346. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scripts/control/conditional.py +0 -0
  347. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scripts/control/parallel.py +0 -0
  348. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scripts/control/selector.py +0 -0
  349. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scripts/control/sequential.py +0 -0
  350. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scripts/exceptions.py +0 -0
  351. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scripts/imaging/__init__.py +0 -0
  352. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scripts/imaging/autofocus.py +0 -0
  353. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scripts/imaging/imaging.py +0 -0
  354. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scripts/imaging/transitimaging.py +0 -0
  355. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scripts/script.py +0 -0
  356. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scripts/utils/__init__.py +0 -0
  357. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scripts/utils/callmodule.py +0 -0
  358. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scripts/utils/debugtrigger.py +0 -0
  359. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/scripts/utils/log.py +0 -0
  360. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/storage/__init__.py +0 -0
  361. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/storage/filesystem/__init__.py +0 -0
  362. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/storage/filesystem/observationarchive.py +0 -0
  363. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/storage/filesystem/taskarchive.py +0 -0
  364. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/storage/lco/__init__.py +0 -0
  365. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/storage/lco/_portal.py +0 -0
  366. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/storage/lco/_schedulereader.py +0 -0
  367. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/storage/lco/_schedulewriter.py +0 -0
  368. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/storage/lco/configdb.py +0 -0
  369. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/storage/lco/mockobservationarchive.py +0 -0
  370. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/storage/lco/observationarchive.py +0 -0
  371. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/storage/lco/scripts/__init__.py +0 -0
  372. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/storage/lco/scripts/autofocus.py +0 -0
  373. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/storage/lco/scripts/default.py +0 -0
  374. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/storage/lco/scripts/script.py +0 -0
  375. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/storage/lco/task.py +0 -0
  376. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/storage/lco/taskarchive.py +0 -0
  377. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/storage/lco/taskrunner.py +0 -0
  378. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/storage/memory/__init__.py +0 -0
  379. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/storage/memory/observationarchive.py +0 -0
  380. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/storage/memory/taskarchive.py +0 -0
  381. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/storage/observationarchive.py +0 -0
  382. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/storage/portal/__init__.py +0 -0
  383. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/storage/portal/observationarchive.py +0 -0
  384. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/storage/portal/taskarchive.py +0 -0
  385. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/storage/taskarchive.py +0 -0
  386. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/task.py +0 -0
  387. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/taskrunner.py +0 -0
  388. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/utils/__init__.py +0 -0
  389. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/utils/archive/__init__.py +0 -0
  390. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/utils/archive/archive.py +0 -0
  391. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/utils/archive/local_archive.py +0 -0
  392. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/utils/archive/pyobs_archive.py +0 -0
  393. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/utils/calibration.py +0 -0
  394. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/utils/exptime/__init__.py +0 -0
  395. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/utils/exptime/exptime.py +0 -0
  396. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/utils/exptime/stellarexptime.py +0 -0
  397. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/utils/skyflats/__init__.py +0 -0
  398. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/utils/skyflats/exptimeeval.py +0 -0
  399. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/utils/skyflats/flatfielder.py +0 -0
  400. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/utils/skyflats/pointing/__init__.py +0 -0
  401. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/utils/skyflats/pointing/base.py +0 -0
  402. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/utils/skyflats/pointing/static.py +0 -0
  403. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/utils/skyflats/priorities/__init__.py +0 -0
  404. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/utils/skyflats/priorities/archive.py +0 -0
  405. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/utils/skyflats/priorities/base.py +0 -0
  406. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/utils/skyflats/priorities/const.py +0 -0
  407. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/robotic/utils/skyflats/scheduler.py +0 -0
  408. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/__init__.py +0 -0
  409. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/average.py +0 -0
  410. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/cache.py +0 -0
  411. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/config.py +0 -0
  412. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/config_schema.py +0 -0
  413. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/coolingramp.py +0 -0
  414. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/coordinates.py +0 -0
  415. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/curvefit.py +0 -0
  416. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/enums.py +0 -0
  417. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/exceptions.py +0 -0
  418. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/exptime_grouping.py +0 -0
  419. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/fits.py +0 -0
  420. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/focusseries/__init__.py +0 -0
  421. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/focusseries/base.py +0 -0
  422. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/focusseries/photometry.py +0 -0
  423. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/focusseries/projection.py +0 -0
  424. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/frameheader.py +0 -0
  425. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/grids/__init__.py +0 -0
  426. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/grids/filters.py +0 -0
  427. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/grids/grid.py +0 -0
  428. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/grids/gridnode.py +0 -0
  429. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/grids/pipeline.py +0 -0
  430. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/gui/__init__.py +0 -0
  431. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/gui/camera/__init__.py +0 -0
  432. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/gui/camera/binningwidget.py +0 -0
  433. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/gui/camera/coolingwidget.py +0 -0
  434. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/gui/camera/datadisplaywidget.py +0 -0
  435. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/gui/camera/exposewidget.py +0 -0
  436. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/gui/camera/exposuretimewidget.py +0 -0
  437. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/gui/camera/gainoffsetwidget.py +0 -0
  438. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/gui/camera/imageformatwidget.py +0 -0
  439. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/gui/camera/listpickerdialog.py +0 -0
  440. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/gui/camera/windowingwidget.py +0 -0
  441. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/http.py +0 -0
  442. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/influxdb.py +0 -0
  443. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/logger.py +0 -0
  444. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/logging/__init__.py +0 -0
  445. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/logging/context.py +0 -0
  446. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/logging/resolvableerror.py +0 -0
  447. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/modulegui.py +0 -0
  448. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/offsets/__init__.py +0 -0
  449. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/offsets/applyaltazoffsets.py +0 -0
  450. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/offsets/applyoffsets.py +0 -0
  451. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/offsets/applyradecoffsets.py +0 -0
  452. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/parallel.py +0 -0
  453. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/pipeline/__init__.py +0 -0
  454. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/pipeline/pipeline.py +0 -0
  455. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/pipeline/progress.py +0 -0
  456. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/pipeline/reduction.py +0 -0
  457. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/pipeline/reduction_base.py +0 -0
  458. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/publisher/__init__.py +0 -0
  459. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/publisher/csv.py +0 -0
  460. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/publisher/http.py +0 -0
  461. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/publisher/log.py +0 -0
  462. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/publisher/multi.py +0 -0
  463. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/publisher/publisher.py +0 -0
  464. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/serialization.py +0 -0
  465. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/shellcommand.py +0 -0
  466. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/stretch.py +0 -0
  467. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/threads/__init__.py +0 -0
  468. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/threads/lockwithabort.py +0 -0
  469. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/time.py +0 -0
  470. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/units.py +0 -0
  471. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/utils/versions.py +0 -0
  472. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/version.py +0 -0
  473. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/vfs/__init__.py +0 -0
  474. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/vfs/archivefile.py +0 -0
  475. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/vfs/bufferedfile.py +0 -0
  476. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/vfs/file.py +0 -0
  477. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/vfs/filelists/__init__.py +0 -0
  478. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/vfs/filelists/filelist.py +0 -0
  479. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/vfs/filelists/testing.py +0 -0
  480. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/vfs/httpfile.py +0 -0
  481. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/vfs/localfile.py +0 -0
  482. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/vfs/memfile.py +0 -0
  483. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/vfs/sftpfile.py +0 -0
  484. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/vfs/smbfile.py +0 -0
  485. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/vfs/sshfile.py +0 -0
  486. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/vfs/tempfile.py +0 -0
  487. {pyobs_core-2.28.2 → pyobs_core-2.29.0}/pyobs/vfs/vfs.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: pyobs-core
3
- Version: 2.28.2
3
+ Version: 2.29.0
4
4
  Summary: robotic telescope software
5
5
  Project-URL: Homepage, https://www.pyobs.org
6
6
  Project-URL: Documentation, https://docs.pyobs.org
@@ -14,6 +14,7 @@ import yaml
14
14
  from pyobs.comm.dummy import DummyComm
15
15
  from pyobs.modules import Module, MultiModule
16
16
  from pyobs.object import get_class_from_string, get_object
17
+ from pyobs.utils import shutdown
17
18
  from pyobs.utils.config import pre_process_yaml
18
19
  from pyobs.utils.logging.context import ModuleNameFilter
19
20
  from pyobs.utils.versions import loaded_pyobs_packages
@@ -111,6 +112,8 @@ class Application:
111
112
  syslog: bool = False,
112
113
  influx_log: InfluxLogConfig | None = None,
113
114
  iers_offline: bool = False,
115
+ pid_file: str | None = None,
116
+ stop_timeout: float = 30.0,
114
117
  **kwargs: Any,
115
118
  ):
116
119
  """Initializes a pyobs application.
@@ -137,7 +140,20 @@ class Application:
137
140
  (pyobs.cli.pyobs's GLOBAL_CONFIG_KEYS) instead of a bare env var, so it applies
138
141
  the same way regardless of how the module process was spawned.
139
142
  influx_log: Log to influx DB.
143
+ pid_file: PID file of a daemonized module, if any. A module that needs more time to shut
144
+ down then writes its deadline into a stop file next to it (see pyobs.utils.shutdown),
145
+ which pyobsd and web-admin respect before sending SIGKILL.
146
+ stop_timeout: Seconds the shutdown may take after the first signal, unless the module asks for more
147
+ time (see pyobs.utils.shutdown). After that, plus a short grace time, the process ends itself.
148
+ pyobsd passes its own stop_timeout here.
140
149
  """
150
+ self._stop_timeout = float(stop_timeout)
151
+ self._stopping = False
152
+ # stop file for extend_stop_timeout(), removed again at the end of run(); one left behind by an earlier
153
+ # run (e.g. killed during shutdown) would make this run look like it is stopping
154
+ shutdown.set_stop_file(shutdown.stop_file_for(pid_file) if pid_file is not None else None)
155
+ shutdown.clear_stop_file()
156
+
141
157
  if (config is None) == (module_factory is None):
142
158
  raise ValueError("Exactly one of 'config' or 'module_factory' must be given.")
143
159
  if module_factory is not None and loop_module_class is None:
@@ -355,9 +371,25 @@ class Application:
355
371
  log.info("Closing loop...")
356
372
  self._loop.close()
357
373
 
374
+ # shutdown is done, so a deadline from extend_stop_timeout() no longer applies
375
+ shutdown.clear_stop_file()
376
+
358
377
  def _signal_handler(self, sig: int) -> None:
359
378
  """React to signals and quit the module."""
360
379
 
380
+ # only the first signal starts the shutdown. The handlers stay installed, since removing them would
381
+ # restore the default action, and a second SIGTERM (e.g. "pyobsd stop" run again) would then kill the
382
+ # module in the middle of its shutdown (e.g. while a camera warms up)
383
+ if self._stopping:
384
+ log.info("Got signal: %s, already shutting down.", sig)
385
+ return
386
+ self._stopping = True
387
+
388
+ # let pyobsd/web-admin show the module as "stopping" until it is gone, and end the process if that
389
+ # takes too long, also when nobody waits to send SIGKILL
390
+ shutdown.mark_stopping()
391
+ shutdown.start_watchdog(self._stop_timeout)
392
+
361
393
  if self._module is not None:
362
394
  self._module.quit()
363
395
  else:
@@ -367,11 +399,7 @@ class Application:
367
399
  self._main_task.cancel()
368
400
  self._loop.stop()
369
401
 
370
- # reset signal handlers
371
402
  log.info("Got signal: %s, shutting down.", sig)
372
- loop = asyncio.get_running_loop()
373
- loop.remove_signal_handler(signal.SIGTERM)
374
- loop.add_signal_handler(signal.SIGINT, lambda: None)
375
403
 
376
404
  async def _main(self) -> None:
377
405
  """Actually run the application."""
@@ -24,6 +24,7 @@ class PyobsCLI(CLI):
24
24
  "influx_log",
25
25
  "debug_time",
26
26
  "iers_offline",
27
+ "stop_timeout",
27
28
  ]
28
29
 
29
30
  def init_cli(self) -> None:
@@ -63,6 +64,15 @@ class PyobsCLI(CLI):
63
64
  default=self._config.get("iers_offline", False),
64
65
  )
65
66
 
67
+ # shutdown
68
+ self._parser.add_argument(
69
+ "--stop-timeout",
70
+ type=float,
71
+ default=self._config.get("stop_timeout", 30.0),
72
+ metavar="SECONDS",
73
+ help="seconds the shutdown may take before the module ends itself, unless it asked for more time",
74
+ )
75
+
66
76
  # debug stuff
67
77
  self._parser.add_argument(
68
78
  "--debug-time",
@@ -112,6 +122,9 @@ class PyobsCLI(CLI):
112
122
  import daemon
113
123
  from daemon import pidfile
114
124
 
125
+ # absolute, since DaemonContext changes into the run directory before the application gets the path
126
+ pid_file = os.path.abspath(pid_file)
127
+
115
128
  # get run directory
116
129
  run_dir = os.path.dirname(pid_file)
117
130
 
@@ -119,7 +132,7 @@ class PyobsCLI(CLI):
119
132
  with daemon.DaemonContext(
120
133
  working_directory=run_dir, umask=0o002, pidfile=pidfile.TimeoutPIDLockFile(pid_file)
121
134
  ) as _:
122
- self.application(**self._config).run()
135
+ self.application(**{**self._config, "pid_file": pid_file}).run()
123
136
 
124
137
 
125
138
  def main() -> None:
@@ -14,10 +14,15 @@ from typing import Any
14
14
 
15
15
  import psutil
16
16
 
17
+ from pyobs.utils.shutdown import read_stop_deadline, stop_file_for
18
+
17
19
  from ._cli import CLI
18
20
 
19
21
  log = logging.getLogger("pyobs")
20
22
 
23
+ # how long "stop --kill" waits for a killed module to be gone
24
+ _KILL_WAIT_SECONDS = 5.0
25
+
21
26
 
22
27
  class PyobsDaemonCLI(CLI):
23
28
  """Class for initializing and running pyobsd CLI."""
@@ -35,6 +40,7 @@ class PyobsDaemonCLI(CLI):
35
40
  "syslog",
36
41
  "file_log",
37
42
  "chuid",
43
+ "stop_timeout",
38
44
  ]
39
45
 
40
46
  def init_cli(self) -> None:
@@ -62,13 +68,33 @@ class PyobsDaemonCLI(CLI):
62
68
  default=self._config.get("file_log", False),
63
69
  )
64
70
  self._parser.add_argument("--chuid", type=str, default=self._config.get("chuid", "pyobs:pyobs"))
71
+ self._parser.add_argument(
72
+ "--stop-timeout",
73
+ type=float,
74
+ default=self._config.get("stop_timeout", 30.0),
75
+ metavar="SECONDS",
76
+ help="seconds to wait after SIGTERM before sending SIGKILL, unless the module asked for more time",
77
+ )
65
78
  self._parser.add_argument("-v", "--verbose", action="store_true")
66
79
 
67
80
  # commands
68
81
  sp = self._parser.add_subparsers(dest="command")
69
82
  sp.add_parser("start", help="start modules").add_argument("modules", type=str, nargs="*")
70
- sp.add_parser("stop", help="stop modules").add_argument("modules", type=str, nargs="*")
71
- sp.add_parser("restart", help="restart modules").add_argument("modules", type=str, nargs="*")
83
+ stop_parser = sp.add_parser("stop", help="stop modules")
84
+ stop_parser.add_argument("modules", type=str, nargs="*")
85
+ stop_parser.add_argument(
86
+ "--no-wait", action="store_true", help="only send SIGTERM, do not wait for the modules to exit"
87
+ )
88
+ stop_parser.add_argument(
89
+ "--kill",
90
+ action="store_true",
91
+ help="send SIGKILL right away, e.g. for a module whose shutdown hangs (cuts a camera's warm-up)",
92
+ )
93
+ restart_parser = sp.add_parser("restart", help="restart modules")
94
+ restart_parser.add_argument("modules", type=str, nargs="*")
95
+ restart_parser.add_argument(
96
+ "--kill", action="store_true", help="send SIGKILL right away instead of a normal stop, then start"
97
+ )
72
98
  status_parser = sp.add_parser("status", help="status of modules")
73
99
  status_parser.add_argument("--json", action="store_true")
74
100
  status_parser.add_argument(
@@ -94,6 +120,7 @@ class PyobsDaemonCLI(CLI):
94
120
  syslog=self._config["syslog"],
95
121
  file_log=self._config["file_log"],
96
122
  chuid=self._config["chuid"],
123
+ stop_timeout=self._config["stop_timeout"],
97
124
  verbose=self._config["verbose"],
98
125
  )
99
126
 
@@ -102,9 +129,12 @@ class PyobsDaemonCLI(CLI):
102
129
  case "start":
103
130
  daemon.start(modules=self._config["modules"])
104
131
  case "stop":
105
- daemon.stop(modules=self._config["modules"])
132
+ if self._config["kill"]:
133
+ daemon.kill(modules=self._config["modules"])
134
+ else:
135
+ daemon.stop(modules=self._config["modules"], wait=not self._config["no_wait"])
106
136
  case "restart":
107
- daemon.restart(modules=self._config["modules"])
137
+ daemon.restart(modules=self._config["modules"], kill=self._config["kill"])
108
138
  case "status":
109
139
  daemon.status(print_json=self._config["json"], cpu_interval=self._config["cpu_interval"])
110
140
  case "list":
@@ -123,10 +153,12 @@ class PyobsDaemon:
123
153
  syslog: bool = False,
124
154
  file_log: bool = False,
125
155
  chuid: str | None = None,
156
+ stop_timeout: float = 30.0,
126
157
  verbose: bool = False,
127
158
  **kwargs: Any,
128
159
  ):
129
160
  self._config_path = config_path
161
+ self._stop_timeout = stop_timeout
130
162
  self._run_path = run_path
131
163
  self._log_path = log_path
132
164
  self._log_level = log_level
@@ -185,6 +217,10 @@ class PyobsDaemon:
185
217
  def _log_file(self, module: str) -> str:
186
218
  return os.path.join(self._log_path, self._strip_disabled(module) + ".log")
187
219
 
220
+ def _stop_file(self, module: str) -> str:
221
+ """Where a stopping module writes its shutdown deadline (see pyobs.utils.shutdown)."""
222
+ return stop_file_for(self._pid_file(module))
223
+
188
224
  def _list_configs(self) -> list[str]:
189
225
  """Return sorted module names from *.yaml files, excluding *.shared.yaml."""
190
226
  paths = sorted(glob.glob(os.path.join(self._config_path, "*.yaml")))
@@ -215,13 +251,14 @@ class PyobsDaemon:
215
251
  return None
216
252
  if self._is_alive(pid):
217
253
  return pid
218
- # stale PID file — remove it
219
- try:
220
- os.remove(self._pid_file(module))
221
- except OSError:
222
- pass
254
+ # stale PID file — remove it, together with a stop file the process may have left behind
255
+ self._remove_run_files(module)
223
256
  return None
224
257
 
258
+ def _stop_deadline(self, module: str) -> float | None:
259
+ """The deadline a running module wrote into its stop file, or None if it is not stopping."""
260
+ return read_stop_deadline(self._stop_file(module))
261
+
225
262
  def _process_info(self, pid: int) -> dict[str, Any]:
226
263
  """Return uptime (seconds) and rss_mb for a running PID. No CPU -- that needs a
227
264
  shared sampling window across all processes, see _sample_cpu_percent."""
@@ -288,17 +325,77 @@ class PyobsDaemon:
288
325
  print(f"Starting {module}...")
289
326
  self._start_service(module)
290
327
 
291
- def stop(self, modules: list[str] | None = None) -> None:
328
+ def stop(self, modules: list[str] | None = None, wait: bool = True) -> None:
292
329
  # if no modules given, stop all that have a live PID
293
330
  if not modules:
294
331
  modules = [m for m in self._list_configs() if self._running_pid(m) is not None]
295
332
 
333
+ # send SIGTERM to all first, then wait for all together, so that one module with a long shutdown
334
+ # (e.g. a camera warming up) does not delay sending SIGTERM to the others
335
+ stopping: dict[str, int] = {}
296
336
  for module in modules:
297
337
  print(f"Stopping {module}...")
298
- self._stop_service(module)
338
+ pid = self._signal_stop(module)
339
+ if pid is not None:
340
+ stopping[module] = pid
341
+
342
+ if wait:
343
+ try:
344
+ self._wait_stopped(stopping)
345
+ except KeyboardInterrupt:
346
+ # the modules run in their own session and keep shutting down without us
347
+ print("\nStopped waiting.")
348
+ now = time.time()
349
+ for module, pid in stopping.items():
350
+ if not self._is_alive(pid):
351
+ continue
352
+ deadline = read_stop_deadline(self._stop_file(module))
353
+ until = ""
354
+ if deadline is not None and deadline > now:
355
+ until = f" (up to {self._fmt_wait(deadline - now)})"
356
+ print(f'{module} keeps shutting down in the background{until}, see "pyobsd status".')
357
+ sys.exit(130)
358
+
359
+ def kill(self, modules: list[str] | None = None) -> None:
360
+ """Sends SIGKILL right away, without a shutdown, e.g. to a module whose shutdown hangs, and removes its run
361
+ files. Without modules, kills all that have a live PID."""
362
+ if not modules:
363
+ modules = [m for m in self._list_configs() if self._running_pid(m) is not None]
299
364
 
300
- def restart(self, modules: list[str] | None = None) -> None:
301
- self.stop(modules=modules)
365
+ killed: dict[str, int] = {}
366
+ for module in modules:
367
+ pid = self._running_pid(module)
368
+ if pid is None:
369
+ print(f"{module} is not running.")
370
+ continue
371
+ print(f"Killing {module}...")
372
+ try:
373
+ os.kill(pid, signal.SIGKILL)
374
+ except OSError:
375
+ pass
376
+ killed[module] = pid
377
+
378
+ # SIGKILL can't end a process stuck in the kernel (e.g. in a USB driver call) until that call returns. Keep
379
+ # the PID file of such a process, so that it doesn't show as stopped and can't be started a second time
380
+ deadline = time.time() + _KILL_WAIT_SECONDS
381
+ while killed:
382
+ for module, pid in list(killed.items()):
383
+ if not self._is_alive(pid):
384
+ self._remove_run_files(module)
385
+ del killed[module]
386
+ if not killed or time.time() >= deadline:
387
+ break
388
+ time.sleep(0.1)
389
+ for module, pid in killed.items():
390
+ print(f"{module} (PID {pid}) is still alive after SIGKILL, probably stuck in a driver call.")
391
+ if killed:
392
+ sys.exit(1)
393
+
394
+ def restart(self, modules: list[str] | None = None, kill: bool = False) -> None:
395
+ if kill:
396
+ self.kill(modules=modules)
397
+ else:
398
+ self.stop(modules=modules)
302
399
  time.sleep(1)
303
400
  self.start(modules=modules)
304
401
 
@@ -319,15 +416,29 @@ class PyobsDaemon:
319
416
  # it slow for no benefit when nobody's looking at CPU. Only pay for it if asked.
320
417
  cpu_by_pid = self._sample_cpu_percent(list(pids.values()), cpu_interval) if cpu_interval else {}
321
418
 
419
+ # a running module with a stop file is shutting down (see pyobs.utils.shutdown)
420
+ deadlines = {module: self._stop_deadline(module) for module in pids}
421
+ now = time.time()
422
+
322
423
  if print_json:
424
+ # "running" stays true while a module is stopping (its process is still alive), so consumers that only
425
+ # know "running" keep working; "state" tells them apart
323
426
  result: dict[str, Any] = {}
324
427
  for module in modules:
325
428
  pid = pids.get(module)
326
429
  if pid is not None:
327
430
  info = self._process_info(pid)
328
- result[module] = {"running": True, "pid": pid, "cpu": cpu_by_pid.get(pid), **info}
431
+ deadline = deadlines[module]
432
+ result[module] = {
433
+ "running": True,
434
+ "state": "stopping" if deadline is not None else "running",
435
+ "stop_deadline": deadline,
436
+ "pid": pid,
437
+ "cpu": cpu_by_pid.get(pid),
438
+ **info,
439
+ }
329
440
  else:
330
- result[module] = {"running": False}
441
+ result[module] = {"running": False, "state": "stopped"}
331
442
  print(json.dumps(result))
332
443
  else:
333
444
  # header
@@ -339,11 +450,17 @@ class PyobsDaemon:
339
450
  info = self._process_info(pid)
340
451
  cpu = cpu_by_pid.get(pid)
341
452
  cpu_str = f"{cpu:>5.1f}%" if cpu is not None else f"{'-':>6}"
453
+ deadline = deadlines[module]
454
+ state = "stopping" if deadline is not None else "running"
455
+ wait = (
456
+ f" (up to {self._fmt_wait(deadline - now)})" if deadline is not None and deadline > now else ""
457
+ )
342
458
  print(
343
- f"{module:<30} {'running':<8} "
459
+ f"{module:<30} {state:<8} "
344
460
  f"{self._fmt_uptime(info['uptime']):>12} "
345
461
  f"{cpu_str} "
346
462
  f"{info['rss_mb']:>6.1f} MB"
463
+ f"{wait}"
347
464
  )
348
465
  else:
349
466
  print(f"{module:<30} {'stopped':<8}")
@@ -371,12 +488,21 @@ class PyobsDaemon:
371
488
  def _start_service(self, module: str) -> None:
372
489
  os.makedirs(self._run_path, exist_ok=True)
373
490
 
491
+ # a stop file left behind by a previous run (e.g. killed during warm-up) must not apply to this one
492
+ try:
493
+ os.remove(self._stop_file(module))
494
+ except FileNotFoundError:
495
+ pass
496
+
374
497
  cmd = [
375
498
  self._pyobs_exec,
376
499
  "--pid-file",
377
500
  self._pid_file(module),
378
501
  "--log-level",
379
502
  self._log_level,
503
+ # the module ends itself if its shutdown takes longer than this (or what it asked for)
504
+ "--stop-timeout",
505
+ str(self._stop_timeout),
380
506
  self._config_file(module),
381
507
  ]
382
508
  if self._file_log:
@@ -431,34 +557,90 @@ class PyobsDaemon:
431
557
  print(f" stderr: {stderr.decode(errors='replace').strip()}") # type: ignore[attr-defined]
432
558
 
433
559
  def _stop_service(self, module: str) -> None:
560
+ """Stops a single module and waits for it."""
561
+ pid = self._signal_stop(module)
562
+ if pid is not None:
563
+ self._wait_stopped({module: pid})
564
+
565
+ def _signal_stop(self, module: str) -> int | None:
566
+ """Sends SIGTERM to a module. Returns its PID, or None if it is not running (anymore)."""
434
567
  pid = self._running_pid(module)
435
568
  if pid is None:
436
569
  print(f"{module} is not running.")
437
- return
570
+ return None
571
+
572
+ # already shutting down (e.g. an earlier "pyobsd stop" was interrupted): don't signal again, a module with
573
+ # an older pyobs-core would get killed by a second SIGTERM in the middle of its shutdown
574
+ if os.path.exists(self._stop_file(module)):
575
+ print(f"{module} is already shutting down.")
576
+ return pid
438
577
 
439
578
  try:
440
579
  os.kill(pid, signal.SIGTERM)
441
580
  except OSError:
442
- return
443
-
444
- # wait up to 5 s for graceful shutdown, then SIGKILL
445
- for _ in range(50):
446
- if not self._is_alive(pid):
447
- break
448
- time.sleep(0.1)
449
- else:
450
- if self._verbose:
451
- print(f"[DEBUG] {module} did not stop gracefully, sending SIGKILL")
581
+ return None
582
+ return pid
583
+
584
+ def _wait_stopped(self, stopping: dict[str, int]) -> None:
585
+ """Waits for the given modules to exit and sends SIGKILL to those that take too long.
586
+
587
+ "Too long" is stop_timeout after SIGTERM, or later if the module wrote a later deadline into its stop
588
+ file (pyobs.utils.shutdown.extend_stop_timeout, e.g. while a camera warms up).
589
+
590
+ The last deadline read is kept: the application removes its stop file once its shutdown is done, but the
591
+ process lives on for a moment after that, and must not fall back to stop_timeout and get killed then."""
592
+ default_deadline = time.time() + self._stop_timeout
593
+ announced: dict[str, float] = {}
594
+ last_requested: dict[str, float] = {}
595
+ remaining = dict(stopping)
596
+
597
+ while remaining:
598
+ now = time.time()
599
+ for module, pid in list(remaining.items()):
600
+ if not self._is_alive(pid):
601
+ del remaining[module]
602
+ self._remove_run_files(module)
603
+ continue
604
+
605
+ requested = read_stop_deadline(self._stop_file(module))
606
+ if requested is not None:
607
+ last_requested[module] = requested
608
+ else:
609
+ requested = last_requested.get(module)
610
+ deadline = max(default_deadline, requested or 0.0)
611
+ if requested is not None and requested > default_deadline and announced.get(module) != requested:
612
+ announced[module] = requested
613
+ print(f"{module} is shutting down, waiting up to {self._fmt_wait(requested - now)}.")
614
+
615
+ if now >= deadline:
616
+ if self._verbose:
617
+ print(f"[DEBUG] {module} did not stop in time, sending SIGKILL")
618
+ else:
619
+ print(f"{module} did not stop in time, killing it.")
620
+ try:
621
+ os.kill(pid, signal.SIGKILL)
622
+ except OSError:
623
+ pass
624
+ del remaining[module]
625
+ self._remove_run_files(module)
626
+
627
+ if remaining:
628
+ time.sleep(0.1)
629
+
630
+ def _remove_run_files(self, module: str) -> None:
631
+ """Removes PID and stop file of a module."""
632
+ for path in (self._pid_file(module), self._stop_file(module)):
452
633
  try:
453
- os.kill(pid, signal.SIGKILL)
634
+ os.remove(path)
454
635
  except OSError:
455
636
  pass
456
637
 
457
- # clean up PID file
458
- try:
459
- os.remove(self._pid_file(module))
460
- except OSError:
461
- pass
638
+ @staticmethod
639
+ def _fmt_wait(seconds: float) -> str:
640
+ seconds = max(0, int(seconds))
641
+ if seconds < 120:
642
+ return f"{seconds} s"
643
+ return f"{round(seconds / 60)} min"
462
644
 
463
645
 
464
646
  def main() -> None:
@@ -2,10 +2,12 @@ from __future__ import annotations
2
2
 
3
3
  import asyncio
4
4
  import logging
5
+ import time
5
6
  from typing import Any
6
7
 
7
8
  from pyobs.interfaces import CoolingState
8
9
  from pyobs.utils.coolingramp import CoolingRamp
10
+ from pyobs.utils.shutdown import extend_stop_timeout
9
11
 
10
12
  log = logging.getLogger(__name__)
11
13
 
@@ -16,6 +18,10 @@ _RETRY_DELAY = 5.0
16
18
  _CLOSE_MARGIN_FACTOR = 1.2
17
19
  _CLOSE_MARGIN_SECONDS = 60.0
18
20
  _CLOSE_FALLBACK_TIMEOUT = 300.0
21
+ # extra time asked from pyobsd/systemd on top of the warm-up, for the rest of close()
22
+ _STOP_TIMEOUT_EXTRA_SECONDS = 30.0
23
+ # how often the warm-up on close logs its progress, in seconds
24
+ _WARMUP_LOG_INTERVAL = 60.0
19
25
 
20
26
 
21
27
  class CoolingRampMixin:
@@ -143,9 +149,11 @@ class CoolingRampMixin:
143
149
  timeout = self._cooling_close_timeout
144
150
  if timeout is None:
145
151
  timeout = await self._cooling_estimated_close_timeout()
152
+ # whoever stops the module (pyobsd, web-admin, systemd) must not kill it during the warm-up
153
+ extend_stop_timeout(timeout + _STOP_TIMEOUT_EXTRA_SECONDS)
146
154
  self._cooling_target = (False, None)
147
155
  try:
148
- await asyncio.wait_for(self._cooling_run_to_end(), timeout)
156
+ await asyncio.wait_for(self._cooling_warm_up(timeout), timeout)
149
157
  except TimeoutError:
150
158
  log.warning(
151
159
  "Warm-up on close did not finish within %.0fs (setpoint at %s). "
@@ -185,11 +193,41 @@ class CoolingRampMixin:
185
193
 
186
194
  # ramp -------------------------------------------------------------------------------------------------------
187
195
 
188
- async def _cooling_run_to_end(self) -> None:
196
+ async def _cooling_warm_up(self, timeout: float) -> None:
197
+ """Runs the warm-up ramp to its end. Logs when it starts, about every _WARMUP_LOG_INTERVAL seconds while it
198
+ runs, and when it is done, so the log shows why the module takes long to stop."""
199
+ start = time.monotonic()
200
+ delay = await self._cooling_tick()
201
+ if self._cooling_target is None:
202
+ return # cooler was off already, or switched off in the first step
203
+ log.info(
204
+ "Warming up from %s towards %.1f °C before closing, may take up to %s.",
205
+ _temperature(self._cooling_commanded),
206
+ self._cooling_ramp.off_temperature,
207
+ _duration(timeout),
208
+ )
209
+ next_log = start + _WARMUP_LOG_INTERVAL
189
210
  while self._cooling_target is not None:
190
- delay = await self._cooling_tick()
191
211
  if delay:
192
212
  await asyncio.sleep(delay)
213
+ delay = await self._cooling_tick()
214
+ now = time.monotonic()
215
+ if self._cooling_target is not None and now >= next_log:
216
+ await self._cooling_log_warm_up(start + timeout - now)
217
+ next_log = now + _WARMUP_LOG_INTERVAL
218
+ log.info("Warm-up done after %s, cooling is off.", _duration(time.monotonic() - start))
219
+
220
+ async def _cooling_log_warm_up(self, left: float) -> None:
221
+ try:
222
+ sensor = await self._get_sensor_temperature()
223
+ except Exception:
224
+ sensor = None # only for the log, the next tick reports a real problem
225
+ log.info(
226
+ "Warming up: setpoint %s, sensor %s, up to %s left.",
227
+ _temperature(self._cooling_commanded),
228
+ _temperature(sensor),
229
+ _duration(max(0.0, left)),
230
+ )
193
231
 
194
232
  async def _cooling_ramp_loop(self) -> None:
195
233
  while True:
@@ -273,4 +311,12 @@ class CoolingRampMixin:
273
311
  self._cooling_target = None
274
312
 
275
313
 
314
+ def _temperature(value: float | None) -> str:
315
+ return "unknown" if value is None else f"{value:.1f} °C"
316
+
317
+
318
+ def _duration(seconds: float) -> str:
319
+ return f"{seconds:.0f} s" if seconds < 90 else f"{seconds / 60:.0f} min"
320
+
321
+
276
322
  __all__ = ["CoolingRampMixin"]
@@ -4,6 +4,7 @@ from .moonilluminationconstraint import MoonIlluminationConstraint
4
4
  from .moonseparationconstraint import MoonSeparationConstraint
5
5
  from .solarelevationconstraint import SolarElevationConstraint
6
6
  from .timeconstraint import TimeConstraint
7
+ from .timeofdayconstraint import TimeOfDayConstraint
7
8
 
8
9
  __all__ = [
9
10
  "Constraint",
@@ -12,4 +13,5 @@ __all__ = [
12
13
  "MoonSeparationConstraint",
13
14
  "SolarElevationConstraint",
14
15
  "TimeConstraint",
16
+ "TimeOfDayConstraint",
15
17
  ]