starplot 0.11.2__tar.gz → 0.11.3__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 (191) hide show
  1. {starplot-0.11.2 → starplot-0.11.3}/PKG-INFO +1 -1
  2. {starplot-0.11.2 → starplot-0.11.3}/docs/changelog.md +2 -0
  3. {starplot-0.11.2 → starplot-0.11.3}/hash_checks/hashio.py +18 -14
  4. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/__init__.py +1 -1
  5. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/base.py +2 -5
  6. {starplot-0.11.2 → starplot-0.11.3}/.dockerignore +0 -0
  7. {starplot-0.11.2 → starplot-0.11.3}/.github/FUNDING.yml +0 -0
  8. {starplot-0.11.2 → starplot-0.11.3}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  9. {starplot-0.11.2 → starplot-0.11.3}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  10. {starplot-0.11.2 → starplot-0.11.3}/.github/workflows/docs.yml +0 -0
  11. {starplot-0.11.2 → starplot-0.11.3}/.github/workflows/release.yml +0 -0
  12. {starplot-0.11.2 → starplot-0.11.3}/.github/workflows/test.yml +0 -0
  13. {starplot-0.11.2 → starplot-0.11.3}/.gitignore +0 -0
  14. {starplot-0.11.2 → starplot-0.11.3}/CODE_OF_CONDUCT.md +0 -0
  15. {starplot-0.11.2 → starplot-0.11.3}/CONTRIBUTING.md +0 -0
  16. {starplot-0.11.2 → starplot-0.11.3}/Dockerfile +0 -0
  17. {starplot-0.11.2 → starplot-0.11.3}/LICENSE +0 -0
  18. {starplot-0.11.2 → starplot-0.11.3}/Makefile +0 -0
  19. {starplot-0.11.2 → starplot-0.11.3}/README.md +0 -0
  20. {starplot-0.11.2 → starplot-0.11.3}/docs/about.md +0 -0
  21. {starplot-0.11.2 → starplot-0.11.3}/docs/coming-soon.md +0 -0
  22. {starplot-0.11.2 → starplot-0.11.3}/docs/css/extra.css +0 -0
  23. {starplot-0.11.2 → starplot-0.11.3}/docs/custom/main.html +0 -0
  24. {starplot-0.11.2 → starplot-0.11.3}/docs/data/.keep +0 -0
  25. {starplot-0.11.2 → starplot-0.11.3}/docs/data-sources.md +0 -0
  26. {starplot-0.11.2 → starplot-0.11.3}/docs/examples/map-big-dipper.md +0 -0
  27. {starplot-0.11.2 → starplot-0.11.3}/docs/examples/map-big.md +0 -0
  28. {starplot-0.11.2 → starplot-0.11.3}/docs/examples/map-comet-neowise.md +0 -0
  29. {starplot-0.11.2 → starplot-0.11.3}/docs/examples/map-milky-way-stars.md +0 -0
  30. {starplot-0.11.2 → starplot-0.11.3}/docs/examples/map-orion.md +0 -0
  31. {starplot-0.11.2 → starplot-0.11.3}/docs/examples/map-orthographic.md +0 -0
  32. {starplot-0.11.2 → starplot-0.11.3}/docs/examples/map-sagittarius.md +0 -0
  33. {starplot-0.11.2 → starplot-0.11.3}/docs/examples/optic-m45.md +0 -0
  34. {starplot-0.11.2 → starplot-0.11.3}/docs/examples/optic-moon-saturn.md +0 -0
  35. {starplot-0.11.2 → starplot-0.11.3}/docs/examples/optic-orion.md +0 -0
  36. {starplot-0.11.2 → starplot-0.11.3}/docs/examples/optic-solar-eclipse.md +0 -0
  37. {starplot-0.11.2 → starplot-0.11.3}/docs/examples/star-chart-basic.md +0 -0
  38. {starplot-0.11.2 → starplot-0.11.3}/docs/examples/star-chart-detail.md +0 -0
  39. {starplot-0.11.2 → starplot-0.11.3}/docs/examples.md +0 -0
  40. {starplot-0.11.2 → starplot-0.11.3}/docs/gallery.md +0 -0
  41. {starplot-0.11.2 → starplot-0.11.3}/docs/images/banner.png +0 -0
  42. {starplot-0.11.2 → starplot-0.11.3}/docs/images/banner.svg +0 -0
  43. {starplot-0.11.2 → starplot-0.11.3}/docs/images/banner.vectornator +0 -0
  44. {starplot-0.11.2 → starplot-0.11.3}/docs/images/celestial-globe.svg +0 -0
  45. {starplot-0.11.2 → starplot-0.11.3}/docs/images/examples/.keep +0 -0
  46. {starplot-0.11.2 → starplot-0.11.3}/docs/images/favicon.png +0 -0
  47. {starplot-0.11.2 → starplot-0.11.3}/docs/images/favicon.svg +0 -0
  48. {starplot-0.11.2 → starplot-0.11.3}/docs/images/logo.png +0 -0
  49. {starplot-0.11.2 → starplot-0.11.3}/docs/images/logo.svg +0 -0
  50. {starplot-0.11.2 → starplot-0.11.3}/docs/images/logo.vectornator +0 -0
  51. {starplot-0.11.2 → starplot-0.11.3}/docs/images/logo2.png +0 -0
  52. {starplot-0.11.2 → starplot-0.11.3}/docs/images/logo2.vectornator +0 -0
  53. {starplot-0.11.2 → starplot-0.11.3}/docs/images/logo500.png +0 -0
  54. {starplot-0.11.2 → starplot-0.11.3}/docs/images/mono.png +0 -0
  55. {starplot-0.11.2 → starplot-0.11.3}/docs/images/mono.svg +0 -0
  56. {starplot-0.11.2 → starplot-0.11.3}/docs/images/star.svg +0 -0
  57. {starplot-0.11.2 → starplot-0.11.3}/docs/images/tutorial/.keep +0 -0
  58. {starplot-0.11.2 → starplot-0.11.3}/docs/index.md +0 -0
  59. {starplot-0.11.2 → starplot-0.11.3}/docs/installation.md +0 -0
  60. {starplot-0.11.2 → starplot-0.11.3}/docs/license.md +0 -0
  61. {starplot-0.11.2 → starplot-0.11.3}/docs/reference-callables.md +0 -0
  62. {starplot-0.11.2 → starplot-0.11.3}/docs/reference-data.md +0 -0
  63. {starplot-0.11.2 → starplot-0.11.3}/docs/reference-mapplot.md +0 -0
  64. {starplot-0.11.2 → starplot-0.11.3}/docs/reference-models.md +0 -0
  65. {starplot-0.11.2 → starplot-0.11.3}/docs/reference-ongc.md +0 -0
  66. {starplot-0.11.2 → starplot-0.11.3}/docs/reference-opticplot.md +0 -0
  67. {starplot-0.11.2 → starplot-0.11.3}/docs/reference-selecting-objects.md +0 -0
  68. {starplot-0.11.2 → starplot-0.11.3}/docs/reference-styling.md +0 -0
  69. {starplot-0.11.2 → starplot-0.11.3}/docs/robots.txt +0 -0
  70. {starplot-0.11.2 → starplot-0.11.3}/docs/tutorial/01.md +0 -0
  71. {starplot-0.11.2 → starplot-0.11.3}/docs/tutorial/02.md +0 -0
  72. {starplot-0.11.2 → starplot-0.11.3}/docs/tutorial/03.md +0 -0
  73. {starplot-0.11.2 → starplot-0.11.3}/docs/tutorial/04.md +0 -0
  74. {starplot-0.11.2 → starplot-0.11.3}/docs/tutorial/05.md +0 -0
  75. {starplot-0.11.2 → starplot-0.11.3}/docs/tutorial/06.md +0 -0
  76. {starplot-0.11.2 → starplot-0.11.3}/docs/tutorial/07.md +0 -0
  77. {starplot-0.11.2 → starplot-0.11.3}/docs/tutorial/08.md +0 -0
  78. {starplot-0.11.2 → starplot-0.11.3}/docs/tutorial/09.md +0 -0
  79. {starplot-0.11.2 → starplot-0.11.3}/docs/tutorial.md +0 -0
  80. {starplot-0.11.2 → starplot-0.11.3}/examples/examples.py +0 -0
  81. {starplot-0.11.2 → starplot-0.11.3}/examples/map_big.py +0 -0
  82. {starplot-0.11.2 → starplot-0.11.3}/examples/map_big_dipper.py +0 -0
  83. {starplot-0.11.2 → starplot-0.11.3}/examples/map_comet_neowise.py +0 -0
  84. {starplot-0.11.2 → starplot-0.11.3}/examples/map_milky_way_stars.py +0 -0
  85. {starplot-0.11.2 → starplot-0.11.3}/examples/map_orion.py +0 -0
  86. {starplot-0.11.2 → starplot-0.11.3}/examples/map_orthographic.py +0 -0
  87. {starplot-0.11.2 → starplot-0.11.3}/examples/map_sagittarius.py +0 -0
  88. {starplot-0.11.2 → starplot-0.11.3}/examples/optic_m45.py +0 -0
  89. {starplot-0.11.2 → starplot-0.11.3}/examples/optic_moon_saturn.py +0 -0
  90. {starplot-0.11.2 → starplot-0.11.3}/examples/optic_orion_nebula.py +0 -0
  91. {starplot-0.11.2 → starplot-0.11.3}/examples/optic_solar_eclipse.py +0 -0
  92. {starplot-0.11.2 → starplot-0.11.3}/examples/star_chart_basic.py +0 -0
  93. {starplot-0.11.2 → starplot-0.11.3}/examples/star_chart_detail.py +0 -0
  94. {starplot-0.11.2 → starplot-0.11.3}/hash_checks/__init__.py +0 -0
  95. {starplot-0.11.2 → starplot-0.11.3}/hash_checks/data/.keep +0 -0
  96. {starplot-0.11.2 → starplot-0.11.3}/hash_checks/hashlock.yml +0 -0
  97. {starplot-0.11.2 → starplot-0.11.3}/hash_checks/map_checks.py +0 -0
  98. {starplot-0.11.2 → starplot-0.11.3}/hash_checks/optic_checks.py +0 -0
  99. {starplot-0.11.2 → starplot-0.11.3}/hash_checks/template.html +0 -0
  100. {starplot-0.11.2 → starplot-0.11.3}/hash_checks/zenith_checks.py +0 -0
  101. {starplot-0.11.2 → starplot-0.11.3}/mkdocs.yml +0 -0
  102. {starplot-0.11.2 → starplot-0.11.3}/pyproject.toml +0 -0
  103. {starplot-0.11.2 → starplot-0.11.3}/requirements-dev.txt +0 -0
  104. {starplot-0.11.2 → starplot-0.11.3}/requirements.txt +0 -0
  105. {starplot-0.11.2 → starplot-0.11.3}/scripts/constellation_hips.py +0 -0
  106. {starplot-0.11.2 → starplot-0.11.3}/scripts/download_cons.py +0 -0
  107. {starplot-0.11.2 → starplot-0.11.3}/scripts/ecliptic.py +0 -0
  108. {starplot-0.11.2 → starplot-0.11.3}/scripts/gallery.py +0 -0
  109. {starplot-0.11.2 → starplot-0.11.3}/scripts/geopack.py +0 -0
  110. {starplot-0.11.2 → starplot-0.11.3}/scripts/gpack_constellations.py +0 -0
  111. {starplot-0.11.2 → starplot-0.11.3}/scripts/hip.py +0 -0
  112. {starplot-0.11.2 → starplot-0.11.3}/scripts/hip_parquet.py +0 -0
  113. {starplot-0.11.2 → starplot-0.11.3}/scripts/ipy.py +0 -0
  114. {starplot-0.11.2 → starplot-0.11.3}/scripts/moonphases.py +0 -0
  115. {starplot-0.11.2 → starplot-0.11.3}/scripts/ongc_docdata.py +0 -0
  116. {starplot-0.11.2 → starplot-0.11.3}/scripts/ongc_geopack.py +0 -0
  117. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/callables.py +0 -0
  118. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/data/__init__.py +0 -0
  119. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/data/bayer.py +0 -0
  120. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/data/bigsky.py +0 -0
  121. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/data/constellations.py +0 -0
  122. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/data/dsos.py +0 -0
  123. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/data/ecliptic.py +0 -0
  124. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/data/library/constellation_borders_inv.gpkg +0 -0
  125. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/data/library/constellation_lines_hips.json +0 -0
  126. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/data/library/constellation_lines_inv.gpkg +0 -0
  127. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/data/library/constellations.gpkg +0 -0
  128. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/data/library/constellations_hip.fab +0 -0
  129. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/data/library/de421_2001.bsp +0 -0
  130. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/data/library/de440s.bsp +0 -0
  131. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/data/library/milkyway.gpkg +0 -0
  132. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/data/library/milkyway_inv.gpkg +0 -0
  133. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/data/library/ongc.gpkg.zip +0 -0
  134. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/data/library/stars.bigsky.mag11.parquet +0 -0
  135. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/data/library/stars.hipparcos.parquet +0 -0
  136. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/data/messier.py +0 -0
  137. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/data/stars.py +0 -0
  138. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/data/utils.py +0 -0
  139. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/geod.py +0 -0
  140. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/map.py +0 -0
  141. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/mixins.py +0 -0
  142. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/models/__init__.py +0 -0
  143. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/models/base.py +0 -0
  144. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/models/constellation.py +0 -0
  145. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/models/dso.py +0 -0
  146. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/models/moon.py +0 -0
  147. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/models/objects.py +0 -0
  148. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/models/planet.py +0 -0
  149. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/models/star.py +0 -0
  150. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/models/sun.py +0 -0
  151. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/optic.py +0 -0
  152. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/optics.py +0 -0
  153. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/plotters/__init__.py +0 -0
  154. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/plotters/dsos.py +0 -0
  155. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/plotters/stars.py +0 -0
  156. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/projections.py +0 -0
  157. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/styles/__init__.py +0 -0
  158. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/styles/base.py +0 -0
  159. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/styles/ext/antique.yml +0 -0
  160. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/styles/ext/blue_dark.yml +0 -0
  161. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/styles/ext/blue_light.yml +0 -0
  162. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/styles/ext/blue_medium.yml +0 -0
  163. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/styles/ext/cb_wong.yml +0 -0
  164. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/styles/ext/color_print.yml +0 -0
  165. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/styles/ext/grayscale.yml +0 -0
  166. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/styles/ext/grayscale_dark.yml +0 -0
  167. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/styles/ext/map.yml +0 -0
  168. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/styles/ext/nord.yml +0 -0
  169. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/styles/ext/optic.yml +0 -0
  170. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/styles/extensions.py +0 -0
  171. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/styles/helpers.py +0 -0
  172. {starplot-0.11.2 → starplot-0.11.3}/src/starplot/utils.py +0 -0
  173. {starplot-0.11.2 → starplot-0.11.3}/tests/__init__.py +0 -0
  174. {starplot-0.11.2 → starplot-0.11.3}/tests/data/.keep +0 -0
  175. {starplot-0.11.2 → starplot-0.11.3}/tests/test_constellations.py +0 -0
  176. {starplot-0.11.2 → starplot-0.11.3}/tests/test_data.py +0 -0
  177. {starplot-0.11.2 → starplot-0.11.3}/tests/test_map.py +0 -0
  178. {starplot-0.11.2 → starplot-0.11.3}/tests/test_models.py +0 -0
  179. {starplot-0.11.2 → starplot-0.11.3}/tests/test_optic.py +0 -0
  180. {starplot-0.11.2 → starplot-0.11.3}/tests/test_stars.py +0 -0
  181. {starplot-0.11.2 → starplot-0.11.3}/tests/test_styles.py +0 -0
  182. {starplot-0.11.2 → starplot-0.11.3}/tests/test_utils.py +0 -0
  183. {starplot-0.11.2 → starplot-0.11.3}/tests/utils.py +0 -0
  184. {starplot-0.11.2 → starplot-0.11.3}/tutorial/build.py +0 -0
  185. {starplot-0.11.2 → starplot-0.11.3}/tutorial/tutorial_02.py +0 -0
  186. {starplot-0.11.2 → starplot-0.11.3}/tutorial/tutorial_03.py +0 -0
  187. {starplot-0.11.2 → starplot-0.11.3}/tutorial/tutorial_04.py +0 -0
  188. {starplot-0.11.2 → starplot-0.11.3}/tutorial/tutorial_05.py +0 -0
  189. {starplot-0.11.2 → starplot-0.11.3}/tutorial/tutorial_06.py +0 -0
  190. {starplot-0.11.2 → starplot-0.11.3}/tutorial/tutorial_07.py +0 -0
  191. {starplot-0.11.2 → starplot-0.11.3}/tutorial/tutorial_08.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: starplot
3
- Version: 0.11.2
3
+ Version: 0.11.3
4
4
  Summary: Star charts and maps
5
5
  Keywords: astronomy,stars,charts,maps,constellations
6
6
  Author-email: Steve Berardi <hello@steveberardi.com>
@@ -16,6 +16,8 @@
16
16
  - Fixes default horizon style to be consistent with grayscale extension
17
17
  - [**v0.11.2**]
18
18
  - Adds `requests` as a required dependency
19
+ - [**v0.11.3**]
20
+ - Fixes bug with plotting the celestial equator
19
21
 
20
22
  ## v0.10.x
21
23
  [Documentation](https://archives.starplot.dev/0.10.2/)
@@ -2,6 +2,7 @@ import sys
2
2
  import inspect
3
3
  import time
4
4
 
5
+ from multiprocessing import Pool
5
6
  from pathlib import Path
6
7
 
7
8
  import imagehash
@@ -73,22 +74,25 @@ class Hashio:
73
74
  def _phash(self, img) -> str:
74
75
  return str(imagehash.phash(img))
75
76
 
77
+ def _call_wrapper(self, c):
78
+ func_name = c.__name__[6:]
79
+ console.print(f"{func_name}...")
80
+ filename = c()
81
+ img = Image.open(filename)
82
+ return func_name, {
83
+ "filename": str(filename),
84
+ "dhash": self._dhash(img),
85
+ "phash": self._phash(img),
86
+ }
87
+
76
88
  def _get_hashes(self) -> dict:
77
89
  """Gets hashes for all callables"""
78
- hashes = {}
79
- with console.status("Getting hashes...", spinner="aesthetic"):
80
- for c in self.callables:
81
- func_name = c.__name__[6:]
82
- console.print(f"{func_name}...")
83
- filename = c()
84
- img = Image.open(filename)
85
- hashes[func_name] = {
86
- "filename": str(filename),
87
- "dhash": self._dhash(img),
88
- "phash": self._phash(img),
89
- }
90
-
91
- return hashes
90
+
91
+ console.print("Getting hashes...", style="bold")
92
+ with Pool(5) as p:
93
+ results = p.map(self._call_wrapper, self.callables)
94
+
95
+ return {func_name: hashes for func_name, hashes in results}
92
96
 
93
97
  def _check(self):
94
98
  passed = {}
@@ -1,6 +1,6 @@
1
1
  """Star charts and maps"""
2
2
 
3
- __version__ = "0.11.2"
3
+ __version__ = "0.11.3"
4
4
 
5
5
  from .base import BasePlot # noqa: F401
6
6
  from .map import MapPlot, Projection # noqa: F401
@@ -852,11 +852,8 @@ class BasePlot(ABC):
852
852
 
853
853
  # TODO : handle wrapping
854
854
 
855
- ra_start = max(0, int(self.ra_min) - 2) * 100
856
- ra_end = min(24, int(self.ra_max) + 2) * 100
857
-
858
- for ra in range(ra_start, ra_end, 2):
859
- x0, y0 = self._prepare_coords(ra / 100, 0)
855
+ for ra in range(25):
856
+ x0, y0 = self._prepare_coords(ra, 0)
860
857
  x.append(x0)
861
858
  y.append(y0)
862
859
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes