Re-enable high precision test for new versions of jplephem#11700
Re-enable high precision test for new versions of jplephem#11700pllim merged 1 commit intoastropy:mainfrom
Conversation
| # Pre-2.15, some versions of jplephem suffer from time rounding errors. | ||
| # We check whether we are up to date by looking for the entry in the | ||
| # changelog, which is included in the docstring. | ||
| if '**2020 September 2 — Version 2.15**' in jplephem.__doc__: |
There was a problem hiding this comment.
The problem with doing this is that if jplephem is ever updated to 2.16, the test will revert to the higher tolerances.
There was a problem hiding this comment.
No, the docstring contains entries for all versions, so in that sense it is OK. But I think it should be rewritten to use the version information regardless, as suggested in #11683 (comment) (will have to see if it can be done without pkg_resources)
There was a problem hiding this comment.
Oh, OK. I didn't realize that.
There was a problem hiding this comment.
Why is jplephem.__version__ not a thing? 😱 (p.s. Ah, I see that this has been discussed. I missed it.)
Is the version embedded in __doc__ predictable? If so, we can probably extract it with regex and then use the normal version comparison. I think we can xfail for 2.14 instead of adding an if-else?
1753bc7 to
87f2919
Compare
87f2919 to
26e7398
Compare
|
OK, now using |
|
I think this broke |
|
?!?!? How does |
|
And, sadly, I cannot reproduce since |
|
More positively, maybe best to move this in some form of What do you think, @pllim? |
|
Let's see if @saimn has anything to add, since he is the importlib expert here. |
|
No idea how jplephem can be importable but |
Re-enable high precision test for new versions of jplephem
Note the slightly inelegant version test for
jplephem. Obviously, we could also just require>=2.15, which was released last November. But it would only be for this one precision test, which seems a bit excessive.Since we know things work, and this will test the main branch, i set the milestone to 5.0.
fixes #11683