Commit Graph

1677 Commits

Author SHA1 Message Date
Brandon Rhodes 4e4a5d3d5d Remove old center_name, target_name from Kepler 2020-06-10 12:05:16 -04:00
Brandon Rhodes 9a313a3b23 Remove names from VectorFunction init signature
This is a rare backwards compatibility break, risked only because
`VectorFunction` initialization never been documented, and because a
search of GitHub revealed not projects that were instantiating it
directly.  Eliminating the need to define and copy these two strings
from object to object makes the code more tractable, especially as I get
Kepler orbits closer to production status.  The attributes ``center``
and ``target`` themselves will now, when needed, be strings explaining
what celestial bodies are involved.
2020-06-10 11:45:05 -04:00
Brandon Rhodes 165a3e0778 Alleviate a pyflakes complaint 2020-06-10 11:39:51 -04:00
Brandon Rhodes 87e25119ef Replace "target_name" attribute with property 2020-06-10 11:34:04 -04:00
Brandon Rhodes 0a130da692 Replace "center_name" attribute with property 2020-06-10 11:19:31 -04:00
Brandon Rhodes 35bb3c8254 Add test of how vector addition stringifies 2020-06-10 07:31:16 -04:00
Brandon Rhodes 41868b906f Center comet orbits on the Sun 2020-06-10 07:24:27 -04:00
Brandon Rhodes e32048ea41 Replace bare assert with exception and explanation 2020-06-10 07:21:08 -04:00
Brandon Rhodes caf31286b6 Remove comments and extraneous code from script 2020-06-10 06:17:09 -04:00
Brandon Rhodes 156280ac01 Catch fairly successful match for MPC ephemeris
Temporary file, now to be cleaned up and turned into a real feature and
test.  Committed to the repository so that I don’t lose the achievement
as I start moving the code around!
2020-06-10 06:01:55 -04:00
Brandon Rhodes a9823d9d02 Slight cleanup of a test while working on Kepler 2020-06-10 05:58:49 -04:00
Brandon Rhodes 142d4af6d0 Fix #377 by adding an Earth occultation method 2020-06-09 06:24:59 -04:00
Brandon Rhodes 7f04a897e7 For future reference: HORIZONS position of Chiron 2020-06-08 16:07:18 -04:00
Brandon Rhodes 3113fd48b1 Add sample Type 21 ephemeris SPK file 2020-06-08 15:06:35 -04:00
Brandon Rhodes a14c07ef4e Remove out-of-date comment 2020-06-08 15:06:09 -04:00
Brandon Rhodes 1ffe62d978 Import `T0` from the module it actually lives in 2020-06-08 12:00:54 -04:00
Brandon Rhodes e62b0ca093 Update CHANGELOG and declare version 1.22 2020-06-08 10:46:59 -04:00
Brandon Rhodes 7a7d7e7eaa Remove an import that pyflakes noted was unused 2020-06-08 10:15:44 -04:00
Brandon Rhodes e03adc488b Hide precision difference between x86 and CI 2020-06-08 10:07:00 -04:00
Brandon Rhodes 55431a7702 Use new routines to get maxima/minima working well 2020-06-08 05:41:07 -04:00
Brandon Rhodes a42f67c86f Low-level routine to identify maximum with plateau 2020-06-08 04:57:31 -04:00
Brandon Rhodes 1180767250 Fix use of a too-recent NumPy feature 2020-06-07 22:39:07 -04:00
Brandon Rhodes c06e5297f6 Start rebuilding maxima-finding logic, with tests
Attempting to write documentation for my maxima finder revealed how
fragile it is, so let’s rebuild, and this time start atop very careful
tests.  We’ll see how it goes.
2020-06-07 21:59:51 -04:00
Brandon Rhodes ca0c5fd645 Stop using the Greek letter Δ when I really mean ∆ 2020-06-07 17:43:17 -04:00
Brandon Rhodes eda5feac32 Hide Time._nutation_angles_radians for now
I have still not settled on the API for offering alternative nutation
routines, so hiding this gives me the freedom to release later today
without making a public API commitment yet.
2020-06-07 17:09:13 -04:00
Brandon Rhodes d1108c547f Improve precisions of calendar TT and TAI times 2020-06-07 15:06:15 -04:00
Brandon Rhodes ecbd5d5cff Add JD fraction to TAI constructor, tdb_minus_tt()
And along the way, start simplifying docstrings that look a bit redundant.
2020-06-07 13:38:29 -04:00
Brandon Rhodes cf836d095c Move divmod responsibility from Time to Timescale 2020-06-07 13:10:03 -04:00
Brandon Rhodes fea2a3c49d A further dangling pyflakes complaint 2020-06-07 13:02:56 -04:00
Brandon Rhodes a6fa806131 Now that pyflakes runs in CI, fix its complaints 2020-06-07 12:57:47 -04:00
Brandon Rhodes 6c00986974 Another tweak to try to get Travis to run pyflakes 2020-06-07 12:45:29 -04:00
Brandon Rhodes d0700c8cc5 Try to debug CI 2020-06-07 12:31:24 -04:00
Brandon Rhodes 352f0c6122 Better approach for keeping TDB fraction precision 2020-06-07 12:12:51 -04:00
Brandon Rhodes 4f1bd9a64d Fix how time equality calls time subtraction 2020-06-07 11:55:34 -04:00
Brandon Rhodes d450a38a12 Try adding pyflakes to CI 2020-06-07 11:50:04 -04:00
Brandon Rhodes 47c0de9446 Complete a few timelib TODOs related to precision 2020-06-07 11:47:06 -04:00
Brandon Rhodes ccdfdba649 Bring Time attribute documentation up to date
Also, add methods by which users can ask for the nutation and precession
matrices in case they are doing low-level operations.
2020-06-07 11:12:12 -04:00
Brandon Rhodes b3cfd26d0d Stop caching the t.P and t.N matrices
These 3×3 matrices consume 72 bytes of memory for each element in a time
vector, yet are never used by Skyfield once it has built the matrix M.
2020-06-07 06:25:43 -04:00
Brandon Rhodes 6340e0f5f1 Fix #386 by updating jplephem version requirement 2020-06-07 06:13:27 -04:00
Brandon Rhodes 834a0ea998 Make Angle arc methods immune to “hours” warning 2020-06-06 14:06:04 -04:00
Brandon Rhodes 57f5ba6a1b Move nutation angle attributes to correct section 2020-06-06 12:17:45 -04:00
Brandon Rhodes 82b6eefe4c Remove old wonky _earth_tilt attribute 2020-06-06 12:12:30 -04:00
Brandon Rhodes 6be8e0937e Switch how users select IAU 2000B nutation angles
But also provide support for the old pattern.
2020-06-06 12:03:08 -04:00
Brandon Rhodes 9feac69a09 Remove a few dangling unused imports 2020-06-06 11:08:22 -04:00
Brandon Rhodes 21175f3ad9 Another round of simplification thanks to radians 2020-06-06 11:06:26 -04:00
Brandon Rhodes b892bc007a Switch new build_nutation_matrix() to radian args
This eliminates conversions in both the caller and the function itself.
2020-06-06 10:45:44 -04:00
Brandon Rhodes 20f0af7b36 Switch to caching nutation angles as radians 2020-06-06 10:43:17 -04:00
Brandon Rhodes 82a60a95e1 Cache mean obliquity in radians, not arcseconds
This is the first step towards caching all nutation-related angles in
radians, to minimize the amount of post-processing necessary when they
are used.
2020-06-06 10:38:50 -04:00
Brandon Rhodes 7d2aa41341 Try new t.nutation_angles_arcseconds angle pair 2020-06-05 22:16:57 -04:00
Brandon Rhodes 240789d1cc Break compute_nutation() free of _earth_tilt 2020-06-05 21:54:50 -04:00