pyobs-core 2.28.2__tar.gz → 2.29.0.dev1__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.dev1}/PKG-INFO +1 -1
  2. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/application.py +16 -0
  3. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/cli/pyobs.py +4 -1
  4. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/cli/pyobsd.py +135 -29
  5. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/mixins/coolingramp.py +5 -0
  6. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/constraints/__init__.py +2 -0
  7. pyobs_core-2.29.0.dev1/pyobs/robotic/scheduler/constraints/timeofdayconstraint.py +66 -0
  8. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/merits/__init__.py +0 -2
  9. pyobs_core-2.29.0.dev1/pyobs/utils/shutdown.py +123 -0
  10. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/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.dev1}/.gitignore +0 -0
  13. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/LICENSE +0 -0
  14. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/README.md +0 -0
  15. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/__init__.py +0 -0
  16. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/background_task.py +0 -0
  17. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/cli/__init__.py +0 -0
  18. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/cli/_cli.py +0 -0
  19. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/cli/pyobsw.py +0 -0
  20. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/comm/__init__.py +0 -0
  21. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/comm/comm.py +0 -0
  22. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/comm/commlogging.py +0 -0
  23. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/comm/dummy/__init__.py +0 -0
  24. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/comm/dummy/dummycomm.py +0 -0
  25. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/comm/local/__init__.py +0 -0
  26. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/comm/local/localcomm.py +0 -0
  27. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/comm/local/localnetwork.py +0 -0
  28. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/comm/proxy.py +0 -0
  29. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/comm/xmpp/__init__.py +0 -0
  30. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/comm/xmpp/rpc.py +0 -0
  31. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/comm/xmpp/serializer.py +0 -0
  32. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/comm/xmpp/xep_0009/__init__.py +0 -0
  33. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/comm/xmpp/xep_0009/rpc.py +0 -0
  34. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/comm/xmpp/xep_0009_timeout/__init__.py +0 -0
  35. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/comm/xmpp/xep_0009_timeout/rpc.py +0 -0
  36. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/comm/xmpp/xep_0009_timeout/stanza/RPC.py +0 -0
  37. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/comm/xmpp/xep_0009_timeout/stanza/__init__.py +0 -0
  38. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/comm/xmpp/xmppclient.py +0 -0
  39. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/comm/xmpp/xmppcomm.py +0 -0
  40. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/events/__init__.py +0 -0
  41. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/events/badweather.py +0 -0
  42. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/events/event.py +0 -0
  43. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/events/exposurestatuschanged.py +0 -0
  44. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/events/filewritten.py +0 -0
  45. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/events/filterchanged.py +0 -0
  46. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/events/focusfound.py +0 -0
  47. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/events/goodweather.py +0 -0
  48. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/events/log.py +0 -0
  49. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/events/modechanged.py +0 -0
  50. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/events/moduleclosed.py +0 -0
  51. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/events/moduleopened.py +0 -0
  52. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/events/motionstatuschanged.py +0 -0
  53. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/events/move.py +0 -0
  54. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/events/newdata.py +0 -0
  55. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/events/newimage.py +0 -0
  56. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/events/newspectrum.py +0 -0
  57. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/events/offsets.py +0 -0
  58. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/events/roofclosing.py +0 -0
  59. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/events/roofopened.py +0 -0
  60. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/events/taskfailed.py +0 -0
  61. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/events/taskfinished.py +0 -0
  62. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/events/taskskipped.py +0 -0
  63. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/events/taskstarted.py +0 -0
  64. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/events/testevent.py +0 -0
  65. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/__init__.py +0 -0
  66. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/image.py +0 -0
  67. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/meta/__init__.py +0 -0
  68. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/meta/altazoffsets.py +0 -0
  69. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/meta/datapipeline.py +0 -0
  70. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/meta/exptime.py +0 -0
  71. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/meta/genericoffset.py +0 -0
  72. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/meta/onskydistance.py +0 -0
  73. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/meta/pixeloffsets.py +0 -0
  74. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/meta/radecoffsets.py +0 -0
  75. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/meta/skyoffsets.py +0 -0
  76. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processor.py +0 -0
  77. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/__init__.py +0 -0
  78. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/_daobackgroundremover.py +0 -0
  79. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/annotation/__init__.py +0 -0
  80. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/annotation/_pillow.py +0 -0
  81. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/annotation/circle.py +0 -0
  82. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/annotation/crosshair.py +0 -0
  83. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/annotation/text.py +0 -0
  84. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/astrometry/__init__.py +0 -0
  85. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/astrometry/_dotnet_request.py +0 -0
  86. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/astrometry/_dotnet_request_builder.py +0 -0
  87. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/astrometry/_dotnet_request_logger.py +0 -0
  88. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/astrometry/_dotnet_response_saver.py +0 -0
  89. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/astrometry/astrometry.py +0 -0
  90. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/astrometry/dotnet.py +0 -0
  91. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/calibration/__init__.py +0 -0
  92. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/calibration/_calibration_cache.py +0 -0
  93. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/calibration/_ccddata_calibrator.py +0 -0
  94. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/calibration/calibration.py +0 -0
  95. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/detection/__init__.py +0 -0
  96. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/detection/_pysep_stats_calculator.py +0 -0
  97. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/detection/_source_catalog.py +0 -0
  98. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/detection/daophot.py +0 -0
  99. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/detection/pysep.py +0 -0
  100. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/detection/simpledisk.py +0 -0
  101. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/detection/sourcedetection.py +0 -0
  102. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/exptime/__init__.py +0 -0
  103. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/exptime/exptime.py +0 -0
  104. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/exptime/star.py +0 -0
  105. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/image/__init__.py +0 -0
  106. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/image/addfitsheaders.py +0 -0
  107. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/image/download.py +0 -0
  108. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/image/flip.py +0 -0
  109. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/image/grayscale.py +0 -0
  110. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/image/httpserver.py +0 -0
  111. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/image/normalize.py +0 -0
  112. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/image/save.py +0 -0
  113. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/image/saveimage.py +0 -0
  114. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/image/smooth.py +0 -0
  115. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/image/softbin.py +0 -0
  116. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/misc/__init__.py +0 -0
  117. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/misc/addmask.py +0 -0
  118. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/misc/catalogcircularmask.py +0 -0
  119. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/misc/circularmask.py +0 -0
  120. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/misc/createfilename.py +0 -0
  121. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/misc/imagesourcefilter.py +0 -0
  122. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/misc/removebackground.py +0 -0
  123. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/modules/__init__.py +0 -0
  124. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/modules/getfitsheaders.py +0 -0
  125. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/offsets/__init__.py +0 -0
  126. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/offsets/astrometry.py +0 -0
  127. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/offsets/brighteststar.py +0 -0
  128. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/offsets/brighteststar_guiding.py +0 -0
  129. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/offsets/dummyoffsets.py +0 -0
  130. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/offsets/dummyskyoffsets.py +0 -0
  131. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/offsets/fitsheader.py +0 -0
  132. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/offsets/offsets.py +0 -0
  133. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/offsets/pixeloffsets.py +0 -0
  134. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/offsets/projected.py +0 -0
  135. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/offsets/spilled_light.py +0 -0
  136. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/photometry/__init__.py +0 -0
  137. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/photometry/_photometry_calculator.py +0 -0
  138. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/photometry/_photutil_aperture_photometry.py +0 -0
  139. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/photometry/_sep_aperture_photometry.py +0 -0
  140. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/photometry/aperture_photometry.py +0 -0
  141. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/photometry/photometry.py +0 -0
  142. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/photometry/photutil.py +0 -0
  143. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/photometry/pysep.py +0 -0
  144. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/stack/__init__.py +0 -0
  145. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/stack/combinestack.py +0 -0
  146. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/stack/mean.py +0 -0
  147. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/stack/median.py +0 -0
  148. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/stack/sigmaclip.py +0 -0
  149. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/stack/sum.py +0 -0
  150. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/wcs/__init__.py +0 -0
  151. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/images/processors/wcs/solarhelioprojective.py +0 -0
  152. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IAbortable.py +0 -0
  153. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IAcquisition.py +0 -0
  154. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IAutoFocus.py +0 -0
  155. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IAutoGuiding.py +0 -0
  156. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IAutonomous.py +0 -0
  157. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IBinning.py +0 -0
  158. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/ICalibrate.py +0 -0
  159. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/ICamera.py +0 -0
  160. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IConfig.py +0 -0
  161. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/ICooling.py +0 -0
  162. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IData.py +0 -0
  163. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IDataPipeline.py +0 -0
  164. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IDataSequence.py +0 -0
  165. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IDataStack.py +0 -0
  166. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IDome.py +0 -0
  167. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IExposure.py +0 -0
  168. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IExposureTime.py +0 -0
  169. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IFilters.py +0 -0
  170. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IFitsHeaderAfter.py +0 -0
  171. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IFitsHeaderBefore.py +0 -0
  172. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IFlatField.py +0 -0
  173. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IFocusModel.py +0 -0
  174. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IFocuser.py +0 -0
  175. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IGain.py +0 -0
  176. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IImageFormat.py +0 -0
  177. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IImageType.py +0 -0
  178. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IMode.py +0 -0
  179. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IModule.py +0 -0
  180. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IMotion.py +0 -0
  181. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IMultiFiber.py +0 -0
  182. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IOffsetsAltAz.py +0 -0
  183. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IOffsetsRaDec.py +0 -0
  184. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IPointingAltAz.py +0 -0
  185. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IPointingBody.py +0 -0
  186. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IPointingHeliocentricPolar.py +0 -0
  187. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IPointingHeliographicStonyhurst.py +0 -0
  188. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IPointingHelioprojective.py +0 -0
  189. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IPointingOrbitalElements.py +0 -0
  190. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IPointingRaDec.py +0 -0
  191. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IPointingSeries.py +0 -0
  192. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IPushNotifications.py +0 -0
  193. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IReady.py +0 -0
  194. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IResettable.py +0 -0
  195. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IRobotic.py +0 -0
  196. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IRoboticScheduler.py +0 -0
  197. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IRoof.py +0 -0
  198. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IRotation.py +0 -0
  199. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IRunnable.py +0 -0
  200. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IRunning.py +0 -0
  201. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IScriptRunner.py +0 -0
  202. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/ISpectrograph.py +0 -0
  203. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IStartStop.py +0 -0
  204. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IStructuredConfig.py +0 -0
  205. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/ISyncTarget.py +0 -0
  206. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/ITelescope.py +0 -0
  207. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/ITemperatures.py +0 -0
  208. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/ITrackingMode.py +0 -0
  209. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/ITrackingRate.py +0 -0
  210. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IVideo.py +0 -0
  211. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IWeather.py +0 -0
  212. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/IWindow.py +0 -0
  213. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/__init__.py +0 -0
  214. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/interfaces/interface.py +0 -0
  215. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/mixins/__init__.py +0 -0
  216. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/mixins/camerasettings.py +0 -0
  217. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/mixins/datapipeline.py +0 -0
  218. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/mixins/datasequence.py +0 -0
  219. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/mixins/fitsheader.py +0 -0
  220. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/mixins/fitsnamespace.py +0 -0
  221. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/mixins/follow.py +0 -0
  222. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/mixins/motionstatus.py +0 -0
  223. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/mixins/pipeline.py +0 -0
  224. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/mixins/waitformotion.py +0 -0
  225. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/mixins/weatheraware.py +0 -0
  226. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/__init__.py +0 -0
  227. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/camera/__init__.py +0 -0
  228. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/camera/adaptive.py +0 -0
  229. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/camera/basecamera.py +0 -0
  230. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/camera/basedata.py +0 -0
  231. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/camera/basespectrograph.py +0 -0
  232. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/camera/basevideo.py +0 -0
  233. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/camera/dummycamera.py +0 -0
  234. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/camera/dummyspectrograph.py +0 -0
  235. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/camera/dummyvideo.py +0 -0
  236. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/camera/pipelinecamera.py +0 -0
  237. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/camera/videoframes.py +0 -0
  238. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/flatfield/__init__.py +0 -0
  239. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/flatfield/flatfield.py +0 -0
  240. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/flatfield/pointing.py +0 -0
  241. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/flatfield/scheduler.py +0 -0
  242. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/focus/__init__.py +0 -0
  243. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/focus/dummyautofocus.py +0 -0
  244. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/focus/focusmodel.py +0 -0
  245. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/focus/focusseries.py +0 -0
  246. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/image/__init__.py +0 -0
  247. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/image/imagewatcher.py +0 -0
  248. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/image/imagewriter.py +0 -0
  249. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/image/pipeline.py +0 -0
  250. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/image/seeing.py +0 -0
  251. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/module.py +0 -0
  252. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/pointing/__init__.py +0 -0
  253. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/pointing/_base.py +0 -0
  254. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/pointing/_baseguiding.py +0 -0
  255. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/pointing/acquisition.py +0 -0
  256. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/pointing/autoguiding.py +0 -0
  257. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/pointing/dummyacquisition.py +0 -0
  258. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/pointing/dummyguiding.py +0 -0
  259. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/pointing/guidingsource.py +0 -0
  260. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/pointing/guidingstatistics/__init__.py +0 -0
  261. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/pointing/guidingstatistics/guidingstatistics.py +0 -0
  262. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/pointing/guidingstatistics/pixeloffset.py +0 -0
  263. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/pointing/guidingstatistics/skyoffsets.py +0 -0
  264. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/pointing/guidingstatistics/uptime.py +0 -0
  265. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/pointing/scienceframeguiding.py +0 -0
  266. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/robotic/__init__.py +0 -0
  267. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/robotic/dummymastermind.py +0 -0
  268. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/robotic/dummyscheduler.py +0 -0
  269. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/robotic/mastermind.py +0 -0
  270. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/robotic/pointing.py +0 -0
  271. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/robotic/scheduler.py +0 -0
  272. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/robotic/scriptrunner.py +0 -0
  273. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/roof/__init__.py +0 -0
  274. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/roof/basedome.py +0 -0
  275. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/roof/baseroof.py +0 -0
  276. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/roof/dummyroof.py +0 -0
  277. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/telescope/__init__.py +0 -0
  278. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/telescope/_dummytelescopebase.py +0 -0
  279. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/telescope/basetelescope.py +0 -0
  280. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/telescope/dummyaltaztelescope.py +0 -0
  281. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/telescope/dummyradectelescope.py +0 -0
  282. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/telescope/dummysolartelescope.py +0 -0
  283. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/test/__init__.py +0 -0
  284. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/test/standalone.py +0 -0
  285. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/utils/__init__.py +0 -0
  286. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/utils/dummymode.py +0 -0
  287. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/utils/dummystructuredconfig.py +0 -0
  288. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/utils/fluentlogger.py +0 -0
  289. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/utils/httpfilecache.py +0 -0
  290. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/utils/kiosk.py +0 -0
  291. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/utils/matrix.py +0 -0
  292. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/utils/pushnotifier.py +0 -0
  293. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/utils/stellarium.py +0 -0
  294. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/utils/telegram.py +0 -0
  295. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/utils/trigger.py +0 -0
  296. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/weather/__init__.py +0 -0
  297. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/weather/mockweather.py +0 -0
  298. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/weather/weather.py +0 -0
  299. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/weather/weather_api.py +0 -0
  300. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/modules/weather/weather_state.py +0 -0
  301. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/object.py +0 -0
  302. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/py.typed +0 -0
  303. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/__init__.py +0 -0
  304. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/instruments.py +0 -0
  305. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/observation.py +0 -0
  306. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/__init__.py +0 -0
  307. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/_executor.py +0 -0
  308. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/astroplanscheduler.py +0 -0
  309. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/constraints/airmassconstraint.py +0 -0
  310. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/constraints/constraint.py +0 -0
  311. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/constraints/moonilluminationconstraint.py +0 -0
  312. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/constraints/moonseparationconstraint.py +0 -0
  313. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/constraints/solarelevationconstraint.py +0 -0
  314. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/constraints/timeconstraint.py +0 -0
  315. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/dataprovider.py +0 -0
  316. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/merits/aftertime.py +0 -0
  317. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/merits/beforetime.py +0 -0
  318. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/merits/constant.py +0 -0
  319. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/merits/follow.py +0 -0
  320. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/merits/interval.py +0 -0
  321. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/merits/merit.py +0 -0
  322. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/merits/pernight.py +0 -0
  323. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/merits/random.py +0 -0
  324. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/merits/timewindow.py +0 -0
  325. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/merits/transit.py +0 -0
  326. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/observationarchiveevolution.py +0 -0
  327. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/observingperiod.py +0 -0
  328. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/ondemandscheduler.py +0 -0
  329. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/targets/__init__.py +0 -0
  330. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/targets/dynamictarget.py +0 -0
  331. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/targets/heliocentricpolartarget.py +0 -0
  332. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/targets/helioprojectivetarget.py +0 -0
  333. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/targets/picker/__init__.py +0 -0
  334. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/targets/picker/csvpicker.py +0 -0
  335. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/targets/picker/picker.py +0 -0
  336. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/targets/siderealtarget.py +0 -0
  337. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/targets/target.py +0 -0
  338. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scheduler/taskscheduler.py +0 -0
  339. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scripts/__init__.py +0 -0
  340. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scripts/calibration/__init__.py +0 -0
  341. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scripts/calibration/darkbias.py +0 -0
  342. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scripts/calibration/pointing.py +0 -0
  343. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scripts/calibration/skyflats.py +0 -0
  344. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scripts/control/__init__.py +0 -0
  345. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scripts/control/cases.py +0 -0
  346. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scripts/control/conditional.py +0 -0
  347. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scripts/control/parallel.py +0 -0
  348. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scripts/control/selector.py +0 -0
  349. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scripts/control/sequential.py +0 -0
  350. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scripts/exceptions.py +0 -0
  351. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scripts/imaging/__init__.py +0 -0
  352. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scripts/imaging/autofocus.py +0 -0
  353. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scripts/imaging/imaging.py +0 -0
  354. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scripts/imaging/transitimaging.py +0 -0
  355. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scripts/script.py +0 -0
  356. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scripts/utils/__init__.py +0 -0
  357. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scripts/utils/callmodule.py +0 -0
  358. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scripts/utils/debugtrigger.py +0 -0
  359. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/scripts/utils/log.py +0 -0
  360. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/storage/__init__.py +0 -0
  361. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/storage/filesystem/__init__.py +0 -0
  362. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/storage/filesystem/observationarchive.py +0 -0
  363. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/storage/filesystem/taskarchive.py +0 -0
  364. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/storage/lco/__init__.py +0 -0
  365. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/storage/lco/_portal.py +0 -0
  366. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/storage/lco/_schedulereader.py +0 -0
  367. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/storage/lco/_schedulewriter.py +0 -0
  368. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/storage/lco/configdb.py +0 -0
  369. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/storage/lco/mockobservationarchive.py +0 -0
  370. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/storage/lco/observationarchive.py +0 -0
  371. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/storage/lco/scripts/__init__.py +0 -0
  372. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/storage/lco/scripts/autofocus.py +0 -0
  373. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/storage/lco/scripts/default.py +0 -0
  374. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/storage/lco/scripts/script.py +0 -0
  375. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/storage/lco/task.py +0 -0
  376. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/storage/lco/taskarchive.py +0 -0
  377. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/storage/lco/taskrunner.py +0 -0
  378. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/storage/memory/__init__.py +0 -0
  379. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/storage/memory/observationarchive.py +0 -0
  380. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/storage/memory/taskarchive.py +0 -0
  381. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/storage/observationarchive.py +0 -0
  382. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/storage/portal/__init__.py +0 -0
  383. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/storage/portal/observationarchive.py +0 -0
  384. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/storage/portal/taskarchive.py +0 -0
  385. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/storage/taskarchive.py +0 -0
  386. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/task.py +0 -0
  387. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/taskrunner.py +0 -0
  388. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/utils/__init__.py +0 -0
  389. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/utils/archive/__init__.py +0 -0
  390. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/utils/archive/archive.py +0 -0
  391. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/utils/archive/local_archive.py +0 -0
  392. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/utils/archive/pyobs_archive.py +0 -0
  393. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/utils/calibration.py +0 -0
  394. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/utils/exptime/__init__.py +0 -0
  395. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/utils/exptime/exptime.py +0 -0
  396. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/utils/exptime/stellarexptime.py +0 -0
  397. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/utils/skyflats/__init__.py +0 -0
  398. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/utils/skyflats/exptimeeval.py +0 -0
  399. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/utils/skyflats/flatfielder.py +0 -0
  400. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/utils/skyflats/pointing/__init__.py +0 -0
  401. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/utils/skyflats/pointing/base.py +0 -0
  402. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/utils/skyflats/pointing/static.py +0 -0
  403. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/utils/skyflats/priorities/__init__.py +0 -0
  404. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/utils/skyflats/priorities/archive.py +0 -0
  405. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/utils/skyflats/priorities/base.py +0 -0
  406. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/utils/skyflats/priorities/const.py +0 -0
  407. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/robotic/utils/skyflats/scheduler.py +0 -0
  408. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/__init__.py +0 -0
  409. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/average.py +0 -0
  410. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/cache.py +0 -0
  411. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/config.py +0 -0
  412. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/config_schema.py +0 -0
  413. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/coolingramp.py +0 -0
  414. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/coordinates.py +0 -0
  415. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/curvefit.py +0 -0
  416. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/enums.py +0 -0
  417. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/exceptions.py +0 -0
  418. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/exptime_grouping.py +0 -0
  419. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/fits.py +0 -0
  420. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/focusseries/__init__.py +0 -0
  421. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/focusseries/base.py +0 -0
  422. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/focusseries/photometry.py +0 -0
  423. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/focusseries/projection.py +0 -0
  424. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/frameheader.py +0 -0
  425. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/grids/__init__.py +0 -0
  426. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/grids/filters.py +0 -0
  427. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/grids/grid.py +0 -0
  428. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/grids/gridnode.py +0 -0
  429. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/grids/pipeline.py +0 -0
  430. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/gui/__init__.py +0 -0
  431. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/gui/camera/__init__.py +0 -0
  432. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/gui/camera/binningwidget.py +0 -0
  433. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/gui/camera/coolingwidget.py +0 -0
  434. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/gui/camera/datadisplaywidget.py +0 -0
  435. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/gui/camera/exposewidget.py +0 -0
  436. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/gui/camera/exposuretimewidget.py +0 -0
  437. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/gui/camera/gainoffsetwidget.py +0 -0
  438. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/gui/camera/imageformatwidget.py +0 -0
  439. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/gui/camera/listpickerdialog.py +0 -0
  440. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/gui/camera/windowingwidget.py +0 -0
  441. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/http.py +0 -0
  442. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/influxdb.py +0 -0
  443. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/logger.py +0 -0
  444. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/logging/__init__.py +0 -0
  445. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/logging/context.py +0 -0
  446. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/logging/resolvableerror.py +0 -0
  447. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/modulegui.py +0 -0
  448. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/offsets/__init__.py +0 -0
  449. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/offsets/applyaltazoffsets.py +0 -0
  450. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/offsets/applyoffsets.py +0 -0
  451. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/offsets/applyradecoffsets.py +0 -0
  452. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/parallel.py +0 -0
  453. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/pipeline/__init__.py +0 -0
  454. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/pipeline/pipeline.py +0 -0
  455. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/pipeline/progress.py +0 -0
  456. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/pipeline/reduction.py +0 -0
  457. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/pipeline/reduction_base.py +0 -0
  458. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/publisher/__init__.py +0 -0
  459. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/publisher/csv.py +0 -0
  460. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/publisher/http.py +0 -0
  461. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/publisher/log.py +0 -0
  462. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/publisher/multi.py +0 -0
  463. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/publisher/publisher.py +0 -0
  464. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/serialization.py +0 -0
  465. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/shellcommand.py +0 -0
  466. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/stretch.py +0 -0
  467. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/threads/__init__.py +0 -0
  468. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/threads/lockwithabort.py +0 -0
  469. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/time.py +0 -0
  470. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/units.py +0 -0
  471. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/utils/versions.py +0 -0
  472. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/version.py +0 -0
  473. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/vfs/__init__.py +0 -0
  474. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/vfs/archivefile.py +0 -0
  475. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/vfs/bufferedfile.py +0 -0
  476. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/vfs/file.py +0 -0
  477. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/vfs/filelists/__init__.py +0 -0
  478. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/vfs/filelists/filelist.py +0 -0
  479. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/vfs/filelists/testing.py +0 -0
  480. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/vfs/httpfile.py +0 -0
  481. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/vfs/localfile.py +0 -0
  482. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/vfs/memfile.py +0 -0
  483. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/vfs/sftpfile.py +0 -0
  484. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/vfs/smbfile.py +0 -0
  485. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/vfs/sshfile.py +0 -0
  486. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/pyobs/vfs/tempfile.py +0 -0
  487. {pyobs_core-2.28.2 → pyobs_core-2.29.0.dev1}/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.dev1
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,7 @@ 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,
114
116
  **kwargs: Any,
115
117
  ):
116
118
  """Initializes a pyobs application.
@@ -137,7 +139,15 @@ class Application:
137
139
  (pyobs.cli.pyobs's GLOBAL_CONFIG_KEYS) instead of a bare env var, so it applies
138
140
  the same way regardless of how the module process was spawned.
139
141
  influx_log: Log to influx DB.
142
+ pid_file: PID file of a daemonized module, if any. A module that needs more time to shut
143
+ down then writes its deadline into a stop file next to it (see pyobs.utils.shutdown),
144
+ which pyobsd and web-admin respect before sending SIGKILL.
140
145
  """
146
+ # stop file for extend_stop_timeout(), removed again at the end of run(); one left behind by an earlier
147
+ # run (e.g. killed during shutdown) would make this run look like it is stopping
148
+ shutdown.set_stop_file(shutdown.stop_file_for(pid_file) if pid_file is not None else None)
149
+ shutdown.clear_stop_file()
150
+
141
151
  if (config is None) == (module_factory is None):
142
152
  raise ValueError("Exactly one of 'config' or 'module_factory' must be given.")
143
153
  if module_factory is not None and loop_module_class is None:
@@ -355,9 +365,15 @@ class Application:
355
365
  log.info("Closing loop...")
356
366
  self._loop.close()
357
367
 
368
+ # shutdown is done, so a deadline from extend_stop_timeout() no longer applies
369
+ shutdown.clear_stop_file()
370
+
358
371
  def _signal_handler(self, sig: int) -> None:
359
372
  """React to signals and quit the module."""
360
373
 
374
+ # let pyobsd/web-admin show the module as "stopping" until it is gone
375
+ shutdown.mark_stopping()
376
+
361
377
  if self._module is not None:
362
378
  self._module.quit()
363
379
  else:
@@ -112,6 +112,9 @@ class PyobsCLI(CLI):
112
112
  import daemon
113
113
  from daemon import pidfile
114
114
 
115
+ # absolute, since DaemonContext changes into the run directory before the application gets the path
116
+ pid_file = os.path.abspath(pid_file)
117
+
115
118
  # get run directory
116
119
  run_dir = os.path.dirname(pid_file)
117
120
 
@@ -119,7 +122,7 @@ class PyobsCLI(CLI):
119
122
  with daemon.DaemonContext(
120
123
  working_directory=run_dir, umask=0o002, pidfile=pidfile.TimeoutPIDLockFile(pid_file)
121
124
  ) as _:
122
- self.application(**self._config).run()
125
+ self.application(**{**self._config, "pid_file": pid_file}).run()
123
126
 
124
127
 
125
128
  def main() -> None:
@@ -14,6 +14,8 @@ 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")
@@ -35,6 +37,7 @@ class PyobsDaemonCLI(CLI):
35
37
  "syslog",
36
38
  "file_log",
37
39
  "chuid",
40
+ "stop_timeout",
38
41
  ]
39
42
 
40
43
  def init_cli(self) -> None:
@@ -62,12 +65,23 @@ class PyobsDaemonCLI(CLI):
62
65
  default=self._config.get("file_log", False),
63
66
  )
64
67
  self._parser.add_argument("--chuid", type=str, default=self._config.get("chuid", "pyobs:pyobs"))
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 to wait after SIGTERM before sending SIGKILL, unless the module asked for more time",
74
+ )
65
75
  self._parser.add_argument("-v", "--verbose", action="store_true")
66
76
 
67
77
  # commands
68
78
  sp = self._parser.add_subparsers(dest="command")
69
79
  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="*")
80
+ stop_parser = sp.add_parser("stop", help="stop modules")
81
+ stop_parser.add_argument("modules", type=str, nargs="*")
82
+ stop_parser.add_argument(
83
+ "--no-wait", action="store_true", help="only send SIGTERM, do not wait for the modules to exit"
84
+ )
71
85
  sp.add_parser("restart", help="restart modules").add_argument("modules", type=str, nargs="*")
72
86
  status_parser = sp.add_parser("status", help="status of modules")
73
87
  status_parser.add_argument("--json", action="store_true")
@@ -94,6 +108,7 @@ class PyobsDaemonCLI(CLI):
94
108
  syslog=self._config["syslog"],
95
109
  file_log=self._config["file_log"],
96
110
  chuid=self._config["chuid"],
111
+ stop_timeout=self._config["stop_timeout"],
97
112
  verbose=self._config["verbose"],
98
113
  )
99
114
 
@@ -102,7 +117,7 @@ class PyobsDaemonCLI(CLI):
102
117
  case "start":
103
118
  daemon.start(modules=self._config["modules"])
104
119
  case "stop":
105
- daemon.stop(modules=self._config["modules"])
120
+ daemon.stop(modules=self._config["modules"], wait=not self._config["no_wait"])
106
121
  case "restart":
107
122
  daemon.restart(modules=self._config["modules"])
108
123
  case "status":
@@ -123,10 +138,12 @@ class PyobsDaemon:
123
138
  syslog: bool = False,
124
139
  file_log: bool = False,
125
140
  chuid: str | None = None,
141
+ stop_timeout: float = 30.0,
126
142
  verbose: bool = False,
127
143
  **kwargs: Any,
128
144
  ):
129
145
  self._config_path = config_path
146
+ self._stop_timeout = stop_timeout
130
147
  self._run_path = run_path
131
148
  self._log_path = log_path
132
149
  self._log_level = log_level
@@ -185,6 +202,10 @@ class PyobsDaemon:
185
202
  def _log_file(self, module: str) -> str:
186
203
  return os.path.join(self._log_path, self._strip_disabled(module) + ".log")
187
204
 
205
+ def _stop_file(self, module: str) -> str:
206
+ """Where a stopping module writes its shutdown deadline (see pyobs.utils.shutdown)."""
207
+ return stop_file_for(self._pid_file(module))
208
+
188
209
  def _list_configs(self) -> list[str]:
189
210
  """Return sorted module names from *.yaml files, excluding *.shared.yaml."""
190
211
  paths = sorted(glob.glob(os.path.join(self._config_path, "*.yaml")))
@@ -215,13 +236,14 @@ class PyobsDaemon:
215
236
  return None
216
237
  if self._is_alive(pid):
217
238
  return pid
218
- # stale PID file — remove it
219
- try:
220
- os.remove(self._pid_file(module))
221
- except OSError:
222
- pass
239
+ # stale PID file — remove it, together with a stop file the process may have left behind
240
+ self._remove_run_files(module)
223
241
  return None
224
242
 
243
+ def _stop_deadline(self, module: str) -> float | None:
244
+ """The deadline a running module wrote into its stop file, or None if it is not stopping."""
245
+ return read_stop_deadline(self._stop_file(module))
246
+
225
247
  def _process_info(self, pid: int) -> dict[str, Any]:
226
248
  """Return uptime (seconds) and rss_mb for a running PID. No CPU -- that needs a
227
249
  shared sampling window across all processes, see _sample_cpu_percent."""
@@ -288,14 +310,22 @@ class PyobsDaemon:
288
310
  print(f"Starting {module}...")
289
311
  self._start_service(module)
290
312
 
291
- def stop(self, modules: list[str] | None = None) -> None:
313
+ def stop(self, modules: list[str] | None = None, wait: bool = True) -> None:
292
314
  # if no modules given, stop all that have a live PID
293
315
  if not modules:
294
316
  modules = [m for m in self._list_configs() if self._running_pid(m) is not None]
295
317
 
318
+ # send SIGTERM to all first, then wait for all together, so that one module with a long shutdown
319
+ # (e.g. a camera warming up) does not delay sending SIGTERM to the others
320
+ stopping: dict[str, int] = {}
296
321
  for module in modules:
297
322
  print(f"Stopping {module}...")
298
- self._stop_service(module)
323
+ pid = self._signal_stop(module)
324
+ if pid is not None:
325
+ stopping[module] = pid
326
+
327
+ if wait:
328
+ self._wait_stopped(stopping)
299
329
 
300
330
  def restart(self, modules: list[str] | None = None) -> None:
301
331
  self.stop(modules=modules)
@@ -319,15 +349,29 @@ class PyobsDaemon:
319
349
  # it slow for no benefit when nobody's looking at CPU. Only pay for it if asked.
320
350
  cpu_by_pid = self._sample_cpu_percent(list(pids.values()), cpu_interval) if cpu_interval else {}
321
351
 
352
+ # a running module with a stop file is shutting down (see pyobs.utils.shutdown)
353
+ deadlines = {module: self._stop_deadline(module) for module in pids}
354
+ now = time.time()
355
+
322
356
  if print_json:
357
+ # "running" stays true while a module is stopping (its process is still alive), so consumers that only
358
+ # know "running" keep working; "state" tells them apart
323
359
  result: dict[str, Any] = {}
324
360
  for module in modules:
325
361
  pid = pids.get(module)
326
362
  if pid is not None:
327
363
  info = self._process_info(pid)
328
- result[module] = {"running": True, "pid": pid, "cpu": cpu_by_pid.get(pid), **info}
364
+ deadline = deadlines[module]
365
+ result[module] = {
366
+ "running": True,
367
+ "state": "stopping" if deadline is not None else "running",
368
+ "stop_deadline": deadline,
369
+ "pid": pid,
370
+ "cpu": cpu_by_pid.get(pid),
371
+ **info,
372
+ }
329
373
  else:
330
- result[module] = {"running": False}
374
+ result[module] = {"running": False, "state": "stopped"}
331
375
  print(json.dumps(result))
332
376
  else:
333
377
  # header
@@ -339,11 +383,17 @@ class PyobsDaemon:
339
383
  info = self._process_info(pid)
340
384
  cpu = cpu_by_pid.get(pid)
341
385
  cpu_str = f"{cpu:>5.1f}%" if cpu is not None else f"{'-':>6}"
386
+ deadline = deadlines[module]
387
+ state = "stopping" if deadline is not None else "running"
388
+ wait = (
389
+ f" (up to {self._fmt_wait(deadline - now)})" if deadline is not None and deadline > now else ""
390
+ )
342
391
  print(
343
- f"{module:<30} {'running':<8} "
392
+ f"{module:<30} {state:<8} "
344
393
  f"{self._fmt_uptime(info['uptime']):>12} "
345
394
  f"{cpu_str} "
346
395
  f"{info['rss_mb']:>6.1f} MB"
396
+ f"{wait}"
347
397
  )
348
398
  else:
349
399
  print(f"{module:<30} {'stopped':<8}")
@@ -371,6 +421,12 @@ class PyobsDaemon:
371
421
  def _start_service(self, module: str) -> None:
372
422
  os.makedirs(self._run_path, exist_ok=True)
373
423
 
424
+ # a stop file left behind by a previous run (e.g. killed during warm-up) must not apply to this one
425
+ try:
426
+ os.remove(self._stop_file(module))
427
+ except FileNotFoundError:
428
+ pass
429
+
374
430
  cmd = [
375
431
  self._pyobs_exec,
376
432
  "--pid-file",
@@ -431,34 +487,84 @@ class PyobsDaemon:
431
487
  print(f" stderr: {stderr.decode(errors='replace').strip()}") # type: ignore[attr-defined]
432
488
 
433
489
  def _stop_service(self, module: str) -> None:
490
+ """Stops a single module and waits for it."""
491
+ pid = self._signal_stop(module)
492
+ if pid is not None:
493
+ self._wait_stopped({module: pid})
494
+
495
+ def _signal_stop(self, module: str) -> int | None:
496
+ """Sends SIGTERM to a module. Returns its PID, or None if it is not running (anymore)."""
434
497
  pid = self._running_pid(module)
435
498
  if pid is None:
436
499
  print(f"{module} is not running.")
437
- return
500
+ return None
438
501
 
439
502
  try:
440
503
  os.kill(pid, signal.SIGTERM)
441
504
  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")
505
+ return None
506
+ return pid
507
+
508
+ def _wait_stopped(self, stopping: dict[str, int]) -> None:
509
+ """Waits for the given modules to exit and sends SIGKILL to those that take too long.
510
+
511
+ "Too long" is stop_timeout after SIGTERM, or later if the module wrote a later deadline into its stop
512
+ file (pyobs.utils.shutdown.extend_stop_timeout, e.g. while a camera warms up).
513
+
514
+ The last deadline read is kept: the application removes its stop file once its shutdown is done, but the
515
+ process lives on for a moment after that, and must not fall back to stop_timeout and get killed then."""
516
+ default_deadline = time.time() + self._stop_timeout
517
+ announced: dict[str, float] = {}
518
+ last_requested: dict[str, float] = {}
519
+ remaining = dict(stopping)
520
+
521
+ while remaining:
522
+ now = time.time()
523
+ for module, pid in list(remaining.items()):
524
+ if not self._is_alive(pid):
525
+ del remaining[module]
526
+ self._remove_run_files(module)
527
+ continue
528
+
529
+ requested = read_stop_deadline(self._stop_file(module))
530
+ if requested is not None:
531
+ last_requested[module] = requested
532
+ else:
533
+ requested = last_requested.get(module)
534
+ deadline = max(default_deadline, requested or 0.0)
535
+ if requested is not None and requested > default_deadline and announced.get(module) != requested:
536
+ announced[module] = requested
537
+ print(f"{module} is shutting down, waiting up to {self._fmt_wait(requested - now)}.")
538
+
539
+ if now >= deadline:
540
+ if self._verbose:
541
+ print(f"[DEBUG] {module} did not stop in time, sending SIGKILL")
542
+ else:
543
+ print(f"{module} did not stop in time, killing it.")
544
+ try:
545
+ os.kill(pid, signal.SIGKILL)
546
+ except OSError:
547
+ pass
548
+ del remaining[module]
549
+ self._remove_run_files(module)
550
+
551
+ if remaining:
552
+ time.sleep(0.1)
553
+
554
+ def _remove_run_files(self, module: str) -> None:
555
+ """Removes PID and stop file of a module."""
556
+ for path in (self._pid_file(module), self._stop_file(module)):
452
557
  try:
453
- os.kill(pid, signal.SIGKILL)
558
+ os.remove(path)
454
559
  except OSError:
455
560
  pass
456
561
 
457
- # clean up PID file
458
- try:
459
- os.remove(self._pid_file(module))
460
- except OSError:
461
- pass
562
+ @staticmethod
563
+ def _fmt_wait(seconds: float) -> str:
564
+ seconds = max(0, int(seconds))
565
+ if seconds < 120:
566
+ return f"{seconds} s"
567
+ return f"{round(seconds / 60)} min"
462
568
 
463
569
 
464
570
  def main() -> None:
@@ -6,6 +6,7 @@ from typing import Any
6
6
 
7
7
  from pyobs.interfaces import CoolingState
8
8
  from pyobs.utils.coolingramp import CoolingRamp
9
+ from pyobs.utils.shutdown import extend_stop_timeout
9
10
 
10
11
  log = logging.getLogger(__name__)
11
12
 
@@ -16,6 +17,8 @@ _RETRY_DELAY = 5.0
16
17
  _CLOSE_MARGIN_FACTOR = 1.2
17
18
  _CLOSE_MARGIN_SECONDS = 60.0
18
19
  _CLOSE_FALLBACK_TIMEOUT = 300.0
20
+ # extra time asked from pyobsd/systemd on top of the warm-up, for the rest of close()
21
+ _STOP_TIMEOUT_EXTRA_SECONDS = 30.0
19
22
 
20
23
 
21
24
  class CoolingRampMixin:
@@ -143,6 +146,8 @@ class CoolingRampMixin:
143
146
  timeout = self._cooling_close_timeout
144
147
  if timeout is None:
145
148
  timeout = await self._cooling_estimated_close_timeout()
149
+ # whoever stops the module (pyobsd, web-admin, systemd) must not kill it during the warm-up
150
+ extend_stop_timeout(timeout + _STOP_TIMEOUT_EXTRA_SECONDS)
146
151
  self._cooling_target = (False, None)
147
152
  try:
148
153
  await asyncio.wait_for(self._cooling_run_to_end(), timeout)
@@ -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
  ]
@@ -0,0 +1,66 @@
1
+ from __future__ import annotations
2
+
3
+ from datetime import time as dtime
4
+ from typing import TYPE_CHECKING, Any, ClassVar
5
+
6
+ import astroplan
7
+ import numpy as np
8
+ from pydantic import Field
9
+
10
+ from pyobs.utils.serialization import BaseModel
11
+ from pyobs.utils.time import Time
12
+
13
+ from .constraint import Constraint
14
+
15
+ if TYPE_CHECKING:
16
+ from pyobs.robotic import Task
17
+
18
+ from ..dataprovider import DataProvider
19
+
20
+
21
+ class TimeOfDayWindow(BaseModel):
22
+ """Daily window [start, end) in UTC. If start > end, the window wraps around midnight."""
23
+
24
+ start: dtime = Field(default=dtime(0, 0))
25
+ end: dtime = Field(default=dtime(0, 0))
26
+
27
+ def contains(self, now: dtime) -> bool:
28
+ # start == end means an empty window
29
+ if self.start <= self.end:
30
+ return self.start <= now < self.end
31
+ return now >= self.start or now < self.end
32
+
33
+
34
+ class _AstroplanTimeOfDayConstraint(astroplan.Constraint): # type: ignore[misc]
35
+ """Astroplan counterpart of TimeOfDayConstraint."""
36
+
37
+ def __init__(self, windows: list[TimeOfDayWindow]) -> None:
38
+ self.windows = windows
39
+
40
+ def compute_constraint(self, times: Time, observer: Any, targets: Any) -> np.ndarray:
41
+ utc = np.atleast_1d(times.utc.datetime)
42
+ return np.array([any(w.contains(t.time()) for w in self.windows) for t in utc], dtype=bool)
43
+
44
+
45
+ class TimeOfDayConstraint(Constraint):
46
+ """Constraint that is only satisfied within daily time windows (UTC).
47
+
48
+ Multiple windows are ORed. Several constraints are ANDed by the scheduler, so use one constraint with several
49
+ windows. Only the start time of a task is checked, not its end."""
50
+
51
+ windows: list[TimeOfDayWindow] = Field(default_factory=list)
52
+ req_token: ClassVar[str | None] = "TOD"
53
+
54
+ def req_fields(self) -> dict[str, tuple[int | float | str, str]]:
55
+ windows = ",".join(f"{w.start.strftime('%H:%M')}-{w.end.strftime('%H:%M')}" for w in self.windows)
56
+ return {"WINDOWS": (windows, "UTC")}
57
+
58
+ def to_astroplan(self) -> astroplan.Constraint:
59
+ return _AstroplanTimeOfDayConstraint(self.windows)
60
+
61
+ async def __call__(self, time: Time, task: Task, data: DataProvider) -> bool:
62
+ now = time.utc.datetime.time()
63
+ return any(window.contains(now) for window in self.windows)
64
+
65
+
66
+ __all__ = ["TimeOfDayConstraint", "TimeOfDayWindow"]
@@ -6,7 +6,6 @@ from .interval import IntervalMerit
6
6
  from .merit import Merit
7
7
  from .pernight import PerNightMerit
8
8
  from .random import RandomMerit
9
- from .timeofday import TimeOfDayMerit
10
9
  from .timewindow import TimeWindowMerit
11
10
  from .transit import TransitMerit
12
11
 
@@ -19,7 +18,6 @@ __all__ = [
19
18
  "FollowMerit",
20
19
  "PerNightMerit",
21
20
  "RandomMerit",
22
- "TimeOfDayMerit",
23
21
  "TimeWindowMerit",
24
22
  "TransitMerit",
25
23
  ]
@@ -0,0 +1,123 @@
1
+ """Lets a module ask whoever stops it for more time to shut down.
2
+
3
+ A module with a long shutdown (e.g. a cooled camera warming up in ``close()``) calls
4
+ :func:`extend_stop_timeout`. Depending on how the module was started, that
5
+
6
+ - sends ``EXTEND_TIMEOUT_USEC`` to systemd, if ``$NOTIFY_SOCKET`` is set (see ``sd_notify(3)``; systemd
7
+ only honors it for ``Type=notify`` services), and/or
8
+ - writes the deadline (wall-clock epoch seconds) into a stop file next to the PID file, if the module was
9
+ started with ``--pid-file`` (pyobsd's and web-admin's PID-file mode). They read it with
10
+ :func:`read_stop_deadline` and only send SIGKILL after that deadline.
11
+
12
+ Without either, it does nothing.
13
+ """
14
+
15
+ from __future__ import annotations
16
+
17
+ import logging
18
+ import os
19
+ import socket
20
+ import time
21
+
22
+ log = logging.getLogger(__name__)
23
+
24
+ STOP_FILE_SUFFIX = ".stopping"
25
+
26
+ _stop_file: str | None = None
27
+
28
+
29
+ def stop_file_for(pid_file: str) -> str:
30
+ """Path of the stop file belonging to a PID file."""
31
+ return pid_file + STOP_FILE_SUFFIX
32
+
33
+
34
+ def set_stop_file(path: str | None) -> None:
35
+ """Sets the stop file that :func:`extend_stop_timeout` writes to. Called by the application."""
36
+ global _stop_file
37
+ _stop_file = path
38
+
39
+
40
+ def mark_stopping() -> None:
41
+ """Marks the module as shutting down, without asking for more time. Called by the application on SIGTERM.
42
+
43
+ In PID-file mode, the stop file is what makes pyobsd and web-admin show the module as "stopping". The deadline
44
+ written is "now" (or a later one that is already there), which extends nothing, since they always wait at least
45
+ their own stop timeout. Under systemd, sends ``STOPPING=1``. Never raises."""
46
+ notify("STOPPING=1")
47
+ if _stop_file is not None:
48
+ _write_deadline(_stop_file, max(time.time(), read_stop_deadline(_stop_file) or 0.0))
49
+
50
+
51
+ def extend_stop_timeout(seconds: float) -> None:
52
+ """Asks for up to ``seconds`` more time to shut down, counted from now. Never raises."""
53
+ notify(f"EXTEND_TIMEOUT_USEC={int(seconds * 1_000_000)}")
54
+ if _stop_file is not None:
55
+ _write_deadline(_stop_file, time.time() + seconds)
56
+
57
+
58
+ def clear_stop_file() -> None:
59
+ """Removes the stop file, if any. Called by the application at the end of its shutdown."""
60
+ if _stop_file is None:
61
+ return
62
+ try:
63
+ os.remove(_stop_file)
64
+ except FileNotFoundError:
65
+ pass
66
+ except OSError as e:
67
+ log.warning("Could not remove stop file %s: %s", _stop_file, e)
68
+
69
+
70
+ def read_stop_deadline(path: str) -> float | None:
71
+ """Reads the deadline (epoch seconds) from a stop file, or None if there is no valid one."""
72
+ try:
73
+ with open(path) as f:
74
+ return float(f.read().strip())
75
+ except (OSError, ValueError):
76
+ return None
77
+
78
+
79
+ def notify(message: str) -> bool:
80
+ """Sends one message to systemd's notification socket, without libsystemd.
81
+
82
+ Returns:
83
+ True if it was sent, False if ``$NOTIFY_SOCKET`` is not set or sending failed.
84
+ """
85
+ address = os.environ.get("NOTIFY_SOCKET")
86
+ if not address:
87
+ return False
88
+ if address[0] == "@":
89
+ # abstract namespace
90
+ address = "\0" + address[1:]
91
+ elif address[0] != "/":
92
+ log.warning("Unsupported NOTIFY_SOCKET %r, not notifying systemd.", address)
93
+ return False
94
+ try:
95
+ with socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM | socket.SOCK_CLOEXEC) as sock:
96
+ sock.connect(address)
97
+ sock.sendall(message.encode())
98
+ return True
99
+ except OSError as e:
100
+ log.warning("Could not notify systemd (%s): %s", message, e)
101
+ return False
102
+
103
+
104
+ def _write_deadline(path: str, deadline: float) -> None:
105
+ tmp = f"{path}.{os.getpid()}.tmp"
106
+ try:
107
+ with open(tmp, "w") as f:
108
+ f.write(f"{deadline:.3f}\n")
109
+ os.replace(tmp, path)
110
+ except OSError as e:
111
+ log.warning("Could not write stop file %s: %s", path, e)
112
+
113
+
114
+ __all__ = [
115
+ "STOP_FILE_SUFFIX",
116
+ "stop_file_for",
117
+ "set_stop_file",
118
+ "mark_stopping",
119
+ "extend_stop_timeout",
120
+ "clear_stop_file",
121
+ "read_stop_deadline",
122
+ "notify",
123
+ ]
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pyobs-core"
3
- version = "2.28.2"
3
+ version = "2.29.0.dev1"
4
4
  description = "robotic telescope software"
5
5
  authors = [{ name = "Tim-Oliver Husser", email = "thusser@uni-goettingen.de" }]
6
6
  requires-python = ">=3.11"
@@ -1,54 +0,0 @@
1
- from __future__ import annotations
2
-
3
- from datetime import time as dtime
4
- from typing import TYPE_CHECKING
5
-
6
- from pydantic import Field
7
-
8
- from pyobs.utils.serialization import BaseModel
9
- from pyobs.utils.time import Time
10
-
11
- from .merit import Merit
12
-
13
- if TYPE_CHECKING:
14
- from pyobs.robotic import Task
15
-
16
- from ..dataprovider import DataProvider
17
-
18
-
19
- class TimeOfDayWindow(BaseModel):
20
- """Daily window [start, end) in UTC. If start > end, the window wraps around midnight."""
21
-
22
- start: dtime = Field(default=dtime(0, 0))
23
- end: dtime = Field(default=dtime(0, 0))
24
-
25
- def contains(self, now: dtime) -> bool:
26
- # start == end means an empty window
27
- if self.start <= self.end:
28
- return self.start <= now < self.end
29
- return now >= self.start or now < self.end
30
-
31
-
32
- class TimeOfDayMerit(Merit):
33
- """Merit function that is only non-zero within daily time windows (UTC).
34
-
35
- Multiple windows are ORed. Several merits are ANDed by the scheduler, so use one merit with several windows."""
36
-
37
- windows: list[TimeOfDayWindow] = Field(default_factory=list)
38
- inverse: bool = False
39
-
40
- async def __call__(self, time: Time, task: Task, data: DataProvider) -> float:
41
- # time of day in UTC
42
- now = time.utc.datetime.time()
43
-
44
- # in any window?
45
- in_window = any(window.contains(now) for window in self.windows)
46
-
47
- # invert?
48
- if not self.inverse:
49
- return 1.0 if in_window else 0.0
50
- else:
51
- return 0.0 if in_window else 1.0
52
-
53
-
54
- __all__ = ["TimeOfDayMerit", "TimeOfDayWindow"]
File without changes