Repository navigation
Fix remote test failures related to IERS update - #10387
Conversation
|
Hmm. I'll have to do some local tests, but I wonder if this is due to the recent changes in how the IERS files are delivered, such that they were out-of-sync at the time the update happened? |
|
I updated them a few days ago, and then again today, and in both cases the remote failures have happened - very strange! |
|
Hmm. The mystery deepens: try as I might I cannot reproduce this locally - the test just keeps passing. I wonder if this is a location problem? I.e., @astrofrog (and travis) might be getting European servers but I'm getting a us one? |
|
Oh wait, nevermind - it's even more insidious: apparently this test passes on py3.8 but not 3.7. I can reproduce now though so perhaps I can make comparisons between the two envs and work it out. |
|
@mhvk @taldcroft - any ideas what could be going on here? |
|
I've tracked the issue down to the following line: astropy/astropy/utils/iers/iers.py Line 803 in 4d754b4 in |
|
Hmm, so maybe it's just that past IERS B/A combinations didn't have empty UT1-UTC entries? I think is what gives non-finite answers there as it maps onto nans in the resulting table. So it's possible this was wrong all along but we just didn't realize it because there weren't problematic tables? I'm still struggling to find any good matches by actually looking at the files directly. I guess that was the purpose of the substitution in the first place but it may be this is due for a more complicated clean-up in 4.2 if we can band-aid this for now... (And to continue my more prosaic line of inquiry above: in a new py38 environment it's also now failing so it was probably a red herring due to something stuck in my initial environment) |
|
I've pushed a commit that resolves the issue for me locally, though I'm not sure if it's the right fix. But conceptually, doing the filtering to me seems odd since later on it seems we don't pre-filter when assigning values to the table. @mhvk - I think we really need your expertise here to determine whether this is the right fix thought! (assuming CI actually passes) |
|
While this seems to fix the problematic test, other tests are now failing 😢 |
|
Looks like now |
|
If anyone wants to push commits here please feel free to! |
|
OK, I at least now understand the problem: IERS_A includes also IERS_B values, but those are not always identical to the actual IERS_B (since, surprisingly, those change). So, we wrote code to update with values from IERS_B; the I must admit that I'm not sure what the right behaviour really should be; one could argue for just replacing everything, but on the other hand the iers_b bundled in iers_a might be more up to date. My own sense would be that IERS_Auto should also download IERS_B and just make its own mix. But that's really for another PR, so I think here it makes most sense to simply adjust the test so that it actually tests what the current code is supposed to do. I'll push a fix with that. Then, we can open another issue to think through what the ultimate behaviour should be. |
|
And there was an issue more or less about this (but without the |
mhvk
left a comment
There was a problem hiding this comment.
Approving, though since it is now partially my work, won't merge yet until others have had a look.
|
Thanks for fixing this! I agree this is the right approach for now (just making sure the test matches what's actually done). I'll go ahead and merge this since the remote test build is now passing. |
Fix remote test failures related to IERS update
Fix remote test failures related to IERS update
This fixes two of the failures mentioned by @pllim in #10386. However, I'm not sure how to deal with the following:
I re-ran the update script hence the small updates in this PR, but that didn't help - the failures still happen.