You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
1.0rc1&2: test_eloc_attributes() fail on i386 #3496
@eteq - I looked into this a bit, and it turns out that I think the test may only be passing by luck on 64-bit systems. The difference between el2.longitude and it.spherical.lon is 1e-11 arcseconds.
A side note is that the values returned by el2 are arrays, so I think it's more strictly correct to do:
#3507should fix this - in fact, the logitudes should not be different, but the latitudes should. So #3507 changes to using np.allclose (or not np.allclose) and also changes lon to the correct behavior.
@olebole - can you double-check that #3507 does indeed solve this on i386? (Or if someone else can test it on i386, that's fine too)
Activity
[-]1.0rc1&2: test_eloc_attributes() fail on i386, arm64[/-][+]1.0rc1&2: test_eloc_attributes() fail on i386[/+]astrofrog commentedon Feb 14, 2015
@eteq - I looked into this a bit, and it turns out that I think the test may only be passing by luck on 64-bit systems. The difference between
el2.longitudeandit.spherical.lonis 1e-11 arcseconds.A side note is that the values returned by
el2are arrays, so I think it's more strictly correct to do:So I guess the question is, are the longitudes expected to be different?
Also, this test could do with more comments to explain why values should or should not be equal.
Update test_eloc_attributes to test correctly and also be explained
eteq commentedon Feb 16, 2015
#3507 should fix this - in fact, the logitudes should not be different, but the latitudes should. So #3507 changes to using
np.allclose(ornot np.allclose) and also changeslonto the correct behavior.@olebole - can you double-check that #3507 does indeed solve this on i386? (Or if someone else can test it on i386, that's fine too)
olebole commentedon Feb 16, 2015
I tested #3507 on i386, and it works.