Skip to content

Commit

Permalink
fix: amend get_greenwhich_sidereal_time() to correctly round microsec…
Browse files Browse the repository at this point in the history
…onds in @observerly/celerity.

fix: amend get_greenwhich_sidereal_time() to correctly round microseconds in @observerly/celerity.
  • Loading branch information
michealroberts committed Apr 24, 2024
1 parent d672bb5 commit b045be7
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 b045be7

Please sign in to comment.