Repository navigation
Fix IERS test following update of IERS-B - #5051
Conversation
|
cc: @mhvk |
| # Look at times before and after the test file begins. | ||
| assert np.allclose(dat.ut1_utc(Time(50000, format='mjd').jd).value, 0.0262719) | ||
| # Look at times before and after the test file begins. 0.1292905 is | ||
| # the IERS-B value from MJD=57359. The value in |
There was a problem hiding this comment.
Why look at 50000 when you quote 57359 here?
There was a problem hiding this comment.
This is testing a time well before the first value in the test IERS-A file, which it does by assuming that first value for all previous times. Since the bundled IERS-B overlaps with the test IERS-A, the numeric value will come from the IERS-B table at MJD=59359.0, not the test IERS-A.
|
@taldcroft - sorry to have messed up the IERS B upload! I think the main problem really was that the IERS B values themselves actually changed... I don't know about the flag -- I don't think I would ever have realised this was needed, so perhaps instead we should force a remote data test generally before merging? |
|
Still failing with: |
|
@pllim - I suspect you have something cached in your test area. Can you do a |
|
@mhvk - I was remiss in not running this locally since I did know that --remote-data was needed. I have presumed that Travis does not allow getting remote data, but is that actually true? It does definitely get tested before a release as part of the process, but having a tag might help a bit and remind the reviewer to run locally with --remote-data. |
|
Re: remote data on Travis I have at least two packages that I had successfully run on Travis CI with |
|
@taldcroft , I cleaned the repo and |
|
@taldcroft - Travis allows remote data, however there is a higher change to run overtime. Would be nice to have something like |
|
@pllim - can you run with |
|
Re: remote test on demand -- The obvious thing to look for is the Re: pdb -- Things are just getting weirder on my end. See below... Tests pass when I do All the relevant |
|
@pllim - I can reproduce at least some of your failures by forcing the |
|
BTW, what is happening here is that if you don't have any IERS-A file in the cache (always true at the beginning for testing) and it fails to download, then it falls back to the bundled IERS-B. But that is different in the details and tests fail. |
|
I just pushed another improvement to the testing in 587a295. Previously the IERS auto-download URL was being changed globally. Now it is done within a context manager and so always reverts to the normal value after the IERS unit testing. |
Note that in this case a warning is issued so the user knows, but of course that is not seen in tests. |
|
@taldcroft @mhvk - what is the status of this? can I merge and include in 1.2rc1? |
|
The changes look good to me, so if @taldcroft is happy, so am I. |
|
I ran the |
|
Thanks @taldcroft! |
Fix IERS test following update of IERS-B
|
Just for info, I'm now seeing the following failure: I guess this is related to the download URL being unreliable, but as @pllim said it doesn't happen if I run just the iers tests, so I don't think it's just an unreliable server. |
|
This means at some point it is failing to download and defaulting to IERS-B. I'll investigate. |
|
@taldcroft - I figured it out, see #5072 and #5074 |
Fixes the IERS-related error in #4896. CI is skipped here because the only change is in a test that does not get run on CI.
It seems like the IERS-B update PR(s) were merged without running --remote-data tests locally. Maybe we need something like a "requires --remote-data testing" tag ("Remote testing needed"?).