Skip to content

Commit

Permalink
fix constellation names (#111)
Browse files Browse the repository at this point in the history
* fix names

* format
  • Loading branch information
steveberardi authored Oct 31, 2024
1 parent 42b61d0 commit 25731bc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- Removed the kwarg `types` from `dsos`, so ALL DSO types are plotted by default
- [**v0.12.1**] Fixes issue with plotting the Milky Way when it consists of multiple polygons
- [**v0.12.2**] Allows tuples for line styles on polygons and adds geometry kwarg to polygon function
- [**v0.12.3**] Fixes bug with constellation names

## v0.11.x
[Documentation](https://archives.starplot.dev/0.11.4/)
Expand Down
4 changes: 2 additions & 2 deletions src/starplot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Star charts and maps"""
"""Star charts and maps of the sky"""

__version__ = "0.12.2"
__version__ = "0.12.3"

from .base import BasePlot # noqa: F401
from .map import MapPlot, Projection # noqa: F401
Expand Down
Binary file modified src/starplot/data/library/constellations.gpkg
Binary file not shown.
4 changes: 2 additions & 2 deletions src/starplot/data/prep/constellations.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def build_constellations():
constellation_dict = {
"id": cid.lower(),
"iau_id": cid.lower(),
"name": props[0],
"name": props[0].replace("\n", " "),
"center_ra": props[1] * 15,
"center_dec": props[2],
"lines_hip_ids": ",".join(
Expand Down Expand Up @@ -103,6 +103,6 @@ def build_constellations():
DATA_LIBRARY / "constellations.gpkg", driver="GPKG", engine="pyogrio", index=True
)

print(gdf.loc["uma"])
print(gdf.loc["cmi"])

print("Total Constellations: " + str(len(constellation_records)))

0 comments on commit 25731bc

Please sign in to comment.