Skip to content

Commit

Permalink
Merge pull request #3 from jfcarr/bug/2_undefined_variables
Browse files Browse the repository at this point in the history
Corrected undefined variables
  • Loading branch information
jfcarr committed Apr 22, 2024
2 parents 7767c3c + b197732 commit a79bc2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "practical-astronomy"
version = "1.0.0"
version = "1.0.1"
authors = [{ name = "Jim Carr", email = "[email protected]" }]
description = "Algorithms from Practical Astronomy, implemented in Python"
readme = "README.md"
Expand Down
4 changes: 2 additions & 2 deletions src/practical_astronomy/pa_macro.py
Original file line number Diff line number Diff line change
Expand Up @@ -1624,11 +1624,11 @@ def angle(XX1, XM1, XS1, DD1, DM1, DS1, XX2, XM2, XS2, DD2, DM2, DS2, S):
Original macro name: Angle
"""
A = dh_dd(hms_dh(XX1, XM1, XS1)) if (S in ["H","h"]) else dms_dd(XX1, XM1, XD1)
A = dh_dd(hms_dh(XX1, XM1, XS1)) if (S in ["H","h"]) else dms_dd(XX1, XM1, XS1)
B = math.radians(A)
C = dms_dd(DD1, DM1, DS1)
D = math.radians(C)
E = dh_dd(hms_dh(XX2, XM2, XS2)) if (S in ["H","h"]) else dms_dd(XX2, XM2, XD2)
E = dh_dd(hms_dh(XX2, XM2, XS2)) if (S in ["H","h"]) else dms_dd(XX2, XM2, XS2)
F = math.radians(E)
G = dms_dd(DD2, DM2, DS2)
H = math.radians(G)
Expand Down

0 comments on commit a79bc2b

Please sign in to comment.