AstroToolkit 2.0.4__tar.gz → 2.0.6__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 (296) hide show
  1. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/PKG-INFO +2 -2
  2. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/changelog.md +36 -0
  3. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/conf.py +4 -0
  4. astrotoolkit-2.0.6/docs/source/tutorials/datapages/datapage_hrd.fits.gz +0 -0
  5. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/datapages/datapage_image.fits.gz +0 -0
  6. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/datapages/datapage_lc.fits.gz +0 -0
  7. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/datapages/datapage_sed.fits.gz +0 -0
  8. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/datapages/datapage_spec.fits.gz +0 -0
  9. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/datatables/example_table.fits.gz +0 -0
  10. astrotoolkit-2.0.6/docs/source/tutorials/extension/allwise_data_1.fits.gz +0 -0
  11. astrotoolkit-2.0.6/docs/source/tutorials/extension/allwise_data_2.fits.gz +0 -0
  12. astrotoolkit-2.0.6/docs/source/tutorials/extension/image_data_1.fits.gz +0 -0
  13. astrotoolkit-2.0.6/docs/source/tutorials/extension/image_data_2.fits.gz +0 -0
  14. astrotoolkit-2.0.6/docs/source/tutorials/getting_started/example_data.fits.gz +0 -0
  15. astrotoolkit-2.0.6/docs/source/tutorials/hrds/example_hrd.fits.gz +0 -0
  16. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/hrds/example_hrd_2.fits.gz +0 -0
  17. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/images/example_image_1.fits.gz +0 -0
  18. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/images/example_image_2.fits.gz +0 -0
  19. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/images/example_image_4.fits.gz +0 -0
  20. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/intro_image.fits.gz +0 -0
  21. astrotoolkit-2.0.6/docs/source/tutorials/io/example_spectrum.fits.gz +0 -0
  22. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/io/export.py +1 -1
  23. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/lightcurves/example_folded_lc.fits.gz +0 -0
  24. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/lightcurves/example_lightcurve.fits.gz +0 -0
  25. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/lightcurves/example_lightcurve_2.fits.gz +0 -0
  26. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/lightcurves/example_lightcurve_3.fits.gz +0 -0
  27. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/lightcurves/example_lightcurve_4.fits.gz +0 -0
  28. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/lightcurves/example_lightcurve_5.fits.gz +0 -0
  29. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/lightcurves/example_pspec.fits.gz +0 -0
  30. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/merging/asassn_lightcurve.fits.gz +0 -0
  31. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/merging/gaia_lightcurve.fits.gz +0 -0
  32. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/multiple_targets/multiple_images.fits.gz +0 -0
  33. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/multiple_targets/multiple_lightcurves.fits.gz +0 -0
  34. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/seds/example_sed.fits.gz +0 -0
  35. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/seds/example_spectrum.fits.gz +0 -0
  36. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/spectra/example_sed.fits.gz +0 -0
  37. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/spectra/example_spectrum.fits.gz +0 -0
  38. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/workflows/assasn_data.fits.gz +0 -0
  39. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/workflows/tess_data.fits.gz +0 -0
  40. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/pyproject.toml +1 -1
  41. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/io/plot_io.py +3 -3
  42. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/plotting/hrd/plot_hrd.py +2 -2
  43. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/lightcurve/_query_info.py +1 -0
  44. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/lightcurve/asassn_query.py +2 -4
  45. astrotoolkit-2.0.6/src/ATK/queries/lightcurve/gaia_dr4_query.py +279 -0
  46. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/query_core.py +7 -7
  47. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/structures/DataPages.py +21 -21
  48. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/structures/methods/lightcurve/phasefold.py +1 -0
  49. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/AstroToolkit.egg-info/PKG-INFO +2 -2
  50. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/AstroToolkit.egg-info/SOURCES.txt +2 -0
  51. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/AstroToolkit.egg-info/requires.txt +1 -1
  52. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/AstroToolkit.egg-info/scm_file_list.json +2 -0
  53. astrotoolkit-2.0.6/src/AstroToolkit.egg-info/scm_version.json +8 -0
  54. astrotoolkit-2.0.4/docs/source/tutorials/datapages/datapage_hrd.fits.gz +0 -0
  55. astrotoolkit-2.0.4/docs/source/tutorials/extension/allwise_data_1.fits.gz +0 -0
  56. astrotoolkit-2.0.4/docs/source/tutorials/extension/allwise_data_2.fits.gz +0 -0
  57. astrotoolkit-2.0.4/docs/source/tutorials/extension/image_data_1.fits.gz +0 -0
  58. astrotoolkit-2.0.4/docs/source/tutorials/extension/image_data_2.fits.gz +0 -0
  59. astrotoolkit-2.0.4/docs/source/tutorials/getting_started/example_data.fits.gz +0 -0
  60. astrotoolkit-2.0.4/docs/source/tutorials/hrds/example_hrd.fits.gz +0 -0
  61. astrotoolkit-2.0.4/src/AstroToolkit.egg-info/scm_version.json +0 -8
  62. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/.github/workflows/publish.yml +0 -0
  63. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/.gitignore +0 -0
  64. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/.readthedocs.yaml +0 -0
  65. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/LICENSE.rst +0 -0
  66. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/MANIFEST.in +0 -0
  67. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/README.md +0 -0
  68. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/Makefile +0 -0
  69. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/build.sh +0 -0
  70. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/make.bat +0 -0
  71. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/requirements.txt +0 -0
  72. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/sim_rtd.sh +0 -0
  73. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/animations/anim.py +0 -0
  74. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/animations/build.sh +0 -0
  75. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/animations/corrected_image.png +0 -0
  76. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/animations/data.py +0 -0
  77. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/animations/fitted_spec.png +0 -0
  78. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/animations/folded_lightcurve.png +0 -0
  79. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/animations/hrd.fits.gz +0 -0
  80. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/animations/hrd.png +0 -0
  81. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/animations/image_1.fits.gz +0 -0
  82. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/animations/image_2.fits.gz +0 -0
  83. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/animations/lightcurve.fits.gz +0 -0
  84. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/animations/lightcurve.png +0 -0
  85. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/animations/media/videos/anim/1080p60/Anim.mp4 +0 -0
  86. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/animations/pspec.png +0 -0
  87. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/animations/sed.fits.gz +0 -0
  88. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/animations/sed.png +0 -0
  89. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/animations/spec.png +0 -0
  90. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/animations/spectrum.fits.gz +0 -0
  91. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/animations/uncorrected_image.png +0 -0
  92. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/animations/utilities.py +0 -0
  93. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/animations/vizier_1.fits.gz +0 -0
  94. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/animations/vizier_2.fits.gz +0 -0
  95. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/erc_logo_dark.png +0 -0
  96. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/erc_logo_light.png +0 -0
  97. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/logo/icon.png +0 -0
  98. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/logo/icon_is.svg +0 -0
  99. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/logo/logo.png +0 -0
  100. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/logo/logo_is.svg +0 -0
  101. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_static/stylesheet.css +0 -0
  102. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/_templates/autosummary/class.rst +0 -0
  103. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/additional_tutorials.rst +0 -0
  104. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/configuration.rst +0 -0
  105. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/extending_atk.rst +0 -0
  106. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/getting_started.rst +0 -0
  107. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/index.rst +0 -0
  108. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/modules/generated/ATK.Models.DataPages.rst +0 -0
  109. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/modules/generated/ATK.Models.DataSet.rst +0 -0
  110. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/modules/generated/ATK.Models.DataTable.rst +0 -0
  111. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/modules/generated/ATK.Models.HRD.rst +0 -0
  112. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/modules/generated/ATK.Models.Image.rst +0 -0
  113. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/modules/generated/ATK.Models.Lightcurve.rst +0 -0
  114. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/modules/generated/ATK.Models.Powspec.rst +0 -0
  115. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/modules/generated/ATK.Models.Record.rst +0 -0
  116. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/modules/generated/ATK.Models.SED.rst +0 -0
  117. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/modules/generated/ATK.Models.Spectrum.rst +0 -0
  118. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/modules/generated/ATK.Models.Target.rst +0 -0
  119. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/modules/generated/ATK.Tools.query.rst +0 -0
  120. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/modules/generated/ATK.Tools.read.rst +0 -0
  121. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/modules/generated/ATK.Visualisation.grid.rst +0 -0
  122. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/modules/generated/ATK.base.Container.rst +0 -0
  123. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/modules/generated/ATK.base.DataFrameIOMixin.rst +0 -0
  124. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/modules/generated/ATK.base.FITSIOMixin.rst +0 -0
  125. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/modules/generated/ATK.base.TableIOMixin.rst +0 -0
  126. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/modules/models.rst +0 -0
  127. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/modules/tools.rst +0 -0
  128. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/modules/utils.rst +0 -0
  129. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/modules/visualisation.rst +0 -0
  130. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/modules.rst +0 -0
  131. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/GALLERY_HEADER.rst +0 -0
  132. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/_intro_image.py +0 -0
  133. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/_utilities.py +0 -0
  134. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/configuration/GALLERY_HEADER.rst +0 -0
  135. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/configuration/config.py +0 -0
  136. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/configuration/config_keys.py +0 -0
  137. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/datapages/GALLERY_HEADER.rst +0 -0
  138. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/datapages/custom_index.rst +0 -0
  139. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/datapages/datapage_plotting.py +0 -0
  140. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/datatables/GALLERY_HEADER.rst +0 -0
  141. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/datatables/custom_index.rst +0 -0
  142. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/datatables/datatables.py +0 -0
  143. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/extension/GALLERY_HEADER.rst +0 -0
  144. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/extension/external_data.py +0 -0
  145. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/extension/external_lightcurve.dat +0 -0
  146. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/extension/external_spec.fits +0 -0
  147. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/extension/save.txt +0 -0
  148. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/extension/vizier.py +0 -0
  149. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/getting_started/GALLERY_HEADER.rst +0 -0
  150. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/getting_started/custom_index.rst +0 -0
  151. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/getting_started/data_query.py +0 -0
  152. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/getting_started/data_saving.py +0 -0
  153. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/getting_started/example_data.fits.gz.gz +0 -0
  154. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/hrds/GALLERY_HEADER.rst +0 -0
  155. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/hrds/custom_index.rst +0 -0
  156. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/hrds/hrd_plotting.py +0 -0
  157. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/hrds/hrd_query.py +0 -0
  158. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/images/GALLERY_HEADER.rst +0 -0
  159. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/images/custom_index.rst +0 -0
  160. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/images/image_plotting.py +0 -0
  161. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/images/image_query.py +0 -0
  162. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/images/image_query_2.py +0 -0
  163. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/io/GALLERY_HEADER.rst +0 -0
  164. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/io/custom_index.rst +0 -0
  165. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/lightcurves/GALLERY_HEADER.rst +0 -0
  166. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/lightcurves/custom_index.rst +0 -0
  167. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/lightcurves/folded_plotting.py +0 -0
  168. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/lightcurves/lightcurve_manipulation.py +0 -0
  169. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/lightcurves/lightcurve_plotting.py +0 -0
  170. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/lightcurves/lightcurve_query.py +0 -0
  171. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/lightcurves/lightcurve_timeseries.py +0 -0
  172. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/merging/GALLERY_HEADER.rst +0 -0
  173. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/merging/custom_index.rst +0 -0
  174. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/merging/merging_datasets.py +0 -0
  175. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/multiple_targets/GALLERY_HEADER.rst +0 -0
  176. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/multiple_targets/custom_index.rst +0 -0
  177. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/multiple_targets/multi_target_analysis.py +0 -0
  178. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/multiple_targets/multi_target_plotting.py +0 -0
  179. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/multiple_targets/multi_target_query.py +0 -0
  180. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/seds/GALLERY_HEADER.rst +0 -0
  181. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/seds/custom_index.rst +0 -0
  182. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/seds/sed_plotting.py +0 -0
  183. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/seds/sed_query.py +0 -0
  184. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/spectra/GALLERY_HEADER.rst +0 -0
  185. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/spectra/custom_index.rst +0 -0
  186. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/spectra/spectral_analysis.py +0 -0
  187. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/spectra/spectrum_plotting.py +0 -0
  188. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/spectra/spectrum_query.py +0 -0
  189. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/workflows/GALLERY_HEADER.rst +0 -0
  190. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/workflows/custom_index.rst +0 -0
  191. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/docs/source/tutorials/workflows/workflows.py +0 -0
  192. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/setup.cfg +0 -0
  193. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/Config/__init__.py +0 -0
  194. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/Models/__init__.py +0 -0
  195. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/Tools/__init__.py +0 -0
  196. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/Tools/query.py +0 -0
  197. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/Tools/query.pyi +0 -0
  198. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/Tools/read.py +0 -0
  199. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/Visualisation/__init__.py +0 -0
  200. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/Visualisation/datapages.py +0 -0
  201. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/__init__.py +0 -0
  202. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/base/__init__.py +0 -0
  203. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/configuration/alias_config.py +0 -0
  204. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/configuration/base_config.py +0 -0
  205. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/configuration/defaults/alias_defaults.py +0 -0
  206. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/configuration/defaults/base_defaults.py +0 -0
  207. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/configuration/defaults/epoch_defaults.py +0 -0
  208. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/configuration/defaults/overlay_defaults.py +0 -0
  209. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/configuration/defaults/survey_defaults.py +0 -0
  210. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/configuration/epoch_config.py +0 -0
  211. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/configuration/overlay_config.py +0 -0
  212. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/configuration/parser_config/ParserConfig.py +0 -0
  213. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/configuration/survey_config.py +0 -0
  214. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/configuration/yaml_config/YAMLConfig.py +0 -0
  215. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/configuration/yaml_config/yaml_io.py +0 -0
  216. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/io/files/read.py +0 -0
  217. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/io/files/writing.py +0 -0
  218. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/io/struct_stdout.py +0 -0
  219. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/io/structure_io.py +0 -0
  220. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/io/target_io.py +0 -0
  221. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/plotting/colours.py +0 -0
  222. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/plotting/datapage/plot_datapage.py +0 -0
  223. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/plotting/datatable/plot_datatable.py +0 -0
  224. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/plotting/formatting.py +0 -0
  225. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/plotting/hrd/backdrop_hrd_allmags.fits.gz +0 -0
  226. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/plotting/image/false_colour.py +0 -0
  227. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/plotting/image/plot_image.py +0 -0
  228. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/plotting/lightcurve/folded_params.py +0 -0
  229. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/plotting/lightcurve/plot_lightcurve.py +0 -0
  230. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/plotting/plotting_core.py +0 -0
  231. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/plotting/powspec/plot_powspec.py +0 -0
  232. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/plotting/sed/plot_sed.py +0 -0
  233. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/plotting/spectrum/plot_spectrum.py +0 -0
  234. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/plotting/spectrum/spectrum_overlay.py +0 -0
  235. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/arguments.py +0 -0
  236. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/checksum.py +0 -0
  237. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/datatable/datatable_query.py +0 -0
  238. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/hrd/gaia_query.py +0 -0
  239. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/image/2mass_query.py +0 -0
  240. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/image/_query_info.py +0 -0
  241. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/image/dss1_query.py +0 -0
  242. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/image/dss2_query.py +0 -0
  243. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/image/image_core.py +0 -0
  244. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/image/irsa_queries.py +0 -0
  245. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/image/overlays.py +0 -0
  246. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/image/panstarrs_query.py +0 -0
  247. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/image/sdss_query.py +0 -0
  248. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/image/skymapper_query.py +0 -0
  249. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/image/wise_query.py +0 -0
  250. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/lightcurve/atlas_query.py +0 -0
  251. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/lightcurve/crts_query.py +0 -0
  252. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/lightcurve/gaia_query.py +0 -0
  253. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/lightcurve/lightcurve_core.py +0 -0
  254. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/lightcurve/tess_query.py +0 -0
  255. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/lightcurve/ztf_query.py +0 -0
  256. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/sed/_query_info.py +0 -0
  257. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/sed/sed_core.py +0 -0
  258. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/sed/sed_query.py +0 -0
  259. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/simbad/simbad_query.py +0 -0
  260. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/spectrum/_query_info.py +0 -0
  261. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/spectrum/desi_query.py +0 -0
  262. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/spectrum/sdss_query.py +0 -0
  263. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/vizier/_query_info.py +0 -0
  264. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/queries/vizier/vizier_query.py +0 -0
  265. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/structures/Base.py +0 -0
  266. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/structures/DataSet.py +0 -0
  267. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/structures/DataTable.py +0 -0
  268. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/structures/HRD.py +0 -0
  269. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/structures/Image.py +0 -0
  270. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/structures/Lightcurve.py +0 -0
  271. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/structures/Powspec.py +0 -0
  272. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/structures/Record.py +0 -0
  273. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/structures/SED.py +0 -0
  274. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/structures/Spectrum.py +0 -0
  275. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/structures/Target.py +0 -0
  276. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/structures/methods/apply.py +0 -0
  277. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/structures/methods/binning.py +0 -0
  278. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/structures/methods/cropping.py +0 -0
  279. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/structures/methods/lightcurve/powspec.py +0 -0
  280. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/structures/methods/lightcurve/timeseries_core.py +0 -0
  281. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/structures/methods/sigma_clip.py +0 -0
  282. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/structures/methods/spectrum/fitting.py +0 -0
  283. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/structures/methods/spectrum/radial_velocities.py +0 -0
  284. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/utilities/coordinates.py +0 -0
  285. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/utilities/defaults.py +0 -0
  286. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/utilities/docstrings.py +0 -0
  287. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/utilities/file_io.py +0 -0
  288. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/utilities/mapping.py +0 -0
  289. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/utilities/misc.py +0 -0
  290. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/utilities/requests.py +0 -0
  291. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/ATK/utilities/units.py +0 -0
  292. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/AstroToolkit.egg-info/dependency_links.txt +0 -0
  293. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/AstroToolkit.egg-info/entry_points.txt +0 -0
  294. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/AstroToolkit.egg-info/top_level.txt +0 -0
  295. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/bin/atkconfig_command.py +0 -0
  296. {astrotoolkit-2.0.4 → astrotoolkit-2.0.6}/src/bin/atksurvey_command.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: AstroToolkit
3
- Version: 2.0.4
3
+ Version: 2.0.6
4
4
  Summary: A package for the gathering, plotting and analysis of astronomical data.
5
5
  Author-email: Ethan Moorfield <ethan.moorfield@outlook.com>
6
6
  License-Expression: BSD-3-Clause
@@ -16,7 +16,7 @@ Requires-Dist: astroquery
16
16
  Requires-Dist: beautifulsoup4
17
17
  Requires-Dist: bokeh
18
18
  Requires-Dist: lightkurve
19
- Requires-Dist: matplotlib
19
+ Requires-Dist: matplotlib>=3.5
20
20
  Requires-Dist: numpy
21
21
  Requires-Dist: pandas>3.0.0
22
22
  Requires-Dist: PyYAML
@@ -104,6 +104,24 @@ Changes
104
104
  - Added vizier_mirror and simbad_mirror config keys to allow the use of Vizier and SIMBAD mirrors while CDS is experiencing issues
105
105
  - Added vizier_caching option to enable/disable caching of astroquery Vizier data. Enabled by default
106
106
 
107
+
108
+ 2.0.5 Changes
109
+ =============
110
+ - Fixed dependency issue with matplotlib < 3.5
111
+ - Added path to SDSS spectral query in I/O tutorial
112
+
113
+
114
+ 2.0.6 Changes
115
+ =============
116
+ - Renamed 'fname' argument to 'path' in datapage methods (in line with other structures + documentation)
117
+ - Fixed weights order in timeseries PDM
118
+ - Added support for Gaia DR4 (gaia_dr4) light curve queries.
119
+ - Fixed an issue with opening plots using an incorrect parameter name (fname -> path)
120
+ - Fixed an issue with rebuilding docs, was previously rebuilding data files each time due to triggering of ATK version change check. This is now overriden with an environment variable
121
+
122
+
123
+
124
+
107
125
  ===============
108
126
  To-Do Pre-Paper
109
127
  ===============
@@ -164,3 +182,21 @@ improved testing
164
182
  - add annotations to ATK keywords in fits headers
165
183
  - let spectral peak fitting work in velocity-space (?)
166
184
  - image overlay DataFrame -> Table
185
+
186
+
187
+ PUSH STEPS
188
+ ==========
189
+
190
+ For a version _._._, e.g. 2.0.1:
191
+
192
+ git add . && git status
193
+ git commit -m "Release _._._"
194
+
195
+ git tag v_._._a_
196
+ git push origin v_._._a_
197
+
198
+ git tag -d v_._._a_
199
+ git push origin :refs/tags/v_._._a_
200
+
201
+ git tag v_._._
202
+ git push origin latest v_._._
@@ -12,8 +12,12 @@ from bokeh.resources import CDN
12
12
  from ATK.Config import CONFIG
13
13
  from ATK.utilities.docstrings import ATTR_DOCSTRINGS
14
14
 
15
+
15
16
  release = pkg_version("AstroToolkit").split(".dev")[0]
16
17
 
18
+ # use the saved tutorial data regardless of the ATK version that created it
19
+ os.environ["ATK_IGNORE_FILE_VERSION"] = "1"
20
+
17
21
  CONFIG["plot_settings"]["titles"] = False
18
22
  CONFIG["datapage_settings"]["grid_size"] = 150
19
23
  CONFIG["datapage_settings"]["font_size"] = 6
@@ -24,7 +24,7 @@ In this tutorial, the aforementioned **IO methods** will be demonstrated on a :c
24
24
 
25
25
  from ATK import query
26
26
 
27
- sdss_query = query("spectrum", targets=2802295461460467072, survey="sdss")
27
+ sdss_query = query("spectrum", targets=2802295461460467072, survey="sdss", path="example_spectrum.fits.gz")
28
28
  sdss_query.show()
29
29
 
30
30
  # %%
@@ -37,7 +37,7 @@ dependencies = [
37
37
  "beautifulsoup4",
38
38
  "bokeh",
39
39
  "lightkurve",
40
- "matplotlib",
40
+ "matplotlib>=3.5",
41
41
  "numpy",
42
42
  "pandas > 3.0.0",
43
43
  "PyYAML",
@@ -203,10 +203,10 @@ def open(structure: DataSet, keys: list, fname=Path | str | None, **kwargs: dict
203
203
  show(structure.figure)
204
204
 
205
205
 
206
- def open_basic(plot: figure, prefix: str, title: str, fname=Path | str | None):
206
+ def open_basic(plot: figure, prefix: str, title: str, path=Path | str | None):
207
207
  tmp_dir = os.path.expanduser("~/.AstroToolkit/cached_figures")
208
208
 
209
- if not fname:
209
+ if not path:
210
210
  os.makedirs(tmp_dir, exist_ok=True)
211
211
 
212
212
  with tempfile.NamedTemporaryFile(suffix=".html", prefix=prefix, dir=tmp_dir, delete=False) as tmpfile:
@@ -214,7 +214,7 @@ def open_basic(plot: figure, prefix: str, title: str, fname=Path | str | None):
214
214
 
215
215
  output_file(tmp_html, title=title)
216
216
  else:
217
- output_file(fname, title=title)
217
+ output_file(path, title=title)
218
218
 
219
219
  # clear cache directory of any old figures
220
220
  for f in glob.glob(os.path.join(tmp_dir, "*.html")):
@@ -1,6 +1,6 @@
1
1
  from importlib.resources import files
2
2
 
3
- import matplotlib.cm as cm
3
+ from matplotlib import colormaps
4
4
  import numpy as np
5
5
  import pandas as pd
6
6
  from astropy.io import fits
@@ -38,7 +38,7 @@ def gaussian_density_colours(x: np.ndarray, y: np.ndarray, cmap, as_hex: bool =
38
38
 
39
39
 
40
40
  def get_sub_cmap(name, vmin=0.0, vmax=1.0, n=256):
41
- base = cm.get_cmap(name)
41
+ base = colormaps[name]
42
42
  colors = base(np.linspace(vmin, vmax, n))
43
43
 
44
44
  return LinearSegmentedColormap.from_list(f"{name}_sub_{vmin}_{vmax}", colors)
@@ -1,6 +1,7 @@
1
1
  BAND_MAP = {
2
2
  "ZTF - ``ztf``": ["``g``", "``r``", "``i``"],
3
3
  "Gaia - ``gaia``": ["``g``", "``bp``", "``rp``"],
4
+ "Gaia DR4 - ``gaia_dr4``": ["``g``", "``bp``", "``rp``"],
4
5
  "ATLAS - ``atlas``": ["``c``", "``o``"],
5
6
  "ASAS-SN - ``asassn``": ["``g``", "``v``"],
6
7
  "TESS - ``tess``": ["``Tmag``"],
@@ -18,10 +18,8 @@ def query(target: Target, **kwargs: dict):
18
18
  radius = kwargs["radius"].to(u.deg).value
19
19
 
20
20
  try:
21
- data = client.cone_search(
22
- ra_deg=target.coords.ra.value, dec_deg=target.coords.dec.value, radius=radius, catalog="master_list", download=True
23
- )
24
- except CONNECTION_ERRORS:
21
+ data = client.cone_search(ra_deg=target.coords.ra.value, dec_deg=target.coords.dec.value, radius=radius, catalog="master_list", download=True)
22
+ except CONNECTION_ERRORS + (ValueError,):
25
23
  return RETURNS.EXCEPTION
26
24
 
27
25
  if data is None:
@@ -0,0 +1,279 @@
1
+ import time
2
+
3
+ import astropy.units as u
4
+ import numpy as np
5
+ import pandas as pd
6
+ from astropy.time import Time
7
+ from astroquery.gaia import Gaia
8
+ from astroquery import log as astroquery_log
9
+ import re
10
+ import warnings
11
+
12
+ from ...structures.Target import Target
13
+ from ...utilities.defaults import RETURNS
14
+ from ...utilities.misc import suppress_stdout
15
+ from ...utilities.defaults import CONNECTION_ERRORS, RETURNS
16
+ from .lightcurve_core import get_lightcurves
17
+
18
+ DEBUG = False
19
+
20
+ # DR4 tables used to find sources and to map Gaia DR3 source IDs to DR4
21
+ SOURCE_TABLE = "gaiadr4.all_source_astrometry"
22
+ NEIGHBOURHOOD_TABLE = "gaiadr4.dr3_neighbourhood"
23
+ DATA_RELEASE = "Gaia DR4"
24
+
25
+ # maximum number of sources per DataLink request for anonymous and authenticated users
26
+ CHUNK_SIZE_ANONYMOUS = 50
27
+ CHUNK_SIZE_AUTHENTICATED = 5000
28
+
29
+ # retry behaviour when the archive is busy (delay in seconds, doubled after each attempt)
30
+ RETRY_CODES = ("429", "500", "502", "503", "504")
31
+ MAX_ATTEMPTS = 4
32
+ RETRY_DELAY = 5
33
+
34
+ # Gaia epoch times are BJD (TCB) - 2455197.5
35
+ TIME_OFFSET = 2455197.5
36
+
37
+ # minimum signal-to-noise ratio of an epoch when filtering
38
+ MIN_SNR = 3
39
+
40
+ # (time, mag, flux, flux error) columns of each band in the epoch photometry tables
41
+ BAND_COLUMNS = {
42
+ "g": ("g_obs_time", "g_mag", "g_flux", "g_flux_error"),
43
+ "bp": ("bp_obs_time", "bp_mag", "bp_flux", "bp_flux_error"),
44
+ "rp": ("rp_obs_time", "rp_mag", "rp_flux", "rp_flux_error"),
45
+ }
46
+
47
+ # source ID at the end of each DataLink file name (e.g. "EPOCH_PHOTOMETRY_Gaia_DR4_<source_id>.xml")
48
+ SOURCE_ID_PATTERN = re.compile(r"(\d+)(?:\.\w+)*$")
49
+
50
+ ARCHIVE_CHECK_QUERY = f"SELECT TOP 1 source_id FROM {SOURCE_TABLE}"
51
+
52
+ # Gaia archive username of the current login session (None when anonymous)
53
+ _logged_in_user = None
54
+
55
+
56
+ class InvalidCredentialsError(Exception):
57
+ pass
58
+
59
+
60
+ def report_exception(e: Exception) -> RETURNS:
61
+ # report archive problems in the same way as send_request, then return the standard exception marker
62
+ warnings.warn("Note: experiencing issues with gaia_dr4. Details:")
63
+ print(e)
64
+
65
+ return RETURNS.EXCEPTION
66
+
67
+
68
+ def login(username: str, password: str) -> None:
69
+ global _logged_in_user
70
+
71
+ # the astroquery Gaia session persists, so only log in again for a different user
72
+ if username == _logged_in_user:
73
+ return
74
+
75
+ # astroquery logs failed logins as errors instead of raising, so capture its log messages
76
+ with astroquery_log.log_to_list() as messages:
77
+ with_retries(Gaia.login, user=username, password=password)
78
+
79
+ errors = [record.getMessage() for record in messages if record.levelname == "ERROR"]
80
+
81
+ if errors:
82
+ # the data server is only contacted after the TAP server accepts the credentials, so this is an archive problem
83
+ if any("data server" in error for error in errors):
84
+ raise ConnectionError(f"Gaia archive login failed: {'; '.join(errors)}")
85
+
86
+ # a rejected TAP login is either bad credentials or a busy archive, so check the archive is responding
87
+ # (if this query fails too, its exception propagates as an archive error)
88
+ with_retries(Gaia.launch_job, ARCHIVE_CHECK_QUERY)
89
+
90
+ raise InvalidCredentialsError("Gaia archive login failed. Please check your credentials and try again.")
91
+
92
+ _logged_in_user = username
93
+
94
+
95
+ def with_retries(function, *args, **kwargs):
96
+ for attempt in range(1, MAX_ATTEMPTS + 1):
97
+ try:
98
+ if DEBUG:
99
+ return function(*args, **kwargs)
100
+ else:
101
+ with suppress_stdout():
102
+ return function(*args, **kwargs)
103
+
104
+ except Exception as e:
105
+ # retry when the archive reports it is busy or the connection fails, and give up after the final attempt
106
+ connection_error = isinstance(e, CONNECTION_ERRORS) or isinstance(e, (ConnectionError, TimeoutError))
107
+ busy = connection_error or any(code in str(e) for code in RETRY_CODES)
108
+ if not busy or attempt == MAX_ATTEMPTS:
109
+ raise
110
+
111
+ time.sleep(RETRY_DELAY * 2 ** (attempt - 1))
112
+
113
+
114
+ def to_float(column: pd.Series) -> np.ndarray:
115
+ return pd.to_numeric(column, errors="coerce").to_numpy(dtype=float, na_value=np.nan)
116
+
117
+
118
+ def match_dr3_source(dr3_source_id: int) -> pd.DataFrame:
119
+ # DR3 and DR4 source IDs are not necessarily interchangeable, so take the closest DR4 counterpart
120
+ adql = f"SELECT TOP 1 n.source_id, a.ra, a.dec FROM {NEIGHBOURHOOD_TABLE} AS n JOIN {SOURCE_TABLE} AS a ON a.source_id = n.source_id WHERE n.dr3_source_id = {dr3_source_id} ORDER BY n.angular_distance ASC"
121
+ job = with_retries(Gaia.launch_job, adql)
122
+
123
+ return job.get_results().to_pandas()
124
+
125
+
126
+ def cone_search(target: Target, radius: float) -> pd.DataFrame:
127
+ # synchronous query, so no asynchronous job is queued on the archive
128
+ adql = f"SELECT source_id, ra, dec FROM {SOURCE_TABLE} WHERE 1 = CONTAINS(POINT(ra, dec), CIRCLE({target.coords.ra.deg}, {target.coords.dec.deg}, {radius}))"
129
+ job = with_retries(Gaia.launch_job, adql)
130
+
131
+ return job.get_results().to_pandas()
132
+
133
+
134
+ def reshape_epoch_photometry(lc: pd.DataFrame, source_id: int, apply_filter: bool) -> pd.DataFrame:
135
+ bands = []
136
+
137
+ # each row is one transit with every band in its own columns, so split into one row per band epoch
138
+ for band, (time_col, mag_col, flux_col, flux_err_col) in BAND_COLUMNS.items():
139
+ if time_col not in lc:
140
+ continue
141
+
142
+ flux = to_float(lc[flux_col])
143
+ flux_err = to_float(lc[flux_err_col])
144
+
145
+ # calculate magnitude errors from fluxes and errors
146
+ valid = (flux > 0) & (flux_err > 0)
147
+ mag_err = np.full(len(flux), np.nan)
148
+ mag_err[valid] = (2.5 / np.log(10)) * (flux_err[valid] / flux[valid])
149
+
150
+ band_data = pd.DataFrame(
151
+ {
152
+ "band": band,
153
+ "time": to_float(lc[time_col]),
154
+ "mag": to_float(lc[mag_col]),
155
+ "mag_err": mag_err,
156
+ "id": source_id,
157
+ }
158
+ )
159
+
160
+ # optionally remove epochs that were rejected or have a low signal-to-noise ratio
161
+ if apply_filter:
162
+ with np.errstate(divide="ignore", invalid="ignore"):
163
+ snr = flux / flux_err
164
+ keep = valid & (snr > MIN_SNR)
165
+ band_data = band_data[keep]
166
+
167
+ bands.append(band_data)
168
+
169
+ if not bands:
170
+ return pd.DataFrame()
171
+
172
+ return pd.concat(bands, ignore_index=True)
173
+
174
+
175
+ def load_epoch_photometry(source_ids: list, chunk_size: int, apply_filter: bool) -> pd.DataFrame:
176
+ lcs = []
177
+
178
+ # DataLink limits how many sources can be requested at once, so request in chunks
179
+ for i in range(0, len(source_ids), chunk_size):
180
+ chunk = source_ids[i : i + chunk_size]
181
+
182
+ datalink = with_retries(
183
+ Gaia.load_data,
184
+ ids=chunk,
185
+ data_release=DATA_RELEASE,
186
+ retrieval_type="EPOCH_PHOTOMETRY",
187
+ data_structure="DATAMODEL_STANDARD",
188
+ format="votable",
189
+ )
190
+
191
+ # astroquery >= 0.4.12 may also return the path of the downloaded archive
192
+ if isinstance(datalink, tuple):
193
+ datalink = datalink[0]
194
+
195
+ # one file per source, named "EPOCH_PHOTOMETRY_Gaia_DR4_<source_id>.xml", so the ID comes from the name
196
+ for file_name, products in datalink.items():
197
+ # an unexpected naming scheme is raised rather than skipped, so it isn't reported as "no data"
198
+ match = SOURCE_ID_PATTERN.search(file_name)
199
+ if match is None:
200
+ raise ValueError(f"Could not read a source ID from DataLink file name '{file_name}'.")
201
+ source_id = int(match.group(1))
202
+
203
+ for product in products:
204
+ table = product.to_table(use_names_over_ids=True) if hasattr(product, "to_table") else product
205
+
206
+ lc = reshape_epoch_photometry(table.to_pandas(), source_id, apply_filter)
207
+ if not lc.empty:
208
+ lcs.append(lc)
209
+
210
+ if not lcs:
211
+ return pd.DataFrame()
212
+
213
+ return pd.concat(lcs, ignore_index=True)
214
+
215
+
216
+ def query(target: Target, **kwargs: dict):
217
+ """
218
+ Performs a Gaia DR4 light curve query using astroquery.gaia
219
+ """
220
+
221
+ apply_filter = bool(kwargs.get("filter"))
222
+
223
+ username = kwargs.get("username")
224
+ password = kwargs.get("password")
225
+
226
+ # credentials are optional, but both are needed if either is provided
227
+ if bool(username) != bool(password):
228
+ raise ValueError("Both 'username=...' and 'password=...' are required to log in to the Gaia archive (https://www.cosmos.esa.int/web/gaia-users/register).")
229
+
230
+ # logged-in users get larger DataLink limits and their own job queue
231
+ if username:
232
+ try:
233
+ login(username, password)
234
+ except InvalidCredentialsError:
235
+ raise
236
+ except Exception as e:
237
+ return report_exception(e)
238
+
239
+ chunk_size = CHUNK_SIZE_AUTHENTICATED if _logged_in_user else CHUNK_SIZE_ANONYMOUS
240
+
241
+ try:
242
+ # targets created from a Gaia DR3 source ID are matched to their DR4 counterpart
243
+ sources = pd.DataFrame()
244
+ if target.identifier and target.survey == "gaia":
245
+ sources = match_dr3_source(target.identifier)
246
+
247
+ # otherwise (or if there is no DR4 counterpart) search around the target position
248
+ if sources.empty:
249
+ sources = cone_search(target, kwargs["radius"].to(u.deg).value)
250
+ except Exception as e:
251
+ return report_exception(e)
252
+
253
+ if sources.empty:
254
+ return RETURNS.NULL
255
+
256
+ # download the epoch photometry for every source found
257
+ source_ids = [int(source_id) for source_id in sources["source_id"]]
258
+ try:
259
+ lc_data = load_epoch_photometry(source_ids, chunk_size, apply_filter)
260
+ except Exception as e:
261
+ return report_exception(e)
262
+
263
+ if lc_data.empty:
264
+ return RETURNS.NULL
265
+
266
+ # epoch photometry has no per-epoch positions, so attach the catalogue position of each source
267
+ lc_data = lc_data.merge(sources.rename(columns={"source_id": "id"}), on="id", how="inner")
268
+
269
+ # remove epochs with no time or magnitude, then convert time to MJD
270
+ lc_data = lc_data.dropna(subset=["time", "mag"])
271
+ if lc_data.empty:
272
+ return RETURNS.NULL
273
+
274
+ lc_data["mjd"] = Time(lc_data["time"] + TIME_OFFSET, format="jd").mjd
275
+
276
+ lcs = get_lightcurves("gaia_dr4", target, kwargs["radius"], lc_data, kwargs.get("split", False))
277
+
278
+ return lcs
279
+
@@ -195,19 +195,19 @@ def recreate_struct(kind: str, targeting: list[Target], **arguments) -> DataSet:
195
195
  structure = read(arguments["path"])
196
196
 
197
197
  primary_header = fits.open(arguments["path"])[0].header
198
+
199
+ # used in tutorials to avoid overwriting with every new version
200
+ ignore_version = os.environ.get("ATK_IGNORE_FILE_VERSION") == "1"
201
+
198
202
  if not primary_header.get("ATK_VER"):
199
203
  warnings.warn("Could not determine ATK version from local file.")
200
204
  else:
201
- if primary_header["ATK_VER"] != get_package_version():
202
- warnings.warn(
203
- f"ATK version has changed since file '{arguments['path']}' was generated. Query will be re-run and local file will be overwritten."
204
- )
205
+ if primary_header["ATK_VER"] != get_package_version() and not ignore_version:
206
+ warnings.warn(f"ATK version has changed since file '{arguments['path']}' was generated. Query will be re-run and local file will be overwritten.")
205
207
  return None
206
208
 
207
209
  if primary_header["ATK_EXCEPTION"]:
208
- warnings.warn(
209
- f"Exception was encountered during data retrieval for file '{arguments['path']}'. Query will be re-run and local file will be overwritten."
210
- )
210
+ warnings.warn(f"Exception was encountered during data retrieval for file '{arguments['path']}'. Query will be re-run and local file will be overwritten.")
211
211
  return None
212
212
 
213
213
  current_key = make_cache_key(kind, targeting, arguments)