Skip to content

Commit

Permalink
Merge pull request #105 from michealroberts/fix/temporal/get_greenwhi…
Browse files Browse the repository at this point in the history
…ch_sidereal_time

fix: amend get_greenwhich_sidereal_time() to correctly round microseconds in @observerly/celerity.
  • Loading branch information
michealroberts authored Apr 24, 2024
2 parents d672bb5 + b045be7 commit 2878f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/celerity/temporal.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def get_greenwhich_sidereal_time(date: datetime) -> float:
T_0 += 24

# Convert the UTC time to a decimal fraction of hours:
UTC = date.microsecond / 1e-6 + date.second / 60 + date.minute / 60 + date.hour
UTC = (date.microsecond / 1e6) + date.second / 60 + date.minute / 60 + date.hour

A = UTC * 1.002737909

Expand Down

0 comments on commit 2878f3b

Please sign in to comment.