Skip to content

fix(astro.constants): Redefine t_sidereal#336

Merged
ketiltrout merged 1 commit intomainfrom
redefine_t_sidereal
Mar 12, 2026
Merged

fix(astro.constants): Redefine t_sidereal#336
ketiltrout merged 1 commit intomainfrom
redefine_t_sidereal

Conversation

@ketiltrout
Copy link
Member

The previous definition of t_sidereal was defined in in terms of a magic number of SI hours. Instead, let's directly define it in terms of the sidereal_second that we already have.

The difference between the new definition and the old is small:

(sidereal_second * day) / old_t_sidereal - 1 = 1.7114933914541552e-09

or less than 0.2 millisconds per day.

@ketiltrout ketiltrout requested review from ljgray and sjforeman March 12, 2026 00:27
The previous definition of `t_sidereal` was defined in in terms of a
magic number of SI hours.  Instead, let's directly define it in
terms of the `sidereal_second` that we already have.

The difference between the new definition and the old is small:
```
(sidereal_second * day) / old_t_sidereal - 1 = 1.7114933914541552e-09
```
or less than 0.2 millisconds per day.
@ketiltrout ketiltrout force-pushed the redefine_t_sidereal branch from 1391cd1 to 49f5c90 Compare March 12, 2026 00:29
@ketiltrout ketiltrout merged commit c327d7a into main Mar 12, 2026
11 checks passed
@ketiltrout ketiltrout deleted the redefine_t_sidereal branch March 12, 2026 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants