Repository navigation
Fix tifffile and __array_function__ failures in our CI - #3992
Conversation
|
Seems like amin is the correct function in either case. |
I'm not sure, as I didn't write that plugin. Could it be that the plugin predates that function? Anyway I'll give it a try, thanks! |
| with testing.raises(ValueError): | ||
| pad(arr, 4, mode='mean', reflect_type='odd') | ||
|
|
||
| @testing.skipif(LooseVersion(np.__version__) >= LooseVersion('1.17'), |
There was a problem hiding this comment.
You could just remove this test entirely
|
Why on earth is Travis failing now??? Same crap as before, but now with numpy.amin, which should work! |
|
Hmmm I misinterpreted what the problem was with dask. np.amin was itself not implemented in dask. Here's the fix: Merged in dask master. I guess I'll go back to using the min/max methods for now. |
|
... But I don't understand why it fixed appveyor and my local env... =\ |
|
@hmaarrfk regarding removal of the test... Sure but there's a bigger operation hiding there. We should remove our own "wrapper" of pad and crop. I'll just leave all that mess for another day. |
|
Maybe. But whatever works for you. I'm not one to hold up approval for that kind of thing anyway. Looks good. |
Do you want to open a ticket? |
|
@jni Do you want to backport? |
|
No, and certainly not until after the last remaining tests are fixed. I think we'll need to coerce to array in that case. Backports are "by popular demand". I don't think we have many people pining for 0.14.4. The biggest customer is CellProfiler and they are busy upgrading to Python 3. @0x00b1 have I got that right? |
|
Sounds good. We will have to engage the discussion (or I missed it) to define a due date at which we will stop maintaining the LTS |
|
That date is the Py2.7 end-of-life, Jan 1 2020. |
|
So, we take the same date? |
|
i don't know, i kinda feel like we should backport while we remember to. If 0.14.4 never gets released, so be it, but we will forget that this was a critical fix at some point. |
|
|
@stefanv those numbers don't immediately paint a clear story to me, but anyway, my view of popular demand is that someone stuck on 2.7 requires a specific fix (and expresses this on issues or the mailing list), not number of users. |
Description
Fixes #3985 #3991
keykeyword argument in Tifffile to replacepagesnp.aminandnp.amaxinstead ofminandmaxto ensure compatibility between NumPy 1.17 (with default__array_function__protocol) and various versions of dask.Checklist
Gallery example in./doc/examples(new features only)Benchmark in./benchmarks, if your changes aren't covered by anexisting benchmark
For reviewers
later.
__init__.py.doc/release/release_dev.rst.@meeseeksdev backport to v0.14.x