dkist-processing-common 11.6.0rc1__tar.gz → 11.7.0rc2__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 (147) hide show
  1. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/CHANGELOG.rst +19 -0
  2. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/PKG-INFO +3 -3
  3. dkist_processing_common-11.7.0rc2/changelog/267.feature.1.rst +1 -0
  4. dkist_processing_common-11.7.0rc2/changelog/267.feature.2.rst +1 -0
  5. dkist_processing_common-11.7.0rc2/changelog/267.feature.rst +1 -0
  6. dkist_processing_common-11.7.0rc2/changelog/267.misc.rst +1 -0
  7. dkist_processing_common-11.7.0rc2/changelog/267.removal.1.rst +2 -0
  8. dkist_processing_common-11.7.0rc2/changelog/267.removal.rst +1 -0
  9. dkist_processing_common-11.7.0rc2/dkist_processing_common/models/constants.py +523 -0
  10. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/models/fits_access.py +16 -25
  11. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/models/telemetry.py +9 -2
  12. dkist_processing_common-11.7.0rc2/dkist_processing_common/parsers/average_bud.py +48 -0
  13. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/parsers/experiment_id_bud.py +8 -4
  14. dkist_processing_common-11.7.0rc2/dkist_processing_common/parsers/id_bud.py +76 -0
  15. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/parsers/l0_fits_access.py +3 -3
  16. dkist_processing_common-11.7.0rc2/dkist_processing_common/parsers/l1_fits_access.py +91 -0
  17. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/parsers/near_bud.py +4 -4
  18. dkist_processing_common-11.7.0rc2/dkist_processing_common/parsers/proposal_id_bud.py +28 -0
  19. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/parsers/single_value_single_key_flower.py +0 -1
  20. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/parsers/time.py +141 -27
  21. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tasks/base.py +21 -3
  22. dkist_processing_common-11.7.0rc2/dkist_processing_common/tasks/parse_l0_input_data.py +473 -0
  23. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_fits_access.py +19 -44
  24. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_parse_l0_input_data.py +39 -5
  25. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_stems.py +127 -10
  26. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_task_parsing.py +6 -6
  27. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common.egg-info/PKG-INFO +3 -3
  28. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common.egg-info/SOURCES.txt +7 -1
  29. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common.egg-info/requires.txt +2 -2
  30. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/pyproject.toml +2 -2
  31. dkist_processing_common-11.6.0rc1/changelog/268.misc.rst +0 -1
  32. dkist_processing_common-11.6.0rc1/dkist_processing_common/models/constants.py +0 -187
  33. dkist_processing_common-11.6.0rc1/dkist_processing_common/parsers/id_bud.py +0 -60
  34. dkist_processing_common-11.6.0rc1/dkist_processing_common/parsers/l1_fits_access.py +0 -65
  35. dkist_processing_common-11.6.0rc1/dkist_processing_common/parsers/proposal_id_bud.py +0 -22
  36. dkist_processing_common-11.6.0rc1/dkist_processing_common/tasks/parse_l0_input_data.py +0 -255
  37. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/.gitignore +0 -0
  38. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/.pre-commit-config.yaml +0 -0
  39. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/.readthedocs.yml +0 -0
  40. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/.snyk +0 -0
  41. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/README.rst +0 -0
  42. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/bitbucket-pipelines.yml +0 -0
  43. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/changelog/.gitempty +0 -0
  44. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/__init__.py +0 -0
  45. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/_util/__init__.py +0 -0
  46. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/_util/constants.py +0 -0
  47. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/_util/graphql.py +0 -0
  48. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/_util/scratch.py +0 -0
  49. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/_util/tags.py +0 -0
  50. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/codecs/__init__.py +0 -0
  51. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/codecs/array.py +0 -0
  52. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/codecs/asdf.py +0 -0
  53. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/codecs/basemodel.py +0 -0
  54. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/codecs/bytes.py +0 -0
  55. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/codecs/fits.py +0 -0
  56. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/codecs/iobase.py +0 -0
  57. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/codecs/json.py +0 -0
  58. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/codecs/path.py +0 -0
  59. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/codecs/quality.py +0 -0
  60. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/codecs/str.py +0 -0
  61. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/config.py +0 -0
  62. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/fonts/Lato-Regular.ttf +0 -0
  63. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/fonts/__init__.py +0 -0
  64. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/manual.py +0 -0
  65. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/models/__init__.py +0 -0
  66. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/models/dkist_location.py +0 -0
  67. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/models/flower_pot.py +0 -0
  68. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/models/fried_parameter.py +0 -0
  69. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/models/graphql.py +0 -0
  70. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/models/input_dataset.py +0 -0
  71. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/models/message.py +0 -0
  72. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/models/message_queue_binding.py +0 -0
  73. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/models/metric_code.py +0 -0
  74. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/models/parameters.py +0 -0
  75. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/models/quality.py +0 -0
  76. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/models/tags.py +0 -0
  77. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/models/task_name.py +0 -0
  78. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/models/wavelength.py +0 -0
  79. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/parsers/__init__.py +0 -0
  80. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/parsers/cs_step.py +0 -0
  81. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/parsers/dsps_repeat.py +0 -0
  82. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/parsers/quality.py +0 -0
  83. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/parsers/retarder.py +0 -0
  84. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/parsers/task.py +0 -0
  85. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/parsers/unique_bud.py +0 -0
  86. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/parsers/wavelength.py +0 -0
  87. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tasks/__init__.py +0 -0
  88. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tasks/assemble_movie.py +0 -0
  89. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tasks/l1_output_data.py +0 -0
  90. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tasks/mixin/__init__.py +0 -0
  91. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tasks/mixin/globus.py +0 -0
  92. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tasks/mixin/interservice_bus.py +0 -0
  93. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tasks/mixin/metadata_store.py +0 -0
  94. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tasks/mixin/object_store.py +0 -0
  95. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tasks/mixin/quality/__init__.py +0 -0
  96. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tasks/mixin/quality/_base.py +0 -0
  97. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tasks/mixin/quality/_metrics.py +0 -0
  98. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tasks/output_data_base.py +0 -0
  99. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tasks/quality_metrics.py +0 -0
  100. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tasks/teardown.py +0 -0
  101. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tasks/transfer_input_data.py +0 -0
  102. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tasks/trial_catalog.py +0 -0
  103. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tasks/trial_output_data.py +0 -0
  104. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tasks/write_l1.py +0 -0
  105. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/__init__.py +0 -0
  106. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/conftest.py +0 -0
  107. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/mock_metadata_store.py +0 -0
  108. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_assemble_movie.py +0 -0
  109. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_assemble_quality.py +0 -0
  110. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_base.py +0 -0
  111. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_codecs.py +0 -0
  112. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_constants.py +0 -0
  113. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_cs_step.py +0 -0
  114. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_dkist_location.py +0 -0
  115. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_flower_pot.py +0 -0
  116. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_fried_parameter.py +0 -0
  117. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_input_dataset.py +0 -0
  118. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_interservice_bus.py +0 -0
  119. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_interservice_bus_mixin.py +0 -0
  120. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_manual_processing.py +0 -0
  121. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_output_data_base.py +0 -0
  122. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_parameters.py +0 -0
  123. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_publish_catalog_messages.py +0 -0
  124. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_quality.py +0 -0
  125. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_quality_mixin.py +0 -0
  126. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_scratch.py +0 -0
  127. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_submit_dataset_metadata.py +0 -0
  128. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_tags.py +0 -0
  129. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_task_name.py +0 -0
  130. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_teardown.py +0 -0
  131. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_transfer_input_data.py +0 -0
  132. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_transfer_l1_output_data.py +0 -0
  133. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_trial_catalog.py +0 -0
  134. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_trial_output_data.py +0 -0
  135. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_workflow_task_base.py +0 -0
  136. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common/tests/test_write_l1.py +0 -0
  137. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common.egg-info/dependency_links.txt +0 -0
  138. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/dkist_processing_common.egg-info/top_level.txt +0 -0
  139. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/docs/Makefile +0 -0
  140. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/docs/changelog.rst +0 -0
  141. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/docs/conf.py +0 -0
  142. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/docs/index.rst +0 -0
  143. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/docs/landing_page.rst +0 -0
  144. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/docs/make.bat +0 -0
  145. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/docs/requirements.txt +0 -0
  146. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/licenses/LICENSE.rst +0 -0
  147. {dkist_processing_common-11.6.0rc1 → dkist_processing_common-11.7.0rc2}/setup.cfg +0 -0
@@ -1,3 +1,22 @@
1
+ v11.6.0 (2025-09-26)
2
+ ====================
3
+
4
+ Misc
5
+ ----
6
+
7
+ - Integrate dkist-processing-core 6.0.0 which brings a swap of Elastic APM to OpenTelemetry for metrics and tracing. (`#268 <https://bitbucket.org/dkistdc/dkist-processing-common/pull-requests/268>`__)
8
+ - Added common meters to instrument reads/writes and a framework for observing task progress. (`#268 <https://bitbucket.org/dkistdc/dkist-processing-common/pull-requests/268>`__)
9
+
10
+
11
+ v11.5.1 (2025-09-17)
12
+ ====================
13
+
14
+ Misc
15
+ ----
16
+
17
+ - Update the redis SDK to the latest version to deploy concurrently with an updated redis server. (`#269 <https://bitbucket.org/dkistdc/dkist-processing-common/pull-requests/269>`__)
18
+
19
+
1
20
  v11.5.0 (2025-09-08)
2
21
  ====================
3
22
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dkist-processing-common
3
- Version: 11.6.0rc1
3
+ Version: 11.7.0rc2
4
4
  Summary: Common task classes used by the DKIST science data processing pipelines
5
5
  Author-email: NSO / AURA <dkistdc@nso.edu>
6
6
  License: BSD-3-Clause
@@ -17,7 +17,7 @@ Requires-Dist: asdf<4.0.0,>=3.5.0
17
17
  Requires-Dist: astropy>=7.0.0
18
18
  Requires-Dist: dkist-fits-specifications<5.0,>=4.0.0
19
19
  Requires-Dist: dkist-header-validator<6.0,>=5.0.0
20
- Requires-Dist: dkist-processing-core==6.0.0rc3
20
+ Requires-Dist: dkist-processing-core==6.0.0
21
21
  Requires-Dist: dkist-processing-pac<4.0,>=3.1
22
22
  Requires-Dist: dkist-service-configuration<5.0,>=4.1.7
23
23
  Requires-Dist: dkist-spectral-lines<4.0,>=3.0.0
@@ -32,7 +32,7 @@ Requires-Dist: object-clerk==1.0.0
32
32
  Requires-Dist: pandas>=1.4.2
33
33
  Requires-Dist: pillow>=10.2.0
34
34
  Requires-Dist: pydantic>=2.0
35
- Requires-Dist: redis==4.6.0
35
+ Requires-Dist: redis==6.4.0
36
36
  Requires-Dist: requests>=2.23
37
37
  Requires-Dist: scipy>=1.15.1
38
38
  Requires-Dist: sunpy>=3.0.0
@@ -0,0 +1 @@
1
+ Add new bud types TaskAverageBud and TaskBeginDateBud, which is based on new TaskDatetimeBudBase.
@@ -0,0 +1 @@
1
+ Add new bud type TaskContributingIdsBud, based on ContributingIdsBud, for for specific task types.
@@ -0,0 +1 @@
1
+ Add new buds to parsing for what will become the dataset extras.
@@ -0,0 +1 @@
1
+ Rename TimeFlowerBase and TaskTimeBudBase to RoundTimeFlowerBase and TaskRoundTimeBudBase, respectively.
@@ -0,0 +1,2 @@
1
+ Remove the `_set_metadata_key_value` method from FitsAccessBase. Instead of using `setattr`, attributes
2
+ are assigned explicitly in access classes using `MetadataKey` members in place of header key strings.
@@ -0,0 +1 @@
1
+ Remove IdBud, which is just a TaskUniqueBud with the task set to observe, and therefore is not needed.
@@ -0,0 +1,523 @@
1
+ """
2
+ Components of the Constant model.
3
+
4
+ Contains names of database entries and Base class for an object that simplifies
5
+ accessing the database (tab completion, etc.)
6
+ """
7
+
8
+ from enum import StrEnum
9
+ from enum import unique
10
+ from string import ascii_uppercase
11
+
12
+ from sqids import Sqids
13
+
14
+ from dkist_processing_common._util.constants import ConstantsDb
15
+
16
+
17
+ @unique
18
+ class BudName(StrEnum):
19
+ """Controlled list of names for constant stems (buds)."""
20
+
21
+ instrument = "INSTRUMENT"
22
+ num_cs_steps = "NUM_CS_STEPS"
23
+ num_modstates = "NUM_MODSTATES"
24
+ retarder_name = "RETARDER_NAME"
25
+ proposal_id = "PROPOSAL_ID"
26
+ contributing_proposal_ids = "CONTRIBUTING_PROPOSAL_IDS"
27
+ experiment_id = "EXPERIMENT_ID"
28
+ contributing_experiment_ids = "CONTRIBUTING_EXPERIMENT_IDS"
29
+ obs_ip_start_time = "OBS_IP_START_TIME"
30
+ average_cadence = "AVERAGE_CADENCE"
31
+ maximum_cadence = "MAXIMUM_CADENCE"
32
+ minimum_cadence = "MINIMUM_CADENCE"
33
+ variance_cadence = "VARIANCE_CADENCE"
34
+ num_dsps_repeats = "NUM_DSPS_REPEATS"
35
+ dark_exposure_times = "DARK_EXPOSURE_TIMES"
36
+ dark_readout_exp_times = "DARK_READOUT_EXP_TIMES"
37
+ wavelength = "WAVELENGTH"
38
+ camera_id = "CAMERA_ID"
39
+ camera_name = "CAMERA_NAME"
40
+ camera_bit_depth = "CAMERA_BIT_DEPTH"
41
+ hardware_binning_x = "HARDWARE_BINNING_X"
42
+ hardware_binning_y = "HARDWARE_BINNING_Y"
43
+ software_binning_x = "SOFTWARE_BINNING_X"
44
+ software_binning_y = "SOFTWARE_BINNING_Y"
45
+ hls_version = "HLS_VERSION"
46
+ # Multi-task buds start here:
47
+ dark_observing_program_execution_id = "DARK_OBSERVING_PROGRAM_EXECUTION_ID"
48
+ solar_gain_observing_program_execution_id = "SOLAR_GAIN_OBSERVING_PROGRAM_EXECUTION_ID"
49
+ polcal_observing_program_execution_id = "POLCAL_OBSERVING_PROGRAM_EXECUTION_ID"
50
+ dark_date_begin = "DARK_DATE_BEGIN"
51
+ solar_gain_date_begin = "SOLAR_GAIN_DATE_BEGIN"
52
+ polcal_date_begin = "POLCAL_DATE_BEGIN"
53
+ dark_date_end = "DARK_DATE_END"
54
+ solar_gain_date_end = "SOLAR_GAIN_DATE_END"
55
+ polcal_date_end = "POLCAL_DATE_END"
56
+ dark_num_raw_frames_per_fpa = "DARK_NUM_RAW_FRAMES_PER_FPA"
57
+ solar_gain_num_raw_frames_per_fpa = "SOLAR_GAIN_NUM_RAW_FRAMES_PER_FPA"
58
+ polcal_num_raw_frames_per_fpa = "POLCAL_NUM_RAW_FRAMES_PER_FPA"
59
+ dark_telescope_tracking_mode = "DARK_TELESCOPE_TRACKING_MODE"
60
+ solar_gain_telescope_tracking_mode = "SOLAR_GAIN_TELESCOPE_TRACKING_MODE"
61
+ polcal_telescope_tracking_mode = "POLCAL_TELESCOPE_TRACKING_MODE"
62
+ dark_coude_table_tracking_mode = "DARK_COUDE_TABLE_TRACKING_MODE"
63
+ solar_gain_coude_table_tracking_mode = "SOLAR_GAIN_COUDE_TABLE_TRACKING_MODE"
64
+ polcal_coude_table_tracking_mode = "POLCAL_COUDE_TABLE_TRACKING_MODE"
65
+ dark_telescope_scanning_mode = "DARK_TELESCOPE_SCANNING_MODE"
66
+ solar_gain_telescope_scanning_mode = "SOLAR_GAIN_TELESCOPE_SCANNING_MODE"
67
+ polcal_telescope_scanning_mode = "POLCAL_TELESCOPE_SCANNING_MODE"
68
+ dark_average_light_level = "DARK_AVERAGE_LIGHT_LEVEL"
69
+ solar_gain_average_light_level = "SOLAR_GAIN_AVERAGE_LIGHT_LEVEL"
70
+ polcal_average_light_level = "POLCAL_AVERAGE_LIGHT_LEVEL"
71
+ dark_average_telescope_elevation = "DARK_AVERAGE_TELESCOPE_ELEVATION"
72
+ solar_gain_average_telescope_elevation = "SOLAR_GAIN_AVERAGE_TELESCOPE_ELEVATION"
73
+ polcal_average_telescope_elevation = "POLCAL_AVERAGE_TELESCOPE_ELEVATION"
74
+ dark_average_coude_table_angle = "DARK_AVERAGE_COUDE_TABLE_ANGLE"
75
+ solar_gain_average_coude_table_angle = "SOLAR_GAIN_AVERAGE_COUDE_TABLE_ANGLE"
76
+ polcal_average_coude_table_angle = "POLCAL_AVERAGE_COUDE_TABLE_ANGLE"
77
+ dark_average_telescope_azimuth = "DARK_AVERAGE_TELESCOPE_AZIMUTH"
78
+ solar_gain_average_telescope_azimuth = "SOLAR_GAIN_AVERAGE_TELESCOPE_AZIMUTH"
79
+ polcal_average_telescope_azimuth = "POLCAL_AVERAGE_TELESCOPE_AZIMUTH"
80
+ dark_gos_level3_status = "DARK_GOS_LEVEL3_STATUS"
81
+ solar_gain_gos_level3_status = "SOLAR_GAIN_GOS_LEVEL3_STATUS"
82
+ dark_gos_level3_lamp_status = "DARK_GOS_LEVEL3_LAMP_STATUS"
83
+ solar_gain_gos_level3_lamp_status = "SOLAR_GAIN_GOS_LEVEL3_LAMP_STATUS"
84
+ dark_gos_polarizer_status = "DARK_GOS_POLARIZER_STATUS"
85
+ solar_gain_gos_polarizer_status = "SOLAR_GAIN_GOS_POLARIZER_STATUS"
86
+ dark_gos_polarizer_angle = "DARK_GOS_POLARIZER_ANGLE"
87
+ solar_gain_gos_polarizer_angle = "SOLAR_GAIN_GOS_POLARIZER_ANGLE"
88
+ dark_gos_retarder_status = "DARK_GOS_RETARDER_STATUS"
89
+ solar_gain_gos_retarder_status = "SOLAR_GAIN_GOS_RETARDER_STATUS"
90
+ dark_gos_retarder_angle = "DARK_GOS_RETARDER_ANGLE"
91
+ solar_gain_gos_retarder_angle = "SOLAR_GAIN_GOS_RETARDER_ANGLE"
92
+ dark_gos_level0_status = "DARK_GOS_LEVEL0_STATUS"
93
+ solar_gain_gos_level0_status = "SOLAR_GAIN_GOS_LEVEL0_STATUS"
94
+
95
+
96
+ class ConstantsBase:
97
+ """
98
+ Aggregate (from the constant buds flower pot) in a single property on task classes.
99
+
100
+ It also provides some default constants, but is intended to be subclassed by instruments.
101
+
102
+ To subclass:
103
+
104
+ 1. Create the actual subclass. All you need to do is add more @properties for the constants you want
105
+
106
+ 2. Update the instrument class's `constants_model_class` property to return the new subclass. For example::
107
+
108
+ class NewConstants(ConstantsBase):
109
+ @property
110
+ def something(self):
111
+ return 7
112
+
113
+ class InstrumentWorkflowTask(WorkflowTaskBase):
114
+ @property
115
+ def constants_model_class:
116
+ return NewConstants
117
+
118
+ ...
119
+
120
+ Parameters
121
+ ----------
122
+ recipe_run_id
123
+ The recipe_run_id
124
+ task_name
125
+ The task_name
126
+ """
127
+
128
+ def __init__(self, recipe_run_id: int, task_name: str):
129
+ self._db_dict = ConstantsDb(recipe_run_id=recipe_run_id, task_name=task_name)
130
+ self._recipe_run_id = recipe_run_id
131
+
132
+ # These management functions are all underscored because we want tab-complete to *only* show the available
133
+ # constants
134
+ def _update(self, d: dict):
135
+ self._db_dict.update(d)
136
+
137
+ def _purge(self):
138
+ self._db_dict.purge()
139
+
140
+ def _close(self):
141
+ self._db_dict.close()
142
+
143
+ def _rollback(self):
144
+ self._db_dict.rollback()
145
+
146
+ @property
147
+ def dataset_id(self) -> str:
148
+ """Define the dataset id constant."""
149
+ return Sqids(min_length=6, alphabet=ascii_uppercase).encode([self._recipe_run_id])
150
+
151
+ @property
152
+ def stokes_params(self) -> list[str]:
153
+ """Return the list of stokes parameter names."""
154
+ return ["I", "Q", "U", "V"]
155
+
156
+ @property
157
+ def instrument(self) -> str:
158
+ """Get the instrument name."""
159
+ return self._db_dict[BudName.instrument]
160
+
161
+ @property
162
+ def num_cs_steps(self) -> int:
163
+ """Get the number of calibration sequence steps."""
164
+ return self._db_dict[BudName.num_cs_steps]
165
+
166
+ @property
167
+ def num_modstates(self) -> int:
168
+ """Get the number of modulation states."""
169
+ return self._db_dict[BudName.num_modstates]
170
+
171
+ @property
172
+ def retarder_name(self) -> str:
173
+ """Get the retarder name."""
174
+ return self._db_dict[BudName.retarder_name]
175
+
176
+ @property
177
+ def proposal_id(self) -> str:
178
+ """Get the proposal ID constant."""
179
+ return self._db_dict[BudName.proposal_id]
180
+
181
+ @property
182
+ def contributing_proposal_ids(self) -> list[str]:
183
+ """Return the list of contributing proposal IDs."""
184
+ proposal_ids = self._db_dict[BudName.contributing_proposal_ids]
185
+ return list(proposal_ids)
186
+
187
+ @property
188
+ def experiment_id(self) -> str:
189
+ """Get the experiment ID constant."""
190
+ return self._db_dict[BudName.experiment_id]
191
+
192
+ @property
193
+ def contributing_experiment_ids(self) -> list[str]:
194
+ """Return the list of contributing experiment IDs."""
195
+ experiment_ids = self._db_dict[BudName.contributing_experiment_ids]
196
+ return list(experiment_ids)
197
+
198
+ @property
199
+ def obs_ip_start_time(self) -> str:
200
+ """Return the start time of the observe IP."""
201
+ return self._db_dict[BudName.obs_ip_start_time]
202
+
203
+ @property
204
+ def average_cadence(self) -> float:
205
+ """Get the average cadence constant."""
206
+ return self._db_dict[BudName.average_cadence]
207
+
208
+ @property
209
+ def maximum_cadence(self) -> float:
210
+ """Get the maximum cadence constant constant."""
211
+ return self._db_dict[BudName.maximum_cadence]
212
+
213
+ @property
214
+ def minimum_cadence(self) -> float:
215
+ """Get the minimum cadence constant constant."""
216
+ return self._db_dict[BudName.minimum_cadence]
217
+
218
+ @property
219
+ def variance_cadence(self) -> float:
220
+ """Get the variance of the cadence constant."""
221
+ return self._db_dict[BudName.variance_cadence]
222
+
223
+ @property
224
+ def num_dsps_repeats(self) -> int:
225
+ """Get the number of dsps repeats."""
226
+ return self._db_dict[BudName.num_dsps_repeats]
227
+
228
+ @property
229
+ def dark_exposure_times(self) -> list[float]:
230
+ """Get a list of exposure times used in the dark calibration."""
231
+ exposure_times = self._db_dict[BudName.dark_exposure_times]
232
+ return list(exposure_times)
233
+
234
+ @property
235
+ def dark_readout_exp_times(self) -> list[float]:
236
+ """Get a list of readout exp times for all dark frames."""
237
+ readout_times = self._db_dict[BudName.dark_readout_exp_times]
238
+ return list(readout_times)
239
+
240
+ @property
241
+ def wavelength(self) -> float:
242
+ """Wavelength."""
243
+ return self._db_dict[BudName.wavelength]
244
+
245
+ @property
246
+ def camera_id(self) -> str:
247
+ """Return the camera ID constant."""
248
+ return self._db_dict[BudName.camera_id]
249
+
250
+ @property
251
+ def camera_name(self) -> str:
252
+ """Return the camera name for humans constant."""
253
+ return self._db_dict[BudName.camera_name]
254
+
255
+ @property
256
+ def camera_bit_depth(self) -> int:
257
+ """Return the camera bit depth constant."""
258
+ return self._db_dict[BudName.camera_bit_depth]
259
+
260
+ @property
261
+ def hardware_binning_x(self) -> int:
262
+ """Return the x-direction hardware binning constant."""
263
+ return self._db_dict[BudName.hardware_binning_x]
264
+
265
+ @property
266
+ def hardware_binning_y(self) -> int:
267
+ """Return the y-direction hardware binning constant."""
268
+ return self._db_dict[BudName.hardware_binning_y]
269
+
270
+ @property
271
+ def software_binning_x(self) -> int:
272
+ """Return the x-direction software binning constant."""
273
+ return self._db_dict[BudName.software_binning_x]
274
+
275
+ @property
276
+ def software_binning_y(self) -> int:
277
+ """Return the y-direction software binning constant."""
278
+ return self._db_dict[BudName.software_binning_y]
279
+
280
+ @property
281
+ def hls_version(self) -> str:
282
+ """Return the High-Level Software version."""
283
+ return self._db_dict[BudName.hls_version]
284
+
285
+ # Multi-task constants start here:
286
+
287
+ @property
288
+ def dark_observing_program_execution_id(self) -> list[str]:
289
+ """Return the observing program execution id constant for the dark task."""
290
+ observing_programs = self._db_dict[BudName.dark_observing_program_execution_id]
291
+ return list(observing_programs)
292
+
293
+ @property
294
+ def solar_gain_observing_program_execution_id(self) -> list[str]:
295
+ """Return the observing program execution id constant for the solar_gain task."""
296
+ observing_programs = self._db_dict[BudName.solar_gain_observing_program_execution_id]
297
+ return list(observing_programs)
298
+
299
+ @property
300
+ def polcal_observing_program_execution_id(self) -> list[str]:
301
+ """Return the observing program execution id constant."""
302
+ observing_programs = self._db_dict[BudName.polcal_observing_program_execution_id]
303
+ return list(observing_programs)
304
+
305
+ @property
306
+ def dark_date_begin(self) -> str:
307
+ """Return the date begin header constant for the dark task."""
308
+ return self._db_dict[BudName.dark_date_begin]
309
+
310
+ @property
311
+ def solar_gain_date_begin(self) -> str:
312
+ """Return the date begin header constant for the solar gain task."""
313
+ return self._db_dict[BudName.solar_gain_date_begin]
314
+
315
+ @property
316
+ def polcal_date_begin(self) -> str:
317
+ """Return the time obs header constant for the polcal task."""
318
+ return self._db_dict[BudName.polcal_date_begin]
319
+
320
+ @property
321
+ def dark_date_end(self) -> str:
322
+ """Return the date end constant for the dark task."""
323
+ return self._db_dict[BudName.dark_date_end]
324
+
325
+ @property
326
+ def solar_gain_date_end(self) -> str:
327
+ """Return the date end constant for the solar gain task."""
328
+ return self._db_dict[BudName.solar_gain_date_end]
329
+
330
+ @property
331
+ def polcal_date_end(self) -> str:
332
+ """Return the date end constant for the polcal task."""
333
+ return self._db_dict[BudName.polcal_date_end]
334
+
335
+ @property
336
+ def dark_num_raw_frames_per_fpa(self) -> int:
337
+ """Return the number of raw frames per fpa constant for the dark task."""
338
+ return self._db_dict[BudName.dark_num_raw_frames_per_fpa]
339
+
340
+ @property
341
+ def solar_gain_num_raw_frames_per_fpa(self) -> int:
342
+ """Return the number of raw frames per fpa constant for the solar gain task."""
343
+ return self._db_dict[BudName.solar_gain_num_raw_frames_per_fpa]
344
+
345
+ @property
346
+ def polcal_num_raw_frames_per_fpa(self) -> int:
347
+ """Return the num raw frames per fpa constant for the polcal task."""
348
+ return self._db_dict[BudName.polcal_num_raw_frames_per_fpa]
349
+
350
+ @property
351
+ def dark_telescope_tracking_mode(self) -> str:
352
+ """Return the telescope tracking mode constant for the dark task."""
353
+ return self._db_dict[BudName.dark_telescope_tracking_mode]
354
+
355
+ @property
356
+ def solar_gain_telescope_tracking_mode(self) -> str:
357
+ """Return the telescope tracking mode constant for the solar gain task."""
358
+ return self._db_dict[BudName.solar_gain_telescope_tracking_mode]
359
+
360
+ @property
361
+ def polcal_telescope_tracking_mode(self) -> str:
362
+ """Return the telescope tracking mode constant for the polcal task."""
363
+ return self._db_dict[BudName.polcal_telescope_tracking_mode]
364
+
365
+ @property
366
+ def dark_coude_table_tracking_mode(self) -> str:
367
+ """Return the coude table tracking mode constant for the dark task."""
368
+ return self._db_dict[BudName.dark_coude_table_tracking_mode]
369
+
370
+ @property
371
+ def solar_gain_coude_table_tracking_mode(self) -> str:
372
+ """Return the coude table tracking mode constant for the solar gain task."""
373
+ return self._db_dict[BudName.solar_gain_coude_table_tracking_mode]
374
+
375
+ @property
376
+ def polcal_coude_table_tracking_mode(self) -> str:
377
+ """Return the coude table tracking mode constant for the polcal task."""
378
+ return self._db_dict[BudName.polcal_coude_table_tracking_mode]
379
+
380
+ @property
381
+ def dark_telescope_scanning_mode(self) -> str:
382
+ """Return the telescope scanning mode constant for the dark task."""
383
+ return self._db_dict[BudName.dark_telescope_scanning_mode]
384
+
385
+ @property
386
+ def solar_gain_telescope_scanning_mode(self) -> str:
387
+ """Return the telescope scanning mode constant for the solar gain task."""
388
+ return self._db_dict[BudName.solar_gain_telescope_scanning_mode]
389
+
390
+ @property
391
+ def polcal_telescope_scanning_mode(self) -> str:
392
+ """Return the telescope scanning mode constant for the polcal task."""
393
+ return self._db_dict[BudName.polcal_telescope_scanning_mode]
394
+
395
+ @property
396
+ def dark_average_light_level(self) -> float:
397
+ """Return the average light level constant for the dark task."""
398
+ return self._db_dict[BudName.dark_average_light_level]
399
+
400
+ @property
401
+ def solar_gain_average_light_level(self) -> float:
402
+ """Return the average light level constant for the solar gain task."""
403
+ return self._db_dict[BudName.solar_gain_average_light_level]
404
+
405
+ @property
406
+ def polcal_average_light_level(self) -> float:
407
+ """Return the average light level constant for the polcal task."""
408
+ return self._db_dict[BudName.polcal_average_light_level]
409
+
410
+ @property
411
+ def dark_average_telescope_elevation(self) -> float:
412
+ """Return the average telescope elevation constant for the dark task."""
413
+ return self._db_dict[BudName.dark_average_telescope_elevation]
414
+
415
+ @property
416
+ def solar_gain_average_telescope_elevation(self) -> float:
417
+ """Return the average telescope elevation constant for the solar gain task."""
418
+ return self._db_dict[BudName.solar_gain_average_telescope_elevation]
419
+
420
+ @property
421
+ def polcal_average_telescope_elevation(self) -> float:
422
+ """Return the average telescope elevation constant for the polcal task."""
423
+ return self._db_dict[BudName.polcal_average_telescope_elevation]
424
+
425
+ @property
426
+ def dark_average_coude_table_angle(self) -> float:
427
+ """Return the average coude table angle constant for the dark task."""
428
+ return self._db_dict[BudName.dark_average_coude_table_angle]
429
+
430
+ @property
431
+ def solar_gain_average_coude_table_angle(self) -> float:
432
+ """Return the average coude table angle constant for the solar gain task."""
433
+ return self._db_dict[BudName.solar_gain_average_coude_table_angle]
434
+
435
+ @property
436
+ def polcal_average_coude_table_angle(self) -> float:
437
+ """Return the average coude table angle constant for the polcal task."""
438
+ return self._db_dict[BudName.polcal_average_coude_table_angle]
439
+
440
+ @property
441
+ def dark_average_telescope_azimuth(self) -> float:
442
+ """Return the average telescope azimuth constant for the dark task."""
443
+ return self._db_dict[BudName.dark_average_telescope_azimuth]
444
+
445
+ @property
446
+ def solar_gain_average_telescope_azimuth(self) -> float:
447
+ """Return the average telescope azimuth constant for the solar gain task."""
448
+ return self._db_dict[BudName.solar_gain_average_telescope_azimuth]
449
+
450
+ @property
451
+ def polcal_average_telescope_azimuth(self) -> float:
452
+ """Return the average telescope azimuth constant for the polcal task."""
453
+ return self._db_dict[BudName.polcal_average_telescope_azimuth]
454
+
455
+ @property
456
+ def dark_gos_level3_status(self) -> str:
457
+ """Return the gos level3 status constant for the dark task."""
458
+ return self._db_dict[BudName.dark_gos_level3_status]
459
+
460
+ @property
461
+ def solar_gain_gos_level3_status(self) -> str:
462
+ """Return the gos level3 status constant for the solar gain task."""
463
+ return self._db_dict[BudName.solar_gain_gos_level3_status]
464
+
465
+ @property
466
+ def dark_gos_level3_lamp_status(self) -> str:
467
+ """Return the gos level3 lamp status constant for the dark task."""
468
+ return self._db_dict[BudName.dark_gos_level3_lamp_status]
469
+
470
+ @property
471
+ def solar_gain_gos_level3_lamp_status(self) -> str:
472
+ """Return the gos level3 lamp status constant for the solar gain task."""
473
+ return self._db_dict[BudName.solar_gain_gos_level3_lamp_status]
474
+
475
+ @property
476
+ def dark_gos_polarizer_status(self) -> str:
477
+ """Return the gos polarizer status constant for the dark task."""
478
+ return self._db_dict[BudName.dark_gos_polarizer_status]
479
+
480
+ @property
481
+ def solar_gain_gos_polarizer_status(self) -> str:
482
+ """Return the gos polarizer status constant for the solar gain task."""
483
+ return self._db_dict[BudName.solar_gain_gos_polarizer_status]
484
+
485
+ @property
486
+ def dark_gos_polarizer_angle(self) -> float:
487
+ """Return the gos polarizer angle constant for the dark task."""
488
+ return self._db_dict[BudName.dark_gos_polarizer_angle]
489
+
490
+ @property
491
+ def solar_gain_gos_polarizer_angle(self) -> float:
492
+ """Return the gos polarizer angle constant for the solar gain task."""
493
+ return self._db_dict[BudName.solar_gain_gos_polarizer_angle]
494
+
495
+ @property
496
+ def dark_gos_retarder_status(self) -> str:
497
+ """Return the gos retarder status constant for the dark task."""
498
+ return self._db_dict[BudName.dark_gos_retarder_status]
499
+
500
+ @property
501
+ def solar_gain_gos_retarder_status(self) -> str:
502
+ """Return the gos retarder status constant for the solar gain task."""
503
+ return self._db_dict[BudName.solar_gain_gos_retarder_status]
504
+
505
+ @property
506
+ def dark_gos_retarder_angle(self) -> float:
507
+ """Return the gos retarder angle constant for the dark task."""
508
+ return self._db_dict[BudName.dark_gos_retarder_angle]
509
+
510
+ @property
511
+ def solar_gain_gos_retarder_angle(self) -> float:
512
+ """Return the gos retarder angle constant for the solar gain task."""
513
+ return self._db_dict[BudName.solar_gain_gos_retarder_angle]
514
+
515
+ @property
516
+ def dark_gos_level0_status(self) -> str:
517
+ """Return the gos level0 status constant for the dark task."""
518
+ return self._db_dict[BudName.dark_gos_level0_status]
519
+
520
+ @property
521
+ def solar_gain_gos_level0_status(self) -> str:
522
+ """Return the gos level0 status constant for the solar gain task."""
523
+ return self._db_dict[BudName.solar_gain_gos_level0_status]
@@ -3,15 +3,16 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  from enum import StrEnum
6
+ from enum import unique
6
7
  from pathlib import Path
7
- from typing import Any
8
8
 
9
9
  import numpy as np
10
10
  from astropy.io import fits
11
11
 
12
- NOT_FOUND_MESSAGE = "_HEADER_KEYWORD_NOT_FOUND"
12
+ HEADER_KEY_NOT_FOUND = "HEADER_KEY_NOT_FOUND"
13
13
 
14
14
 
15
+ @unique
15
16
  class MetadataKey(StrEnum):
16
17
  """Controlled list of names for FITS metadata header keys."""
17
18
 
@@ -39,6 +40,19 @@ class MetadataKey(StrEnum):
39
40
  fpa_exposure_time_ms = "XPOSURE"
40
41
  sensor_readout_exposure_time_ms = "TEXPOSUR"
41
42
  num_raw_frames_per_fpa = "NSUMEXP"
43
+ camera_id = "CAM_ID"
44
+ camera_name = "CAMERA"
45
+ camera_bit_depth = "BITDEPTH"
46
+ hardware_binning_x = "HWBIN1"
47
+ hardware_binning_y = "HWBIN2"
48
+ software_binning_x = "SWBIN1"
49
+ software_binning_y = "SWBIN2"
50
+ observing_program_execution_id = "OBSPR_ID"
51
+ telescope_tracking_mode = "TELTRACK"
52
+ coude_table_tracking_mode = "TTBLTRCK"
53
+ telescope_scanning_mode = "TELSCAN"
54
+ light_level = "LIGHTLVL"
55
+ hls_version = "HLSVERS"
42
56
 
43
57
 
44
58
  class FitsAccessBase:
@@ -68,29 +82,6 @@ class FitsAccessBase:
68
82
  def __repr__(self):
69
83
  return f"{self.__class__.__name__}(hdu={self._hdu!r}, name={self.name!r}, auto_squeeze={self.auto_squeeze})"
70
84
 
71
- def _set_metadata_key_value(
72
- self, key: StrEnum, optional: bool = False, default: Any = NOT_FOUND_MESSAGE
73
- ) -> None:
74
- """
75
- Get the header value and assign it as a metadata key name attribute.
76
-
77
- Parameters
78
- ----------
79
- key
80
- The StrEnum member in attribute_name = fits_keyword structure
81
- optional
82
- If the keyword is optional
83
- default
84
- Value for the attribute if the key is not found
85
- """
86
- if optional:
87
- if default != NOT_FOUND_MESSAGE:
88
- setattr(self, key.name, self.header.get(key, default))
89
- else:
90
- setattr(self, key.name, self.header.get(key, key + NOT_FOUND_MESSAGE))
91
- else:
92
- setattr(self, key.name, self.header[key])
93
-
94
85
  @property
95
86
  def data(self) -> np.ndarray:
96
87
  """
@@ -3,8 +3,8 @@
3
3
  from pydantic import BaseModel
4
4
 
5
5
 
6
- class Progress(BaseModel, validate_assignment=True):
7
- """Container for tracking progress for a metering instrument."""
6
+ class ObservableProgress(BaseModel, validate_assignment=True):
7
+ """Container for tracking progress for a metering instrument e.g. task progress."""
8
8
 
9
9
  current: int = 0
10
10
  total: int = 0
@@ -19,3 +19,10 @@ class Progress(BaseModel, validate_assignment=True):
19
19
  if self.total > 0:
20
20
  return (self.current / self.total) * 100
21
21
  return 0.0
22
+
23
+ def set_complete(self):
24
+ """Set the current progress to the total."""
25
+ if self.total == 0:
26
+ self.total = self.current = 1
27
+ else:
28
+ self.current = self.total