AstroToolkit 1.6.3__tar.gz → 1.7.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. astrotoolkit-1.7.0/MANIFEST.in +3 -0
  2. {astrotoolkit-1.6.3/src/AstroToolkit.egg-info → astrotoolkit-1.7.0}/PKG-INFO +25 -5
  3. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/README.md +22 -3
  4. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/pyproject.toml +56 -48
  5. astrotoolkit-1.7.0/src/AstroToolkit/Aliases.py +110 -0
  6. astrotoolkit-1.7.0/src/AstroToolkit/Config.py +93 -0
  7. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/src/AstroToolkit/Configuration/baseconfig.py +168 -174
  8. astrotoolkit-1.7.0/src/AstroToolkit/Configuration/catalogue_setup.py +117 -0
  9. astrotoolkit-1.7.0/src/AstroToolkit/Configuration/epochs.py +127 -0
  10. astrotoolkit-1.7.0/src/AstroToolkit/Configuration/overlays.py +139 -0
  11. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/src/AstroToolkit/Data/bin_lightcurves.py +94 -110
  12. astrotoolkit-1.7.0/src/AstroToolkit/Data/bulkquery.py +64 -0
  13. astrotoolkit-1.7.0/src/AstroToolkit/Data/crop_lightcurves.py +63 -0
  14. astrotoolkit-1.7.0/src/AstroToolkit/Data/dataquery.py +237 -0
  15. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/src/AstroToolkit/Data/fetch_crts.py +112 -112
  16. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/src/AstroToolkit/Data/fetch_tess.py +75 -75
  17. astrotoolkit-1.7.0/src/AstroToolkit/Data/hrdquery.py +165 -0
  18. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/src/AstroToolkit/Data/imageoverlay.py +360 -279
  19. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/src/AstroToolkit/Data/imagequery.py +370 -416
  20. astrotoolkit-1.7.0/src/AstroToolkit/Data/lightcurvequery.py +851 -0
  21. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/src/AstroToolkit/Data/reddeningquery.py +270 -319
  22. astrotoolkit-1.7.0/src/AstroToolkit/Data/sedquery.py +212 -0
  23. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/src/AstroToolkit/Data/sigmaclip.py +89 -112
  24. astrotoolkit-1.7.0/src/AstroToolkit/Data/simbad_query.py +36 -0
  25. astrotoolkit-1.7.0/src/AstroToolkit/Data/spectrumquery.py +155 -0
  26. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/src/AstroToolkit/DatapageElements/datapage_buttons.py +64 -70
  27. astrotoolkit-1.7.0/src/AstroToolkit/DatapageElements/metadata_table.py +127 -0
  28. astrotoolkit-1.7.0/src/AstroToolkit/Datapages.py +251 -0
  29. astrotoolkit-1.7.0/src/AstroToolkit/Epochs.py +114 -0
  30. astrotoolkit-1.7.0/src/AstroToolkit/Examples/AR_Sco_TNT.txt +3458 -0
  31. astrotoolkit-1.7.0/src/AstroToolkit/Examples/datapage_creation.py +59 -0
  32. astrotoolkit-1.7.0/src/AstroToolkit/Examples/datapage_hrd.fits +0 -0
  33. astrotoolkit-1.7.0/src/AstroToolkit/Examples/datapage_image.fits +144 -0
  34. astrotoolkit-1.7.0/src/AstroToolkit/Examples/datapage_lightcurve.fits +0 -0
  35. astrotoolkit-1.7.0/src/AstroToolkit/Examples/datapage_sed.fits +0 -0
  36. astrotoolkit-1.7.0/src/AstroToolkit/Examples/datapage_spectrum.fits +0 -0
  37. astrotoolkit-1.7.0/src/AstroToolkit/Examples/examples_utilities.py +26 -0
  38. astrotoolkit-1.7.0/src/AstroToolkit/Examples/external_data.py +40 -0
  39. astrotoolkit-1.7.0/src/AstroToolkit/Examples/fetching_data.py +8 -0
  40. astrotoolkit-1.7.0/src/AstroToolkit/Examples/image_overlays.fits +2618 -0
  41. astrotoolkit-1.7.0/src/AstroToolkit/Examples/image_plotting.py +24 -0
  42. astrotoolkit-1.7.0/src/AstroToolkit/Examples/lightcurve.fits +0 -0
  43. astrotoolkit-1.7.0/src/AstroToolkit/Examples/lightcurve_plotting.py +43 -0
  44. astrotoolkit-1.7.0/src/AstroToolkit/Examples/loadExamples.py +11 -0
  45. astrotoolkit-1.7.0/src/AstroToolkit/Examples/local_files.py +18 -0
  46. astrotoolkit-1.7.0/src/AstroToolkit/Examples/test_data.fits +3 -0
  47. astrotoolkit-1.7.0/src/AstroToolkit/Examples/test_lightcurve.fits +0 -0
  48. astrotoolkit-1.7.0/src/AstroToolkit/Examples/user_defined_overlay.py +16 -0
  49. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/src/AstroToolkit/FileHandling/file_naming.py +39 -42
  50. astrotoolkit-1.7.0/src/AstroToolkit/FileHandling/file_reading.py +277 -0
  51. astrotoolkit-1.7.0/src/AstroToolkit/FileHandling/file_writing.py +302 -0
  52. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/src/AstroToolkit/Gui.py +874 -1000
  53. astrotoolkit-1.7.0/src/AstroToolkit/Input/input_validation.py +339 -0
  54. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/src/AstroToolkit/Misc/coordinate_conversions.py +23 -23
  55. astrotoolkit-1.7.0/src/AstroToolkit/Misc/estimate_spectral_type.py +60 -0
  56. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/src/AstroToolkit/Misc/fitsfiles.py +34 -34
  57. astrotoolkit-1.7.0/src/AstroToolkit/Misc/grid.py +230 -0
  58. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/src/AstroToolkit/Misc/identifier_generation.py +55 -55
  59. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/src/AstroToolkit/Misc/pmcorrection.py +138 -174
  60. astrotoolkit-1.7.0/src/AstroToolkit/Misc/rename_headers.py +246 -0
  61. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/src/AstroToolkit/Misc/search.py +55 -59
  62. astrotoolkit-1.7.0/src/AstroToolkit/Models.py +285 -0
  63. astrotoolkit-1.7.0/src/AstroToolkit/Overlays.py +86 -0
  64. astrotoolkit-1.7.0/src/AstroToolkit/PackageInfo.py +309 -0
  65. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/src/AstroToolkit/Plotting/hrdplotting.py +124 -124
  66. astrotoolkit-1.7.0/src/AstroToolkit/Plotting/imageplotting.py +215 -0
  67. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/src/AstroToolkit/Plotting/lightcurveplotting.py +153 -191
  68. astrotoolkit-1.7.0/src/AstroToolkit/Plotting/plotting_map.py +151 -0
  69. astrotoolkit-1.7.0/src/AstroToolkit/Plotting/sedplotting.py +120 -0
  70. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/src/AstroToolkit/Plotting/spectrumplotting.py +147 -132
  71. {astrotoolkit-1.6.3/src/AstroToolkit/Data → astrotoolkit-1.7.0/src/AstroToolkit/StructureMethods}/data_printing.py +52 -22
  72. astrotoolkit-1.7.0/src/AstroToolkit/StructureMethods/data_saving.py +24 -0
  73. astrotoolkit-1.7.0/src/AstroToolkit/StructureMethods/method_definitions.py +191 -0
  74. astrotoolkit-1.7.0/src/AstroToolkit/StructureMethods/plot_exporting.py +36 -0
  75. astrotoolkit-1.7.0/src/AstroToolkit/StructureMethods/plot_saving.py +43 -0
  76. astrotoolkit-1.7.0/src/AstroToolkit/StructureMethods/plot_showing.py +39 -0
  77. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/src/AstroToolkit/Timeseries/lomb_scargle.py +234 -243
  78. astrotoolkit-1.7.0/src/AstroToolkit/Timeseries/timeseries_formatting.py +35 -0
  79. astrotoolkit-1.7.0/src/AstroToolkit/Tools.py +670 -0
  80. astrotoolkit-1.7.0/src/AstroToolkit/Utility.py +55 -0
  81. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0/src/AstroToolkit.egg-info}/PKG-INFO +25 -5
  82. astrotoolkit-1.7.0/src/AstroToolkit.egg-info/SOURCES.txt +96 -0
  83. astrotoolkit-1.7.0/src/AstroToolkit.egg-info/entry_points.txt +10 -0
  84. astrotoolkit-1.7.0/src/bin/atkalias_command.py +33 -0
  85. astrotoolkit-1.7.0/src/bin/atkconfig_command.py +26 -0
  86. astrotoolkit-1.7.0/src/bin/atkconv_command.py +26 -0
  87. astrotoolkit-1.7.0/src/bin/atkepoch_command.py +38 -0
  88. astrotoolkit-1.7.0/src/bin/atkoverlay_command.py +56 -0
  89. astrotoolkit-1.7.0/src/bin/atkquery_command.py +171 -0
  90. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/src/bin/atkread_command.py +32 -26
  91. astrotoolkit-1.7.0/src/bin/atksearch_command.py +88 -0
  92. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/src/bin/opengui_command.py +5 -5
  93. astrotoolkit-1.6.3/MANIFEST.in +0 -7
  94. astrotoolkit-1.6.3/src/AstroToolkit/Config.py +0 -74
  95. astrotoolkit-1.6.3/src/AstroToolkit/Data/crop_lightcurves.py +0 -110
  96. astrotoolkit-1.6.3/src/AstroToolkit/Data/data_saving.py +0 -28
  97. astrotoolkit-1.6.3/src/AstroToolkit/Data/dataquery.py +0 -625
  98. astrotoolkit-1.6.3/src/AstroToolkit/Data/hrdquery.py +0 -172
  99. astrotoolkit-1.6.3/src/AstroToolkit/Data/lightcurvequery.py +0 -1082
  100. astrotoolkit-1.6.3/src/AstroToolkit/Data/photquery.py +0 -181
  101. astrotoolkit-1.6.3/src/AstroToolkit/Data/rename_headers.py +0 -237
  102. astrotoolkit-1.6.3/src/AstroToolkit/Data/sedquery.py +0 -225
  103. astrotoolkit-1.6.3/src/AstroToolkit/Data/spectrumquery.py +0 -184
  104. astrotoolkit-1.6.3/src/AstroToolkit/DatapageElements/metadata_table.py +0 -121
  105. astrotoolkit-1.6.3/src/AstroToolkit/Datapages.py +0 -211
  106. astrotoolkit-1.6.3/src/AstroToolkit/Examples/datapage.py +0 -81
  107. astrotoolkit-1.6.3/src/AstroToolkit/Examples/hrd.py +0 -10
  108. astrotoolkit-1.6.3/src/AstroToolkit/Examples/image.py +0 -47
  109. astrotoolkit-1.6.3/src/AstroToolkit/Examples/lightcurve.py +0 -13
  110. astrotoolkit-1.6.3/src/AstroToolkit/Examples/localfiles.py +0 -13
  111. astrotoolkit-1.6.3/src/AstroToolkit/Examples/pyaov.py +0 -4
  112. astrotoolkit-1.6.3/src/AstroToolkit/Examples/sed.py +0 -10
  113. astrotoolkit-1.6.3/src/AstroToolkit/Examples/spectrum.py +0 -8
  114. astrotoolkit-1.6.3/src/AstroToolkit/Examples/timeseries.py +0 -16
  115. astrotoolkit-1.6.3/src/AstroToolkit/FileHandling/file_reading.py +0 -352
  116. astrotoolkit-1.6.3/src/AstroToolkit/FileHandling/file_writing.py +0 -211
  117. astrotoolkit-1.6.3/src/AstroToolkit/Input/input_validation.py +0 -679
  118. astrotoolkit-1.6.3/src/AstroToolkit/Misc/gridsetup.py +0 -95
  119. astrotoolkit-1.6.3/src/AstroToolkit/Models.py +0 -121
  120. astrotoolkit-1.6.3/src/AstroToolkit/Plotting/imageplotting.py +0 -122
  121. astrotoolkit-1.6.3/src/AstroToolkit/Plotting/plotmap.py +0 -223
  122. astrotoolkit-1.6.3/src/AstroToolkit/Plotting/sedplotting.py +0 -114
  123. astrotoolkit-1.6.3/src/AstroToolkit/Setup.py +0 -162
  124. astrotoolkit-1.6.3/src/AstroToolkit/Timeseries/pyaov/README/Linux_README.txt +0 -35
  125. astrotoolkit-1.6.3/src/AstroToolkit/Timeseries/pyaov/README/Windows_README.txt +0 -50
  126. astrotoolkit-1.6.3/src/AstroToolkit/Timeseries/pyaov/README/aov_README.pdf +0 -0
  127. astrotoolkit-1.6.3/src/AstroToolkit/Timeseries/pyaov/aov.f90 +0 -888
  128. astrotoolkit-1.6.3/src/AstroToolkit/Timeseries/pyaov/aovconst.f90 +0 -14
  129. astrotoolkit-1.6.3/src/AstroToolkit/Timeseries/pyaov/aovgui.py +0 -872
  130. astrotoolkit-1.6.3/src/AstroToolkit/Timeseries/pyaov/aovsub.f90 +0 -940
  131. astrotoolkit-1.6.3/src/AstroToolkit/Timeseries/pyaov/aovwrapper.f90 +0 -221
  132. astrotoolkit-1.6.3/src/AstroToolkit/Timeseries/pyaov/build.sh +0 -28
  133. astrotoolkit-1.6.3/src/AstroToolkit/Timeseries/pyaov/buildwin.bat +0 -24
  134. astrotoolkit-1.6.3/src/AstroToolkit/Timeseries/pyaov/pyaov.py +0 -846
  135. astrotoolkit-1.6.3/src/AstroToolkit/Timeseries/pyaov/pyaov_interface.py +0 -996
  136. astrotoolkit-1.6.3/src/AstroToolkit/Timeseries/timeseries_formatting.py +0 -41
  137. astrotoolkit-1.6.3/src/AstroToolkit/Tools.py +0 -700
  138. astrotoolkit-1.6.3/src/AstroToolkit.egg-info/SOURCES.txt +0 -81
  139. astrotoolkit-1.6.3/src/AstroToolkit.egg-info/entry_points.txt +0 -6
  140. astrotoolkit-1.6.3/src/bin/atkquery_command.py +0 -156
  141. astrotoolkit-1.6.3/src/bin/tsbuild_command.py +0 -5
  142. astrotoolkit-1.6.3/src/bin/tsguide_command.py +0 -5
  143. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/LICENSE +0 -0
  144. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/setup.cfg +0 -0
  145. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/src/AstroToolkit/Plotting/backdrop_hrd_allmags.fits +0 -0
  146. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/src/AstroToolkit.egg-info/dependency_links.txt +0 -0
  147. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/src/AstroToolkit.egg-info/requires.txt +0 -0
  148. {astrotoolkit-1.6.3 → astrotoolkit-1.7.0}/src/AstroToolkit.egg-info/top_level.txt +0 -0
@@ -0,0 +1,3 @@
1
+ include src/AstroToolkit/Examples/*.fits
2
+ include src/AstroToolkit/Examples/*.txt
3
+ include src/AstroToolkit/Plotting/*.fits
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: AstroToolkit
3
- Version: 1.6.3
3
+ Version: 1.7.0
4
4
  Summary: A package for the gathering, plotting and analysis of astronomical data.
5
5
  Author-email: Ethan Moorfield <ethan.moorfield@hotmail.co.uk>
6
6
  Project-URL: Homepage, https://github.com/WD-planets/AstroToolkit
@@ -25,6 +25,7 @@ Requires-Dist: selenium==4.21.0
25
25
  Requires-Dist: lightkurve==2.4.2
26
26
  Requires-Dist: PyQt5==5.15.10
27
27
  Requires-Dist: numba==0.60.0
28
+ Dynamic: license-file
28
29
 
29
30
  AstroToolkit
30
31
  ============
@@ -38,7 +39,6 @@ Features
38
39
 
39
40
  * A GUI through which most of the package can be utilised
40
41
  * Command-line integration
41
- * Scripting integration for greater control
42
42
  * Proper motion correction through Gaia, utilised across the entire package
43
43
  * Light curve, spectral energy distribution, spectrum and image queries from a wide range of surveys
44
44
  * Gaia HRD queries for any Gaia sources
@@ -46,7 +46,7 @@ Features
46
46
  * Data queries from any [Vizier](https://vizier.cds.unistra.fr/) survey, with many commonly used surveys built-in
47
47
  * Reddening queries from [Stilism](https://stilism.obspm.fr/) and [GDRE](https://irsa.ipac.caltech.edu/applications/DUST/)
48
48
  * Data analysis tools:
49
- * Timeseries analysis using a variety of methods (Lomb-Scargle, AOVMHW, ...)
49
+ * Timeseries analysis
50
50
  * Light curve binning, clipping, phase folding and sigma-clipping
51
51
  * Image detection and tracer overlays
52
52
  * Spectral band highlighting
@@ -60,7 +60,27 @@ Features
60
60
 
61
61
  <br>
62
62
 
63
+ Acknowledgements
64
+ ----------------
65
+ This project has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (Grant agreement No. 101020057).
66
+
67
+ <p align="center">
68
+ <picture>
69
+ <source media="(prefers-color-scheme: dark)" srcset="./docs/images/erc_logo_dark.png">
70
+ <source media="(prefers-color-scheme: light)" srcset="./docs/images/erc_logo_light.png">
71
+ <img src="./images/erc_logo_dark.png" width="200"/>
72
+ </picture>
73
+ </p>
74
+
75
+ <br>
76
+
77
+ I would like to give thanks to Dr. Keith Inight for his guidance at various stages of the package's development.
78
+
79
+ I would also like to give thanks to Prof. Boris Gänsicke for his assistance and guidance, and for supporting the package's development.
80
+
81
+ <br>
82
+
63
83
  Documentation
64
84
  -------------
65
85
 
66
- Full documentation for the package can be found [here](https://astrotoolkit.readthedocs.io/en/latest/).
86
+ Full documentation for the package can be found [here](https://astrotoolkit.readthedocs.io/en/latest/).
@@ -10,7 +10,6 @@ Features
10
10
 
11
11
  * A GUI through which most of the package can be utilised
12
12
  * Command-line integration
13
- * Scripting integration for greater control
14
13
  * Proper motion correction through Gaia, utilised across the entire package
15
14
  * Light curve, spectral energy distribution, spectrum and image queries from a wide range of surveys
16
15
  * Gaia HRD queries for any Gaia sources
@@ -18,7 +17,7 @@ Features
18
17
  * Data queries from any [Vizier](https://vizier.cds.unistra.fr/) survey, with many commonly used surveys built-in
19
18
  * Reddening queries from [Stilism](https://stilism.obspm.fr/) and [GDRE](https://irsa.ipac.caltech.edu/applications/DUST/)
20
19
  * Data analysis tools:
21
- * Timeseries analysis using a variety of methods (Lomb-Scargle, AOVMHW, ...)
20
+ * Timeseries analysis
22
21
  * Light curve binning, clipping, phase folding and sigma-clipping
23
22
  * Image detection and tracer overlays
24
23
  * Spectral band highlighting
@@ -32,7 +31,27 @@ Features
32
31
 
33
32
  <br>
34
33
 
34
+ Acknowledgements
35
+ ----------------
36
+ This project has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (Grant agreement No. 101020057).
37
+
38
+ <p align="center">
39
+ <picture>
40
+ <source media="(prefers-color-scheme: dark)" srcset="./docs/images/erc_logo_dark.png">
41
+ <source media="(prefers-color-scheme: light)" srcset="./docs/images/erc_logo_light.png">
42
+ <img src="./images/erc_logo_dark.png" width="200"/>
43
+ </picture>
44
+ </p>
45
+
46
+ <br>
47
+
48
+ I would like to give thanks to Dr. Keith Inight for his guidance at various stages of the package's development.
49
+
50
+ I would also like to give thanks to Prof. Boris Gänsicke for his assistance and guidance, and for supporting the package's development.
51
+
52
+ <br>
53
+
35
54
  Documentation
36
55
  -------------
37
56
 
38
- Full documentation for the package can be found [here](https://astrotoolkit.readthedocs.io/en/latest/).
57
+ Full documentation for the package can be found [here](https://astrotoolkit.readthedocs.io/en/latest/).
@@ -1,48 +1,56 @@
1
- [build-system]
2
- requires = ["setuptools"]
3
- build-backend = "setuptools.build_meta"
4
-
5
- [tool.setuptools]
6
- include-package-data = true
7
-
8
- [project]
9
- name = "AstroToolkit"
10
- version = "1.6.3"
11
- authors = [
12
- { name="Ethan Moorfield", email="ethan.moorfield@hotmail.co.uk"},
13
- ]
14
- description = "A package for the gathering, plotting and analysis of astronomical data."
15
- readme = "README.md"
16
- requires-python = ">=3.11"
17
- classifiers = [
18
- "Programming Language :: Python :: 3",
19
- "Operating System :: OS Independent",
20
- ]
21
- dependencies = [
22
- "astropy==6.0.1",
23
- "astroquery==0.4.7",
24
- "bokeh==3.4.1",
25
- "cmasher==1.8.0",
26
- "matplotlib==3.8.4",
27
- "importlib_resources==6.4.0",
28
- "numpy==1.26.4",
29
- "pandas==2.2.2",
30
- "Requests==2.31.0",
31
- "beautifulsoup4==4.12.3",
32
- "scipy==1.13.0",
33
- "selenium==4.21.0",
34
- "lightkurve==2.4.2",
35
- "PyQt5==5.15.10",
36
- "numba==0.60.0",
37
- ]
38
-
39
- [project.urls]
40
- Homepage = "https://github.com/WD-planets/AstroToolkit"
41
- Issues = "https://github.com/WD-planets/AstroToolkit/issues"
42
-
43
- [project.scripts]
44
- ATKgui = "bin.opengui_command:main"
45
- ATKtsbuild = "bin.tsbuild_command:main"
46
- ATKtsguide = "bin.tsguide_command:main"
47
- ATKquery = "bin.atkquery_command:main"
48
- ATKread = "bin.atkread_command:main"
1
+ [build-system]
2
+ requires = ["setuptools"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [tool.setuptools]
6
+ include-package-data = true
7
+
8
+ [tool.black]
9
+ line-length=120
10
+ skip-magic-trailing-comma = true
11
+
12
+ [project]
13
+ name = "AstroToolkit"
14
+ version = "1.7.0"
15
+ authors = [
16
+ { name="Ethan Moorfield", email="ethan.moorfield@hotmail.co.uk"},
17
+ ]
18
+ description = "A package for the gathering, plotting and analysis of astronomical data."
19
+ readme = "README.md"
20
+ requires-python = ">=3.11"
21
+ classifiers = [
22
+ "Programming Language :: Python :: 3",
23
+ "Operating System :: OS Independent",
24
+ ]
25
+ dependencies = [
26
+ "astropy==6.0.1",
27
+ "astroquery==0.4.7",
28
+ "bokeh==3.4.1",
29
+ "cmasher==1.8.0",
30
+ "matplotlib==3.8.4",
31
+ "importlib_resources==6.4.0",
32
+ "numpy==1.26.4",
33
+ "pandas==2.2.2",
34
+ "Requests==2.31.0",
35
+ "beautifulsoup4==4.12.3",
36
+ "scipy==1.13.0",
37
+ "selenium==4.21.0",
38
+ "lightkurve==2.4.2",
39
+ "PyQt5==5.15.10",
40
+ "numba==0.60.0",
41
+ ]
42
+
43
+ [project.urls]
44
+ Homepage = "https://github.com/WD-planets/AstroToolkit"
45
+ Issues = "https://github.com/WD-planets/AstroToolkit/issues"
46
+
47
+ [project.scripts]
48
+ ATKgui = "bin.opengui_command:main"
49
+ ATKquery = "bin.atkquery_command:main"
50
+ ATKread = "bin.atkread_command:main"
51
+ ATKsearch = "bin.atksearch_command:main"
52
+ ATKconv = "bin.atkconv_command:main"
53
+ ATKconfig = "bin.atkconfig_command:main"
54
+ ATKalias = "bin.atkalias_command:main"
55
+ ATKepoch = "bin.atkepoch_command:main"
56
+ ATKoverlay = "bin.atkoverlay_command:main"
@@ -0,0 +1,110 @@
1
+ """
2
+ ATK supports the creation of aliases to any Vizier catalogue, which are set via an aliases file. This module allows the aliases file to be viewed and edited.
3
+ """
4
+
5
+ from .Configuration.catalogue_setup import CatalogueStruct
6
+ from .Input.input_validation import check_inputs
7
+
8
+ catalogues = CatalogueStruct()
9
+ catalogues.get_catalogues()
10
+
11
+
12
+ def addAlias(name: str, id: str) -> None:
13
+ """addAlias(name,id)
14
+ Adds a Vizier catalogue alias to ATK for use in data queries.
15
+
16
+ :param name: alias name, e.g. 'allwise'
17
+ :type name: str
18
+ :param id: Vizier catalogue ID, e.g. 'II/328/allwise'
19
+ :type id: str
20
+
21
+ :return: None
22
+
23
+ |
24
+
25
+ """
26
+
27
+ corrected_inputs = check_inputs({"name": [name, str], "id": [id, str]}, "addAlias")
28
+ name, id = corrected_inputs
29
+
30
+ catalogues.add_catalogue(name, id)
31
+ print(f"Added alias for {id} with label {name}.")
32
+
33
+ return None
34
+
35
+
36
+ def delAlias(name: str) -> None:
37
+ """delAlias(name)
38
+ Deletes an existing catalogue alias.
39
+
40
+ :param name: alias name to be deleted
41
+ :type name: str
42
+
43
+ :return: None
44
+
45
+ |
46
+
47
+ """
48
+
49
+ corrected_inputs = check_inputs({"name": [name, str]}, "delAlias")
50
+ name = corrected_inputs[0]
51
+
52
+ catalogues.delete_catalogue(name)
53
+ print(f"Deleted alias with label {name}.")
54
+
55
+
56
+ def openAliases() -> None:
57
+ """openAliases()
58
+ Opens the catalogue alias list in the default text editor.
59
+
60
+ :return: None
61
+
62
+ |
63
+
64
+ """
65
+ catalogues = CatalogueStruct()
66
+ path = catalogues.catalogue_file
67
+
68
+ import platform
69
+ import subprocess
70
+
71
+ if platform.system().lower() in ["posix", "linux"]:
72
+ subprocess.run(["chmod", "+x", str(path)])
73
+ subprocess.run(["xdg-open", str(path)])
74
+ else:
75
+ import webbrowser
76
+
77
+ webbrowser.open(path)
78
+
79
+ return None
80
+
81
+
82
+ def resetAliases() -> None:
83
+ """resetAliases()
84
+ Resets the catalogue alias list (i.e. only keeps default ATK data surveys).
85
+
86
+ :return: None
87
+
88
+ |
89
+
90
+ """
91
+ print("Resetting ATKAliases.ini to default values...\n")
92
+ catalogues.default_setup()
93
+
94
+ return None
95
+
96
+
97
+ def showAliases() -> None:
98
+ """showAliases()
99
+ Prints the current catalogue alias list to stdout.
100
+
101
+ :return: None
102
+
103
+ |
104
+
105
+ """
106
+ print("Current ATKAliases.ini values:\n")
107
+ catalogues.get_catalogues()
108
+ catalogues.output_catalogues()
109
+
110
+ return None
@@ -0,0 +1,93 @@
1
+ """
2
+ Most defaults in ATK can be changed via a config file. This module allows for the configuration file to be viewed and edited.
3
+ """
4
+
5
+ from .Configuration.baseconfig import ConfigStruct
6
+ from .Input.input_validation import check_inputs
7
+
8
+ config = ConfigStruct()
9
+ config.read_config()
10
+
11
+
12
+ def editConfig(key: str, value: str) -> None:
13
+ """editConfig(key, value)
14
+ Edits config values. See :ref:`Config Keys` for a list and description of available keys.
15
+
16
+ :param key: config key
17
+ :type key: str
18
+ :param value: value to assign to this config key
19
+ :type value: str
20
+
21
+ :return: None
22
+
23
+ |
24
+
25
+ """
26
+
27
+ corrected_inputs = check_inputs(
28
+ {"key": [key, str], "value": [value, str]}, "editconfig"
29
+ )
30
+ key, value = corrected_inputs
31
+
32
+ print("Written change to ATKConfig.ini. New Values:\n")
33
+ config.edit_config(key, value)
34
+
35
+ return None
36
+
37
+
38
+ def openConfig() -> None:
39
+ """openConfig()
40
+ Opens the config in the default text editor. See :ref:`Config Keys` for a list and description of available keys.
41
+
42
+ :return: None
43
+
44
+ |
45
+
46
+ """
47
+ config = ConfigStruct()
48
+ path = config.config_file
49
+
50
+ import platform
51
+ import subprocess
52
+
53
+ if platform.system().lower() in ["posix", "linux"]:
54
+ subprocess.run(["chmod", "+x", str(path)])
55
+ subprocess.run(["xdg-open", str(path)])
56
+ else:
57
+ import webbrowser
58
+
59
+ webbrowser.open(path)
60
+
61
+ return None
62
+
63
+
64
+ def showConfig() -> None:
65
+ """showConfig()
66
+ Prints the current config file to stdout.
67
+
68
+ :return: None
69
+
70
+ |
71
+
72
+ """
73
+ print("Current ATKConfig.ini values:\n")
74
+ config.read_config()
75
+ config.output_config()
76
+
77
+ return None
78
+
79
+
80
+ def resetConfig() -> None:
81
+ """resetConfig()
82
+ Resets the config to default values. A list of available keys and their default values can be found in :ref:`Config Keys`.
83
+
84
+ :return: None
85
+
86
+ |
87
+
88
+ """
89
+ print("Resetting ATKConfig.ini to default values...\n")
90
+ config.set_default_config()
91
+ config.write_config()
92
+
93
+ return None