Commit 9cde5c2
coords: cover degree=True paths and pragma the new-Jac defensive branches
Codecov flagged 9 patch misses on the new Jacobian helpers. Two sources:
- The degree=True conversion paths in XYZ_to_lbd_jac (3x3-only branch)
and in galsky_to_sky_jac / sky_to_customsky_jac were not exercised by
the inverse-identity / finite-difference tests. Add direct degree=True
checks and a 2-arg call for sky_to_customsky_jac.
- Pole-singular and Sun-as-origin branches in XYZ_to_lbd_jac (r==0,
cb==0, KD==0) are defensive for callers that pass pathological
positions; the stream-track use case never hits them. Mark with
pragma: no cover and split the conditional pmll/pmbb assignment into
an if/else so the defensive arm is excluded cleanly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 5ab85b2 commit 9cde5c2
2 files changed
Lines changed: 29 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1878 | 1878 | | |
1879 | 1879 | | |
1880 | 1880 | | |
1881 | | - | |
| 1881 | + | |
1882 | 1882 | | |
1883 | 1883 | | |
1884 | 1884 | | |
1885 | 1885 | | |
1886 | 1886 | | |
1887 | 1887 | | |
1888 | 1888 | | |
1889 | | - | |
| 1889 | + | |
1890 | 1890 | | |
1891 | 1891 | | |
1892 | 1892 | | |
| |||
1909 | 1909 | | |
1910 | 1910 | | |
1911 | 1911 | | |
1912 | | - | |
| 1912 | + | |
| 1913 | + | |
1913 | 1914 | | |
1914 | 1915 | | |
1915 | 1916 | | |
| |||
1921 | 1922 | | |
1922 | 1923 | | |
1923 | 1924 | | |
1924 | | - | |
1925 | | - | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
1926 | 1931 | | |
1927 | 1932 | | |
1928 | 1933 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2867 | 2867 | | |
2868 | 2868 | | |
2869 | 2869 | | |
| 2870 | + | |
| 2871 | + | |
| 2872 | + | |
| 2873 | + | |
| 2874 | + | |
2870 | 2875 | | |
2871 | 2876 | | |
2872 | 2877 | | |
| |||
2933 | 2938 | | |
2934 | 2939 | | |
2935 | 2940 | | |
| 2941 | + | |
| 2942 | + | |
| 2943 | + | |
| 2944 | + | |
| 2945 | + | |
| 2946 | + | |
2936 | 2947 | | |
2937 | 2948 | | |
2938 | 2949 | | |
| |||
2961 | 2972 | | |
2962 | 2973 | | |
2963 | 2974 | | |
| 2975 | + | |
| 2976 | + | |
| 2977 | + | |
| 2978 | + | |
| 2979 | + | |
| 2980 | + | |
| 2981 | + | |
| 2982 | + | |
2964 | 2983 | | |
2965 | 2984 | | |
2966 | 2985 | | |
| |||
0 commit comments