kerykeion 4.18.3__py3-none-any.whl → 4.18.4__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/charts_utils.py +3 -3
- kerykeion/charts/kerykeion_chart_svg.py +9 -11
- {kerykeion-4.18.3.dist-info → kerykeion-4.18.4.dist-info}/METADATA +1 -1
- {kerykeion-4.18.3.dist-info → kerykeion-4.18.4.dist-info}/RECORD +7 -7
- {kerykeion-4.18.3.dist-info → kerykeion-4.18.4.dist-info}/LICENSE +0 -0
- {kerykeion-4.18.3.dist-info → kerykeion-4.18.4.dist-info}/WHEEL +0 -0
- {kerykeion-4.18.3.dist-info → kerykeion-4.18.4.dist-info}/entry_points.txt +0 -0
kerykeion/charts/charts_utils.py
CHANGED
|
@@ -535,7 +535,7 @@ def draw_aspect_grid(
|
|
|
535
535
|
str: SVG string representing the aspect grid.
|
|
536
536
|
"""
|
|
537
537
|
svg_output = ""
|
|
538
|
-
style = f"stroke:{stroke_color}; stroke-width: 1px; fill:none"
|
|
538
|
+
style = f"stroke:{stroke_color}; stroke-width: 1px; stroke-width: 0.5px; fill:none"
|
|
539
539
|
box_size = 14
|
|
540
540
|
|
|
541
541
|
# Filter active planets
|
|
@@ -546,7 +546,7 @@ def draw_aspect_grid(
|
|
|
546
546
|
|
|
547
547
|
for index, planet_a in enumerate(reversed_planets):
|
|
548
548
|
# Draw the grid box for the planet
|
|
549
|
-
svg_output += f'<rect x="{x_start}" y="{y_start}" width="{box_size}" height="{box_size}" style="{style}"/>'
|
|
549
|
+
svg_output += f'<rect kr:node="AspectsGridRect" x="{x_start}" y="{y_start}" width="{box_size}" height="{box_size}" style="{style}"/>'
|
|
550
550
|
svg_output += f'<use transform="scale(0.4)" x="{(x_start + 2) * 2.5}" y="{(y_start + 1) * 2.5}" xlink:href="#{planet_a["name"]}" />'
|
|
551
551
|
|
|
552
552
|
# Update the starting coordinates for the next box
|
|
@@ -560,7 +560,7 @@ def draw_aspect_grid(
|
|
|
560
560
|
# Iterate over the remaining planets
|
|
561
561
|
for planet_b in reversed_planets[index + 1:]:
|
|
562
562
|
# Draw the grid box for the aspect
|
|
563
|
-
svg_output += f'<rect x="{x_aspect}" y="{y_aspect}" width="{box_size}" height="{box_size}" style="{style}"/>'
|
|
563
|
+
svg_output += f'<rect kr:node="AspectsGridRect" x="{x_aspect}" y="{y_aspect}" width="{box_size}" height="{box_size}" style="{style}"/>'
|
|
564
564
|
x_aspect += box_size
|
|
565
565
|
|
|
566
566
|
# Check for aspects between the planets
|
|
@@ -610,12 +610,12 @@ class KerykeionChartSVG:
|
|
|
610
610
|
if not hasattr(self, "template"):
|
|
611
611
|
self.template = self.makeTemplate(minify)
|
|
612
612
|
|
|
613
|
-
|
|
613
|
+
chartname = self.output_directory / f"{self.user.name} - {self.chart_type} Chart.svg"
|
|
614
614
|
|
|
615
|
-
with open(
|
|
615
|
+
with open(chartname, "w", encoding="utf-8", errors="ignore") as output_file:
|
|
616
616
|
output_file.write(self.template)
|
|
617
617
|
|
|
618
|
-
logging.info(f"SVG Generated Correctly in: {
|
|
618
|
+
logging.info(f"SVG Generated Correctly in: {chartname}")
|
|
619
619
|
|
|
620
620
|
def makeWheelOnlyTemplate(self, minify: bool = False):
|
|
621
621
|
"""Creates the template for the SVG file with only the wheel"""
|
|
@@ -638,13 +638,12 @@ class KerykeionChartSVG:
|
|
|
638
638
|
"""Prints out the SVG file in the specified folder with only the wheel"""
|
|
639
639
|
|
|
640
640
|
template = self.makeWheelOnlyTemplate(minify)
|
|
641
|
+
chartname = self.output_directory / f"{self.user.name} - {self.chart_type} Chart - Wheel Only.svg"
|
|
641
642
|
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
with open(self.chartname, "w", encoding="utf-8", errors="ignore") as output_file:
|
|
643
|
+
with open(chartname, "w", encoding="utf-8", errors="ignore") as output_file:
|
|
645
644
|
output_file.write(template)
|
|
646
645
|
|
|
647
|
-
logging.info(f"SVG Generated Correctly in: {
|
|
646
|
+
logging.info(f"SVG Generated Correctly in: {chartname}")
|
|
648
647
|
|
|
649
648
|
def makeAspectGridOnlyTemplate(self, minify: bool = False):
|
|
650
649
|
"""Creates the template for the SVG file with only the aspect grid"""
|
|
@@ -673,13 +672,12 @@ class KerykeionChartSVG:
|
|
|
673
672
|
"""Prints out the SVG file in the specified folder with only the aspect grid"""
|
|
674
673
|
|
|
675
674
|
template = self.makeAspectGridOnlyTemplate(minify)
|
|
675
|
+
chartname = self.output_directory / f"{self.user.name} - {self.chart_type} Chart - Aspect Grid Only.svg"
|
|
676
676
|
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
with open(self.chartname, "w", encoding="utf-8", errors="ignore") as output_file:
|
|
677
|
+
with open(chartname, "w", encoding="utf-8", errors="ignore") as output_file:
|
|
680
678
|
output_file.write(template)
|
|
681
679
|
|
|
682
|
-
logging.info(f"SVG Generated Correctly in: {
|
|
680
|
+
logging.info(f"SVG Generated Correctly in: {chartname}")
|
|
683
681
|
|
|
684
682
|
|
|
685
683
|
if __name__ == "__main__":
|
|
@@ -6,9 +6,9 @@ kerykeion/aspects/natal_aspects.py,sha256=ESWKPiVUW6vjNgwEHjIkckwqS1y_vZ8_OAaWxU
|
|
|
6
6
|
kerykeion/aspects/synastry_aspects.py,sha256=xe28zmrsYU5mxHf6vloEPu-FdJF9x-v7xEGVFkRUSF8,4334
|
|
7
7
|
kerykeion/astrological_subject.py,sha256=YkEHyge_S6FTsAsLNuSMBR-4XdNMFhRo6lHqYdp-u6Y,35045
|
|
8
8
|
kerykeion/charts/__init__.py,sha256=Juxkduy2TaagWblh_7CE8Acrg3dHL27-WEddJhau_eQ,127
|
|
9
|
-
kerykeion/charts/charts_utils.py,sha256=
|
|
9
|
+
kerykeion/charts/charts_utils.py,sha256=fOAvnXRGBJfFGMXgaCw--R7T0QfsJA28SkyygiwhjSY,42221
|
|
10
10
|
kerykeion/charts/draw_planets.py,sha256=Uty3zpWYMQZvvK7ZHhlmynCHeL8DIN3qL2ifnBXVciM,17393
|
|
11
|
-
kerykeion/charts/kerykeion_chart_svg.py,sha256=
|
|
11
|
+
kerykeion/charts/kerykeion_chart_svg.py,sha256=Nfccy-VI9uTCcD0oVQx4JebC_y4oQyRB25LenD4m4BY,42742
|
|
12
12
|
kerykeion/charts/templates/aspect_grid_only.xml,sha256=XoDpqhwAUNR_Yr4jSNn1Gnh2bzORCpgU-kyEDV_0Bkg,65150
|
|
13
13
|
kerykeion/charts/templates/chart.xml,sha256=ryQao1xDqlSjNUY0HzZiJjdRK__mQoMFA3WV-W6t5Jo,68383
|
|
14
14
|
kerykeion/charts/templates/wheel_only.xml,sha256=83G5hfgevQ0_aygUhKRWhzSsu57W2nRjMkSyCtL8wTE,66374
|
|
@@ -35,8 +35,8 @@ kerykeion/settings/kr.config.json,sha256=iH7R9FPt3mS1cgrB7OKrqWSgq8G4hAslYIRv2a2
|
|
|
35
35
|
kerykeion/sweph/README.md,sha256=L7FtNAJTWtrZNGKa8MX87SjduFYPYxwWhaI5fmtzNZo,73
|
|
36
36
|
kerykeion/sweph/seas_18.se1,sha256=X9nCqhZU43wJpq61WAdueVQJt9xL2UjrwPqn1Kdoa1s,223002
|
|
37
37
|
kerykeion/utilities.py,sha256=VazaGS8n2p3CD8P2q31A1kSKbmXRNMG8DytLuBwEaU4,9219
|
|
38
|
-
kerykeion-4.18.
|
|
39
|
-
kerykeion-4.18.
|
|
40
|
-
kerykeion-4.18.
|
|
41
|
-
kerykeion-4.18.
|
|
42
|
-
kerykeion-4.18.
|
|
38
|
+
kerykeion-4.18.4.dist-info/LICENSE,sha256=UTLH8EdbAsgQei4PA2PnBCPGLSZkq5J-dhkyJuXgWQU,34273
|
|
39
|
+
kerykeion-4.18.4.dist-info/METADATA,sha256=HyPHoDgr-P-QPsEYAIZ4Wacr0tNYLN52rdk9jE20Dfw,15912
|
|
40
|
+
kerykeion-4.18.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
41
|
+
kerykeion-4.18.4.dist-info/entry_points.txt,sha256=5SmANYscFDDTdeovHvGQ-cnj0hdFvGoxPaWLCpyDFnQ,49
|
|
42
|
+
kerykeion-4.18.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|