Skip to content
This repository was archived by the owner on Jun 16, 2018. It is now read-only.
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

Closed

Description

@olebole

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

  1. astrofrog commented on May 4, 2016

    @astrofrog
    Owner

    This appears to be fixed in the final 1.11, but feel free to re-open if you are still seeing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions