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 }}
This repository was archived by the owner on Jun 16, 2018. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 16, 2018. It is now read-only.
With numpy 1.11.0 beta 2, test_no_numpy_warnings fails #187
With the new numpy beta release, the test_no_numpy_warnings fails:
____________________________ test_no_numpy_warnings ____________________________
def test_no_numpy_warnings():
# Make sure that no warnings are raised if some pixels are outside WCS
# (since this is normal)
ax = plt.subplot(1,1,1, projection=WCS(TARGET_HEADER))
ax.imshow(np.zeros((100,200)))
ax.coords.grid(color='white')
with catch_warnings() as ws:
plt.savefig('test.png')
# For debugging
for w in ws:
print(w)
> assert len(ws) == 0
E assert 1 == 0
E + where 1 = len([<warnings.WarningMessage object at 0x7fb5a50bfbe0>])
/usr/lib/python3/dist-packages/wcsaxes/tests/test_misc.py:70: AssertionError
----------------------------- Captured stdout call -----------------------------
{message : FutureWarning('Currently, slicing will try to return a view of the data, but will return a copy of the mask. In the future, it will try to return both as views.',), category : 'FutureWarning', filename : '/usr/lib/python3/dist-packages/numpy/ma/core.py', lineno : 3113, line : None}
This is similar to #181; however the warning is new :-)
Activity
astrofrog commentedon May 4, 2016
This appears to be fixed in the final 1.11, but feel free to re-open if you are still seeing the issue.