kerykeion 5.1.4__py3-none-any.whl → 5.1.6__py3-none-any.whl
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.
Potentially problematic release.
This version of kerykeion might be problematic. Click here for more details.
- kerykeion/charts/chart_drawer.py +3 -3
- kerykeion/charts/charts_utils.py +4 -4
- {kerykeion-5.1.4.dist-info → kerykeion-5.1.6.dist-info}/METADATA +1 -1
- {kerykeion-5.1.4.dist-info → kerykeion-5.1.6.dist-info}/RECORD +6 -6
- {kerykeion-5.1.4.dist-info → kerykeion-5.1.6.dist-info}/WHEEL +0 -0
- {kerykeion-5.1.4.dist-info → kerykeion-5.1.6.dist-info}/licenses/LICENSE +0 -0
kerykeion/charts/chart_drawer.py
CHANGED
|
@@ -1609,9 +1609,9 @@ class ChartDrawer:
|
|
|
1609
1609
|
|
|
1610
1610
|
template_dict["bottom_left_4"] = f'{self._translate("perspective_type", "Perspective")}: {self._translate(self.second_obj.perspective_type.lower().replace(" ", "_"), self.second_obj.perspective_type)}' # type: ignore
|
|
1611
1611
|
|
|
1612
|
-
# Moon phase section calculations - use
|
|
1613
|
-
if self.
|
|
1614
|
-
template_dict["makeLunarPhase"] = makeLunarPhase(self.
|
|
1612
|
+
# Moon phase section calculations - use transit subject data only
|
|
1613
|
+
if self.second_obj is not None and getattr(self.second_obj, "lunar_phase", None):
|
|
1614
|
+
template_dict["makeLunarPhase"] = makeLunarPhase(self.second_obj.lunar_phase["degrees_between_s_m"], self.geolat)
|
|
1615
1615
|
else:
|
|
1616
1616
|
template_dict["makeLunarPhase"] = ""
|
|
1617
1617
|
|
kerykeion/charts/charts_utils.py
CHANGED
|
@@ -1674,7 +1674,7 @@ def makeLunarPhase(degrees_between_sun_and_moon: float, latitude: float) -> str:
|
|
|
1674
1674
|
params = calculate_moon_phase_chart_params(degrees_between_sun_and_moon)
|
|
1675
1675
|
|
|
1676
1676
|
phase_angle = params["phase_angle"]
|
|
1677
|
-
illuminated_fraction = params["illuminated_fraction"]
|
|
1677
|
+
illuminated_fraction = 1.0 - params["illuminated_fraction"]
|
|
1678
1678
|
shadow_ellipse_rx = abs(params["shadow_ellipse_rx"])
|
|
1679
1679
|
|
|
1680
1680
|
radius = 10.0
|
|
@@ -1684,7 +1684,7 @@ def makeLunarPhase(degrees_between_sun_and_moon: float, latitude: float) -> str:
|
|
|
1684
1684
|
bright_color = "var(--kerykeion-chart-color-lunar-phase-1)"
|
|
1685
1685
|
shadow_color = "var(--kerykeion-chart-color-lunar-phase-0)"
|
|
1686
1686
|
|
|
1687
|
-
is_waxing = phase_angle
|
|
1687
|
+
is_waxing = phase_angle < 180.0
|
|
1688
1688
|
|
|
1689
1689
|
if illuminated_fraction <= 1e-6:
|
|
1690
1690
|
base_fill = shadow_color
|
|
@@ -1699,11 +1699,11 @@ def makeLunarPhase(degrees_between_sun_and_moon: float, latitude: float) -> str:
|
|
|
1699
1699
|
if is_lit_major:
|
|
1700
1700
|
base_fill = bright_color
|
|
1701
1701
|
overlay_fill = shadow_color
|
|
1702
|
-
overlay_side = "
|
|
1702
|
+
overlay_side = "left" if is_waxing else "right"
|
|
1703
1703
|
else:
|
|
1704
1704
|
base_fill = shadow_color
|
|
1705
1705
|
overlay_fill = bright_color
|
|
1706
|
-
overlay_side = "
|
|
1706
|
+
overlay_side = "right" if is_waxing else "left"
|
|
1707
1707
|
|
|
1708
1708
|
# The illuminated limb is the orthographic projection of the lunar terminator;
|
|
1709
1709
|
# it appears as an ellipse with vertical radius equal to the lunar radius and
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: kerykeion
|
|
3
|
-
Version: 5.1.
|
|
3
|
+
Version: 5.1.6
|
|
4
4
|
Summary: A Python library for astrological calculations, including natal charts, houses, planetary aspects, and SVG chart generation.
|
|
5
5
|
Project-URL: Homepage, https://www.kerykeion.net/
|
|
6
6
|
Project-URL: Repository, https://github.com/g-battaglia/kerykeion
|
|
@@ -14,8 +14,8 @@ kerykeion/aspects/__init__.py,sha256=csJmxvLdBu-bHuW676f3dpY__Qyc6LwRyrpWVTh3n1A
|
|
|
14
14
|
kerykeion/aspects/aspects_factory.py,sha256=XCuOOpo0ZW7sihYT2f50bLVpebEk19b9EtEjXonwte0,24156
|
|
15
15
|
kerykeion/aspects/aspects_utils.py,sha256=00-MMLEGChpceab8sHKB1_qg6EG4ycTG2u2vYZcyLmQ,5784
|
|
16
16
|
kerykeion/charts/__init__.py,sha256=i9NMZ7LdkllPlqQSi1or9gTobHbROGDKmJhBDO4R0mA,128
|
|
17
|
-
kerykeion/charts/chart_drawer.py,sha256=
|
|
18
|
-
kerykeion/charts/charts_utils.py,sha256=
|
|
17
|
+
kerykeion/charts/chart_drawer.py,sha256=VpvUM_D_JaG04t7XVoHomfOS506reSWFoSNSksxUhj4,122278
|
|
18
|
+
kerykeion/charts/charts_utils.py,sha256=iwgDhVc_GwKuQBZ6JNmn6RWVILD5KIcjbrnDTR3wrAc,70911
|
|
19
19
|
kerykeion/charts/draw_planets.py,sha256=tIj3FeLLomVSbCaZUxfw_qBEB3pxi4EIEhqaeTgTyTY,29061
|
|
20
20
|
kerykeion/charts/templates/aspect_grid_only.xml,sha256=v3QtNMjk-kBdUTfB0r6thg--Ta_tNFdRQCzdk5PAycY,86429
|
|
21
21
|
kerykeion/charts/templates/chart.xml,sha256=oUI9hV--4rdsVFqZJ8ChpgC2ZgfnqlL2Tl2vco1vlOc,92095
|
|
@@ -57,7 +57,7 @@ kerykeion/sweph/ast28/se28978s.se1,sha256=nU2Qp-ELc_tzFnRc1QT6uVueWXEipvhYDgfQRX
|
|
|
57
57
|
kerykeion/sweph/ast50/se50000s.se1,sha256=9jTrPlIrZMOBWC9cNgwzcfz0KBHdXFZoY9-NZ_HtECo,15748
|
|
58
58
|
kerykeion/sweph/ast90/se90377s.se1,sha256=bto2x4LtBv8b1ej1XhVFYq-kfHO9cczbKV9U1f9UVu4,10288
|
|
59
59
|
kerykeion/sweph/ast90/se90482s.se1,sha256=uHxz6bP4K8zgtQFrlWFwxrYfmqm5kXxsg6OYhAIUbAA,16173
|
|
60
|
-
kerykeion-5.1.
|
|
61
|
-
kerykeion-5.1.
|
|
62
|
-
kerykeion-5.1.
|
|
63
|
-
kerykeion-5.1.
|
|
60
|
+
kerykeion-5.1.6.dist-info/METADATA,sha256=vZBqRA0Q_6akyt-VkovR7ALLHtWJP7CAefvYGiGRDng,61445
|
|
61
|
+
kerykeion-5.1.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
62
|
+
kerykeion-5.1.6.dist-info/licenses/LICENSE,sha256=UTLH8EdbAsgQei4PA2PnBCPGLSZkq5J-dhkyJuXgWQU,34273
|
|
63
|
+
kerykeion-5.1.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|