Repository navigation
Commit 4bdea27
committed
STY: extract _MAS_PER_DEG constant in ICRS<->FK5 transform
Replace the bare 3600000.0 conversion factor in _icrs_to_fk5_matrix()
with a module-level _MAS_PER_DEG named constant in scientific notation.
The value (3,600 arcsec/deg * 1,000 mas/arcsec) is documented in a
short side comment.
Same float, more self-documenting at the call sites. Per review
suggestion from neutrinoceros on PR 19597.1 parent 12b5c56 commit 4bdea27
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | | - | |
18 | | - | |
19 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
0 commit comments