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.11.0 b2: the np.ma view warning is very noisy #7164
The b2 issues a FutureWarning that causes some downstream package tests to fail. The tests are usually like
with catch_warnings() as ws:
do_something()
assert len(ws) == 0
and numpy emits a 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.',). This happens in astrofrog/wcsaxes#187 and astropy/astropy#4549
Now about the error: hmm. So, my first impulse is to say that this test is wrong -- the whole point of deprecation/future warnings is that they give a grace period where old astropy will continue to work with new numpy. If you go ahead and convert these into hard errors, then it makes the whole ecosystem more brittle, because we lose that ability to gracefully warn people about things. What we do for numpy itself is have a switch where we turn all deprecation warnings into errors when testing development releases so that we notice, but then disable them for actual releases so that users aren't confused by e.g. a new version of Python adding a new deprecation warning and it causing old numpy releases to stop passing their test suite. (code here, though for you the details would probably be different unless you're using numpy's NoseTester class).
One thing we might be able to do is make that warning more narrowly focused so that it doesn't trigger as often -- it doesn't really fix the underlying problem, but it might help :-). @seberg: I think I saw a PR go by to make the masked array slicing warning more precise (i.e. trigger on writes, not on views) -- what happened with that? Is it in master? Is it already included in 1.11.0b2?
The other option (besides "do nothing") would be to back out the change because it's genuinely too disruptive. Do you have any thoughts on that?
No, I just suggested it might be possible, I had a start, but I don't think it was quite correct (but maybe it was correct enough, in that issuing that damn warning too few times would at the moment probably still be better). Frankly this warning is issued so incredibly imprecise and often, that I am not sure that it would not be better to just let it go.
One half solution is: issue it only when data is actually returned as a view (may_share_memory), and not bother about the fact that actually "setitem" is the actual dangerous operations. Possibility 2 (the precise one): When data is returned as a view, set the special "warning on write" flag to both arrays. Would still give loads of false positives, but at least not a gazillion that even trigger when all you do is even item setting.
I don't remember setting this warning go in, I think the change as such is good, but my gut feeling is if we don't make it more specific we should revert it for 1.11 maybe.
Now about the testing :). I have a pretty big PR open which tries to address that issue a bit (gh-7099). It creates a suppress_warnings context manager, with which you can do:
with suppress_warnings() as sup:
sup.filter(FutureWarning, message="Currently, slicing will try to return a view of the data")
sup.record(UserWarning) # Count UserWarnings *only*
do_something()
assert_(len(sup.log) == 0)
Note that doing an "ignore" filter, while it "works" can also backfire quite badly (mostly on Python <3.4) if you want to test this warning being given elsewhere.
PS: Why do you have tests that check that zero warnings are given? In dev tests, we the tests up to error on warnings. They are already raised (or printed), so if you they succeed they can't have given a warning?!
@seberg: I don't think astropy or wcsaxes are using the same testing machinery as us :-) (And I doubt they will want to depend on suppress_warnings for another year or so :-/)
Hehe, right, that was a bit silly, I have been too annoyed by warning testing recently ;). The context manager might still be interesting, since you can steal it. It proofs the point nicely that we should try to make warning assertions as specific as possible :/.
So, my first impulse is to say that this test is wrong...
I agree with @njsmith on this point and his rationale.
One thing we might be able to do is make that warning more narrowly focused so that it doesn't trigger as often...
I am not against doing this. Sorry the warning is driving people nuts. Was more concerned with avoiding false negatives as I got the strong impression that people were terrified of breaking behavior in masked array so I thought a loud warning would get people to take a hard look at their code and make sure it was doing what they expected. But I will admit it may be too loud. Happy to work with you, @seberg, to turn down the volume. :)
The other option (besides "do nothing") would be to back out the change because it's genuinely too disruptive.
On this point, I am sorry, but I must put my foot down. I think this is a -1 from me. There is already a consensus that the current behavior of masked array is broken and we have a way that people seem to agree on to fix it. Leaving the code broken I don't think is ok. Changing the warning, the volume, the wording, etc. of the warning I am ok with, but I do believe people should be warned and I do believe we should fix this behavior.
To be clear, I am not opposed to the change, but if we are creating serious problems for downstream, we have to back off. Maybe that is the case maybe not.
The reason why I mentioned simply reverting it is because I am not sure how fast or easy it is to make it silent (enough). For all I see this was put in just before the release, and if the only non-messy solution or clear solution is to revert it and figure out something better for the next release, then that sounds fine to me.
I have been waiting for probably 2-3 years for finally shipping relaxed strides, and guess what, in 1.11 we had to push that off for another two releases....
Frankly, if the Astropy folks are happy to live with the test failures, or we can find something that makes them happy enough (i.e. at least less warnings) then that is the way to go.
I am sure Astropy wants the ultimate change, so my opinion:
Do whatever downstream prefers us to do, at least for the 1.11 release!
1.11 we had to push that off for another two releases
1.10. IIRC. I'm planning on bringing relaxed stride checking as default back in 1.12. The only real problem that turned up was taking views of multidimensional Fortran ordered arrays that became C ordered as well.
Honestly, the mask is always not a view. Though that surprised me too, which is why I thought to make the change. It even shows up in the documentation, which @mhvk pointed out to me.
When accessing a slice, the output is a masked array whose data attribute is a view of the original data, and whose mask is either nomask (if there was no invalid entries in the original array) or a copy of the corresponding slice of the original mask. The copy is required to avoid propagation of any modification of the mask to the original.
That last line really gets me. If I were to use a normal array and take a view via slice or some other means, and assign some data value that affects the original array. However, if I mask some values (the same way as nan might be assigned to a normal array), then that won't affect the original array. Why this would be intentional is honestly still baffling to me.
Ah, there is a sharedmask flag, which gets set so that the child will not propagate to the parent on getitem (and maybe other things). But if that is the case, making the warning specific should not be hard at all.
@jakirkham: I totally understand your frustration (I've been in exactly your position before with other projects :-/), and thanks for being clear about what you are and aren't able to do.
It's an unfortunate reality that we're all volunteers here, trying to manage a project that's used very widely. This means that on the one hand we have to be pretty careful, and on the other that we sometimes fail to give things the attention that they need, at least in a timely manner :-/. So it does happen sometimes that the full consequences of a change aren't realized until later, and then we still have to try to figure out what's best for the millions of users who will be affected, even if this means making difficult choices and occasionally missing out on a good change (at least temporarily) because we don't have the interest and resources to do it right :-(.
I'm not sure what the right thing to do about this particular warning is, but I do have a few concerns:
Because it's so non-specific (basically goes off for any code that uses masked arrays at all), it risks creating a kind of "boy who cried wolf" effect -- if we spit out tons of false positives, then people get annoyed and stop paying attention to our warnings in general, and impatient with other deprecations (including ones that might be as or more important), plus it's not very helpful for tracking down real errors.
There's no way to fix code to shut it up -- you can't just like, rewrite your code to not use indexing :-). But this means that this is a warning that everyone will just end up constantly showing their users for the next 1-2 years, even the projects that are really good and on top of things, and the code that's been fixed and the code that hasn't been fixed will behave identically. This seems really unfriendly to our downstreams :-(
Currently, the matplotlib test suite triggers the warning 317 times, and the statsmodels test suite triggers the warning 102 times. (Well... it's actually worse than that, because that's running the statsmodels test suite without matplotlib installed, so it skips all the plotting tests; if you have matplotlib installed then statsmodels's usage of matplotlib triggers more warnings. The important thing here is that the warnings aren't just happening in special np.ma-testing-code -- matplotlib actually creates and uses np.ma arrays internaelly, so matplotlib users who aren't using np.ma can still get swamped with this message. In fact the statsmodels folks are a bit confused since as of right now they think they aren't using np.ma themselves at all, and they can't figure out where these warnings are coming from if it's not matplotlib.)
I guess another factor to keep in mind also is that it's possible that over the time period it would take to make this change, it might make more sense to deprecate np.ma entirely in favor of a better from-scratch rewrite. (I remember @charris was making noises in this direction, and it would fit in with some of our larger plans for making third-party array-ish classes work better.) This doesn't mean we shouldn't try to improve np.ma, but it might affect how much work people are willing to put into doing so.
My personal inclination given all of the above: if we can make the warning trigger conditions specific enough that carefully written code can avoid it entirely, and also make it silent for now (so a three step deprecation cycle: silent warning to give diligent projects like matplotlib time to clean things up -> visible warning to catch the laggards -> finally make the actual change), then it might make sense for 1.11, both otherwise we may need to pull back and reconsider it later.
changed the title [-]1.11.0 b2: FutureWarning causes test regression in astropy and wcsaxes[/-][+]1.11.0 b2: the np.ma view warning is very noisy[/+]on Feb 5, 2016
Just a comment on how the astropy/wcsaxes tests were written originally: I don't think there is anything wrong with them as such, but we can just be more specific in what kinds of warnings we are trying to catch. I don't think we need any change on the Numpy side to fix the tests.
However, in general I do think it would be a good idea to make the warning more targeted if possible, to the specific cases where behavior will actually change the results, if that is at all possible.
No, you are right, the tests are not that bad, though being more specific is better, since then you can print new upstream warnings without making it appear like problems to your own downstream users.
Doing it is tricky though in any case :(. catch_warnings catches everything, and "ignore" somewhat breaks testing, at least on Python 2 (since we all test python 3 as well, I am not entirely sure it is that bad).... For numpy I started with gh-7099 to address the problem, but if someone has a nicer idea :)...
Just to mention it here, see gh-7187 for my take on tuning it down, lets see if it is enough
Sorry @seberg. You are right to be concerned at how noisy the warning can be. For me this was becoming a bit of a hail mary to try to finish this bugfix and get it in with a limited amount of time. Sorry for letting my ambition get the better of me and making both us frustrated.
Part of the problem of narrowing down the changes in this code is `numpy.ma` goes through so many changes that there is a chance we will loose one in a bugfix. Right now I can see something that went wrong in one of my many rebases. I'll try to fix it, but I am not sure whether or not this is a good use of effort right now.
The big question to me is going forward is less about where the warning will or won't go, but who will maintain the patch as I don't think I can guarantee that any more. If we can't resolve this issue, then it is probably simplest to rip out the warning altogether and let someone else try again when they have time. It is really unfortunate that this may be the case, but it might just simply be the best solution.
If we can resolve the maintenance issue, then I have a few thoughts on the warning.
First, for warning specificity, we can probably rip out the `__getitem__` warning. I know I argued for this before, but this should hopefully halve its frequency. Also, this patch will never matter if the array being set has a value of `nomask` (just `False`). If we check to make sure it is not `nomask`, that should eliminate many of these cases where `matplotlib` or `seaborn` are failing. Namely cases where there is a trivial `MaskedArray` (possibly converted from a plain `ndarray`). Though there has some been some discussion about changing that case, I think we can safely assume that is a breaking change and the two can be staggered in the release cycle to keep things simple. All other cases I can think of should still propagate so this has the right balance of simplicity and affect.
Second, for problem identification, I don't think it is prudent to be converting this warning into an error. Honestly, I simply can't think of any warning that we add here that should be converted into an error. The only thing this would help with is identifying possible errors, but there is no fix that will make them quiet. The reason I think this is because the change here is breaking and there is no way I can think of to workaround. It's not like we can add extra arguments to __setitem__ to toggle between behaviors or anything like this. The best that we can hope for is to alert people to the problem and provide them a way to manually check off parts of there code that work. If someone can think of something better, please feel free to suggest it.
That being said, I think we can provide a mechanism for silencing this warning as needed and I think it is quite simple. This should aid in this manual checking effort. In particular, we subclass FutureWarning as something like MaskedArrayFutureWarning. We will likely get a lot of use out of this object in the future. If needed, we could even subclass it further in this case. This way people can simply filter this one out if they need to. I don't know that we should turn this off for them by default, but this will at least give them a simple way to turn it off globally in their code if they so choose too.
If people like this proposal, I have a PR ( https://github.com//pull/7194 ) for this. This should at least improve the warning's specificity and provide a simple mechanism to control its noise. However, I am not sure if we should commit to this unless someone can maintain the bugfix patch.
If anyone has a chance, I would appreciate some feedback on this ( #7194 ). I think this should help quiet things down and provide a way out of the warning for those wanting one.
At this point, it looks like there are two main proposals. Namely ( #7187 ) and ( #7194 ). If anybody hasn't already taken a look, please do. Let us know what you think works or doesn't work. It would be nice to have some other voices, particularly from downstream, weigh in.
Now the question is just whether the scipy tests are actually good enough to show the noise ;). Anyway, my guess almost all of it is really gone, just a few tweaks remaining.
Ok, I think it was just closed out by the "Fixes" notes in the PRs.
I guess I am trying to get an idea if there are still problems here that are worth thinking about or if people are happy with the frequency of this warning now.
Activity
njsmith commentedon Feb 1, 2016
First of all, thanks for reporting :-)
Now about the error: hmm. So, my first impulse is to say that this test is wrong -- the whole point of deprecation/future warnings is that they give a grace period where old astropy will continue to work with new numpy. If you go ahead and convert these into hard errors, then it makes the whole ecosystem more brittle, because we lose that ability to gracefully warn people about things. What we do for numpy itself is have a switch where we turn all deprecation warnings into errors when testing development releases so that we notice, but then disable them for actual releases so that users aren't confused by e.g. a new version of Python adding a new deprecation warning and it causing old numpy releases to stop passing their test suite. (code here, though for you the details would probably be different unless you're using numpy's
NoseTesterclass).One thing we might be able to do is make that warning more narrowly focused so that it doesn't trigger as often -- it doesn't really fix the underlying problem, but it might help :-). @seberg: I think I saw a PR go by to make the masked array slicing warning more precise (i.e. trigger on writes, not on views) -- what happened with that? Is it in master? Is it already included in 1.11.0b2?
The other option (besides "do nothing") would be to back out the change because it's genuinely too disruptive. Do you have any thoughts on that?
seberg commentedon Feb 1, 2016
No, I just suggested it might be possible, I had a start, but I don't think it was quite correct (but maybe it was correct enough, in that issuing that damn warning too few times would at the moment probably still be better). Frankly this warning is issued so incredibly imprecise and often, that I am not sure that it would not be better to just let it go.
One half solution is: issue it only when
datais actually returned as a view (may_share_memory), and not bother about the fact that actually "setitem" is the actual dangerous operations. Possibility 2 (the precise one): When data is returned as a view, set the special "warning on write" flag to both arrays. Would still give loads of false positives, but at least not a gazillion that even trigger when all you do is even item setting.I don't remember setting this warning go in, I think the change as such is good, but my gut feeling is if we don't make it more specific we should revert it for 1.11 maybe.
Now about the testing :). I have a pretty big PR open which tries to address that issue a bit (gh-7099). It creates a
suppress_warningscontext manager, with which you can do:Note that doing an "ignore" filter, while it "works" can also backfire quite badly (mostly on Python <3.4) if you want to test this warning being given elsewhere.
seberg commentedon Feb 1, 2016
PS: Why do you have tests that check that zero warnings are given? In dev tests, we the tests up to error on warnings. They are already raised (or printed), so if you they succeed they can't have given a warning?!
njsmith commentedon Feb 1, 2016
@seberg: I don't think astropy or wcsaxes are using the same testing machinery as us :-) (And I doubt they will want to depend on
suppress_warningsfor another year or so :-/)olebole commentedon Feb 1, 2016
maybe @astrofrog could comment here...
njsmith commentedon Feb 1, 2016
@jakirkham: so that's one vote up above for possibly reverting #7020. What do you think?
seberg commentedon Feb 1, 2016
Hehe, right, that was a bit silly, I have been too annoyed by warning testing recently ;). The context manager might still be interesting, since you can steal it. It proofs the point nicely that we should try to make warning assertions as specific as possible :/.
jakirkham commentedon Feb 2, 2016
I agree with @njsmith on this point and his rationale.
I am not against doing this. Sorry the warning is driving people nuts. Was more concerned with avoiding false negatives as I got the strong impression that people were terrified of breaking behavior in masked array so I thought a loud warning would get people to take a hard look at their code and make sure it was doing what they expected. But I will admit it may be too loud. Happy to work with you, @seberg, to turn down the volume. :)
On this point, I am sorry, but I must put my foot down. I think this is a -1 from me. There is already a consensus that the current behavior of masked array is broken and we have a way that people seem to agree on to fix it. Leaving the code broken I don't think is ok. Changing the warning, the volume, the wording, etc. of the warning I am ok with, but I do believe people should be warned and I do believe we should fix this behavior.
seberg commentedon Feb 2, 2016
To be clear, I am not opposed to the change, but if we are creating serious problems for downstream, we have to back off. Maybe that is the case maybe not.
The reason why I mentioned simply reverting it is because I am not sure how fast or easy it is to make it silent (enough). For all I see this was put in just before the release, and if the only non-messy solution or clear solution is to revert it and figure out something better for the next release, then that sounds fine to me.
I have been waiting for probably 2-3 years for finally shipping relaxed strides, and guess what, in 1.11 we had to push that off for another two releases....
Frankly, if the Astropy folks are happy to live with the test failures, or we can find something that makes them happy enough (i.e. at least less warnings) then that is the way to go.
I am sure Astropy wants the ultimate change, so my opinion:
Do whatever downstream prefers us to do, at least for the 1.11 release!
charris commentedon Feb 2, 2016
1.10. IIRC. I'm planning on bringing relaxed stride checking as default back in 1.12. The only real problem that turned up was taking views of multidimensional Fortran ordered arrays that became C ordered as well.
seberg commentedon Feb 2, 2016
Simce apparently I am daft Can someone please give me an example when the mask is not already a view into the other mask?!
jakirkham commentedon Feb 2, 2016
Honestly, the mask is always not a view. Though that surprised me too, which is why I thought to make the change. It even shows up in the documentation, which @mhvk pointed out to me.
( http://docs.scipy.org/doc/numpy/reference/maskedarray.generic.html#indexing-and-slicing )
That last line really gets me. If I were to use a normal array and take a view via slice or some other means, and assign some data value that affects the original array. However, if I mask some values (the same way as
nanmight be assigned to a normal array), then that won't affect the original array. Why this would be intentional is honestly still baffling to me.seberg commentedon Feb 2, 2016
How is this always, btw. gives the same even on 1.8.2:
seberg commentedon Feb 2, 2016
Ah, there is a sharedmask flag, which gets set so that the child will not propagate to the parent on getitem (and maybe other things). But if that is the case, making the warning specific should not be hard at all.
18 remaining items
njsmith commentedon Feb 5, 2016
@jakirkham: I totally understand your frustration (I've been in exactly your position before with other projects :-/), and thanks for being clear about what you are and aren't able to do.
It's an unfortunate reality that we're all volunteers here, trying to manage a project that's used very widely. This means that on the one hand we have to be pretty careful, and on the other that we sometimes fail to give things the attention that they need, at least in a timely manner :-/. So it does happen sometimes that the full consequences of a change aren't realized until later, and then we still have to try to figure out what's best for the millions of users who will be affected, even if this means making difficult choices and occasionally missing out on a good change (at least temporarily) because we don't have the interest and resources to do it right :-(.
I'm not sure what the right thing to do about this particular warning is, but I do have a few concerns:
Because it's so non-specific (basically goes off for any code that uses masked arrays at all), it risks creating a kind of "boy who cried wolf" effect -- if we spit out tons of false positives, then people get annoyed and stop paying attention to our warnings in general, and impatient with other deprecations (including ones that might be as or more important), plus it's not very helpful for tracking down real errors.
There's no way to fix code to shut it up -- you can't just like, rewrite your code to not use indexing :-). But this means that this is a warning that everyone will just end up constantly showing their users for the next 1-2 years, even the projects that are really good and on top of things, and the code that's been fixed and the code that hasn't been fixed will behave identically. This seems really unfriendly to our downstreams :-(
Currently, the matplotlib test suite triggers the warning 317 times, and the statsmodels test suite triggers the warning 102 times. (Well... it's actually worse than that, because that's running the statsmodels test suite without matplotlib installed, so it skips all the plotting tests; if you have matplotlib installed then statsmodels's usage of matplotlib triggers more warnings. The important thing here is that the warnings aren't just happening in special np.ma-testing-code -- matplotlib actually creates and uses np.ma arrays internaelly, so matplotlib users who aren't using np.ma can still get swamped with this message. In fact the statsmodels folks are a bit confused since as of right now they think they aren't using np.ma themselves at all, and they can't figure out where these warnings are coming from if it's not matplotlib.)
I guess another factor to keep in mind also is that it's possible that over the time period it would take to make this change, it might make more sense to deprecate np.ma entirely in favor of a better from-scratch rewrite. (I remember @charris was making noises in this direction, and it would fit in with some of our larger plans for making third-party array-ish classes work better.) This doesn't mean we shouldn't try to improve np.ma, but it might affect how much work people are willing to put into doing so.
My personal inclination given all of the above: if we can make the warning trigger conditions specific enough that carefully written code can avoid it entirely, and also make it silent for now (so a three step deprecation cycle: silent warning to give diligent projects like matplotlib time to clean things up -> visible warning to catch the laggards -> finally make the actual change), then it might make sense for 1.11, both otherwise we may need to pull back and reconsider it later.
[-]1.11.0 b2: FutureWarning causes test regression in astropy and wcsaxes[/-][+]1.11.0 b2: the np.ma view warning is very noisy[/+]astrofrog commentedon Feb 5, 2016
Just a comment on how the astropy/wcsaxes tests were written originally: I don't think there is anything wrong with them as such, but we can just be more specific in what kinds of warnings we are trying to catch. I don't think we need any change on the Numpy side to fix the tests.
However, in general I do think it would be a good idea to make the warning more targeted if possible, to the specific cases where behavior will actually change the results, if that is at all possible.
seberg commentedon Feb 5, 2016
No, you are right, the tests are not that bad, though being more specific is better, since then you can print new upstream warnings without making it appear like problems to your own downstream users.
Doing it is tricky though in any case :(.
catch_warningscatches everything, and "ignore" somewhat breaks testing, at least on Python 2 (since we all test python 3 as well, I am not entirely sure it is that bad).... For numpy I started with gh-7099 to address the problem, but if someone has a nicer idea :)...Just to mention it here, see gh-7187 for my take on tuning it down, lets see if it is enough
jakirkham commentedon Feb 5, 2016
Sorry @seberg. You are right to be concerned at how noisy the warning can be. For me this was becoming a bit of a hail mary to try to finish this bugfix and get it in with a limited amount of time. Sorry for letting my ambition get the better of me and making both us frustrated.
Part of the problem of narrowing down the changes in this code is `numpy.ma` goes through so many changes that there is a chance we will loose one in a bugfix. Right now I can see something that went wrong in one of my many rebases. I'll try to fix it, but I am not sure whether or not this is a good use of effort right now.
The big question to me is going forward is less about where the warning will or won't go, but who will maintain the patch as I don't think I can guarantee that any more. If we can't resolve this issue, then it is probably simplest to rip out the warning altogether and let someone else try again when they have time. It is really unfortunate that this may be the case, but it might just simply be the best solution.
If we can resolve the maintenance issue, then I have a few thoughts on the warning.
First, for warning specificity, we can probably rip out the `__getitem__` warning. I know I argued for this before, but this should hopefully halve its frequency. Also, this patch will never matter if the array being set has a value of `nomask` (just `False`). If we check to make sure it is not `nomask`, that should eliminate many of these cases where `matplotlib` or `seaborn` are failing. Namely cases where there is a trivial `MaskedArray` (possibly converted from a plain `ndarray`). Though there has some been some discussion about changing that case, I think we can safely assume that is a breaking change and the two can be staggered in the release cycle to keep things simple. All other cases I can think of should still propagate so this has the right balance of simplicity and affect.
Second, for problem identification, I don't think it is prudent to be converting this warning into an error. Honestly, I simply can't think of any warning that we add here that should be converted into an error. The only thing this would help with is identifying possible errors, but there is no fix that will make them quiet. The reason I think this is because the change here is breaking and there is no way I can think of to workaround. It's not like we can add extra arguments to
__setitem__to toggle between behaviors or anything like this. The best that we can hope for is to alert people to the problem and provide them a way to manually check off parts of there code that work. If someone can think of something better, please feel free to suggest it.That being said, I think we can provide a mechanism for silencing this warning as needed and I think it is quite simple. This should aid in this manual checking effort. In particular, we subclass
FutureWarningas something likeMaskedArrayFutureWarning. We will likely get a lot of use out of this object in the future. If needed, we could even subclass it further in this case. This way people can simply filter this one out if they need to. I don't know that we should turn this off for them by default, but this will at least give them a simple way to turn it off globally in their code if they so choose too.If people like this proposal, I have a PR ( https://github.com//pull/7194 ) for this. This should at least improve the warning's specificity and provide a simple mechanism to control its noise. However, I am not sure if we should commit to this unless someone can maintain the bugfix patch.
jakirkham commentedon Feb 5, 2016
If anyone has a chance, I would appreciate some feedback on this ( #7194 ). I think this should help quiet things down and provide a way out of the warning for those wanting one.
jakirkham commentedon Feb 8, 2016
At this point, it looks like there are two main proposals. Namely ( #7187 ) and ( #7194 ). If anybody hasn't already taken a look, please do. Let us know what you think works or doesn't work. It would be nice to have some other voices, particularly from downstream, weigh in.
jakirkham commentedon Feb 10, 2016
So there is a new beta that contains a hopefully quieter warning. It would be good to know if this is still very noisy.
rgommers commentedon Feb 10, 2016
There's no noise at all from
scipy.stats.mstatsat least (not sure if there was before), which is one of the largest masked array users.jakirkham commentedon Feb 10, 2016
Well, that's a relief (I think). Let's hope it was only noise and not important warnings.
seberg commentedon Feb 10, 2016
Now the question is just whether the scipy tests are actually good enough to show the noise ;). Anyway, my guess almost all of it is really gone, just a few tweaks remaining.
jakirkham commentedon Feb 21, 2016
So, it seems like there haven't been any complaints about this recently. Is it done?
charris commentedon Feb 21, 2016
@jakirkham We should probably wait till the next beta, or maybe rc1 (I'm tending that way) before closing.
jakirkham commentedon Feb 21, 2016
Ok, I think it was just closed out by the "Fixes" notes in the PRs.
I guess I am trying to get an idea if there are still problems here that are worth thinking about or if people are happy with the frequency of this warning now.