{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/7212","repository_url":"https://api.github.com/repos/numpy/numpy","labels_url":"https://api.github.com/repos/numpy/numpy/issues/7212/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/7212/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/7212/events","html_url":"https://github.com/numpy/numpy/issues/7212","id":132198982,"number":7212,"title":"ma.masked_equal() change fill_value","user":{"login":"jdemaria","id":10978115,"avatar_url":"https://avatars.githubusercontent.com/u/10978115?v=3","gravatar_id":"","url":"https://api.github.com/users/jdemaria","html_url":"https://github.com/jdemaria","followers_url":"https://api.github.com/users/jdemaria/followers","following_url":"https://api.github.com/users/jdemaria/following{/other_user}","gists_url":"https://api.github.com/users/jdemaria/gists{/gist_id}","starred_url":"https://api.github.com/users/jdemaria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdemaria/subscriptions","organizations_url":"https://api.github.com/users/jdemaria/orgs","repos_url":"https://api.github.com/users/jdemaria/repos","events_url":"https://api.github.com/users/jdemaria/events{/privacy}","received_events_url":"https://api.github.com/users/jdemaria/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-08T17:01:29Z","updated_at":"2016-02-09T09:53:01Z","closed_at":null,"body":"Hi, trying the example of [(http://docs.scipy.org/doc/numpy-dev/reference/generated/numpy.ma.masked_equal.html#numpy.ma.masked_equal)] I get:\r\na = np.arange(4)\r\nnp.ma.masked_equal(a, 2)\r\n==> masked_array(data = [0 1 -- 3],\r\n                    mask = [False False  True False],\r\n              fill_value = 2)\r\nbut\r\nnp.ma.masked_where(a == 2, a)\r\n==> masked_array(data = [0 1 -- 3],\r\n                    mask = [False False  True False],\r\n              fill_value = 999999)\r\ntested with 1.10.4\r\n\r\nIs it the normal behaviour? if yes so the documentation is wrong and this is not a shortcut of masked_where?\r\n\r\nthanks in advance"},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/181787767","html_url":"https://github.com/numpy/numpy/issues/7212#issuecomment-181787767","issue_url":"https://api.github.com/repos/numpy/numpy/issues/7212","id":181787767,"user":{"login":"seberg","id":61977,"avatar_url":"https://avatars.githubusercontent.com/u/61977?v=3","gravatar_id":"","url":"https://api.github.com/users/seberg","html_url":"https://github.com/seberg","followers_url":"https://api.github.com/users/seberg/followers","following_url":"https://api.github.com/users/seberg/following{/other_user}","gists_url":"https://api.github.com/users/seberg/gists{/gist_id}","starred_url":"https://api.github.com/users/seberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seberg/subscriptions","organizations_url":"https://api.github.com/users/seberg/orgs","repos_url":"https://api.github.com/users/seberg/repos","events_url":"https://api.github.com/users/seberg/events{/privacy}","received_events_url":"https://api.github.com/users/seberg/received_events","type":"User","site_admin":false},"created_at":"2016-02-09T09:53:01Z","updated_at":"2016-02-09T09:53:01Z","body":"Frankly, I suggested changing the docs, because I thought it is the\nsimple solution. I do not use masked arrays, and I am not sure how\nconfusing the current situation is. But changing the API can be tricky\nsince you never know who relies on it, warnings are necessary, etc. I\nam not against trying/discussing it, it just seems hard on first sight.\n\nWe could also add a fill_value keyword argument to some of these\nfunction to make things a bit more obvious. No idea if it would help."}}