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
_denoise_cy.pyx throws a ValueError saying a double was expected but a float was received.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/aether/programs/anaconda3/envs/cellprofiler/lib/python2.7/site-packages/skimage/restoration/_denoise.py", line 117, in denoise_bilateral
bins, mode, cval)
File "skimage/restoration/_denoise_cy.pyx", line 114, in skimage.restoration._denoise_cy._denoise_bilateral
ValueError: Buffer dtype mismatch, expected 'double' but got 'float'
Holy moly! I believe #3110 introduced this: before, we would have upconverted your array to float64.
@hmaarrfk added some nice fused typedefs in #3253. We should fast-track that so that we can use Cython fused types for float everywhere doubles are used currently — including in denoise_bilateral.
@jni, I think you should just pull out the relevant file. I'll deal with the conflicts later. (whoever works on this should pull out the relevant file)
Reacted by Juan Nunez-Iglesias and Madison Swain-Bowden
I just compiled scikit-image 0.14.3 from source, which was supposed to fix this issue. Unfortunately, the issue remains in CellProfiler testing (see CellProfiler/CellProfiler#3661 (comment)).
@AetherUnbound many eyeballs looked over that code and thought, "looks about right!" 😂
I think the problem is that we overly constrain the other arguments to be np_floats — we should use regular double there and cast inside the function. I think. Don't have time to follow up right now. =\ Anyway, I'm going to reopen. 😞
Unfortunately, I think we missed it by a day, so we need to release 0.14.4 to get the fix in.
I think this might be a good enough reason to release 0.14.4, but I personally don't have time for it right at this second. Maybe somebody else from @scikit-image/core has the time
The PR that actually fixed things got in on May 28th #3936
Thanks for letting me know! We're going to build/release the last CellProfiler release in the 3.X series in the next couple days, just need to figure out what skimage version to build it with. I appreciate the explanation, makes total sense!
FWIW, we did discuss skipping 0.14.3 alltogether and just release 0.14.4, but it ended up being quite hard to rally enough core devs behind the idea and get it right. I was waiting to hear back of a few more issues before release 0.14.4, but this seems like it is the main one, and should get addressed.
Activity
jni commentedon Oct 8, 2018
Holy moly! I believe #3110 introduced this: before, we would have upconverted your array to float64.
@hmaarrfk added some nice fused typedefs in #3253. We should fast-track that so that we can use Cython fused types for float everywhere doubles are used currently — including in
denoise_bilateral.hmaarrfk commentedon Oct 8, 2018
@jni, I think you should just pull out the relevant file. I'll deal with the conflicts later. (whoever works on this should pull out the relevant file)
MaximLippeveld commentedon May 24, 2019
I just compiled scikit-image 0.14.3 from source, which was supposed to fix this issue. Unfortunately, the issue remains in CellProfiler testing (see CellProfiler/CellProfiler#3661 (comment)).
I get this error log:
hmaarrfk commentedon May 24, 2019
Well well, we still haven't really released 0.14.3, maybe we can skip it and go straight to 0.14.4 ;) I'll look into it this weekend.
jni commentedon May 25, 2019
😭
jni commentedon May 25, 2019
Ummmmmm...
This might be why we missed this:
scikit-image/skimage/restoration/tests/test_denoise.py
Lines 187 to 196 in a90fd22
tldr we parametrize the test on image dtype but then we don't actually use the dtype parameter 🤦♂️
AetherUnbound commentedon May 25, 2019
Ah, that's almost certainly my fault D:
jni commentedon May 25, 2019
@AetherUnbound many eyeballs looked over that code and thought, "looks about right!" 😂
I think the problem is that we overly constrain the other arguments to be
np_floats— we should use regular double there and cast inside the function. I think. Don't have time to follow up right now. =\ Anyway, I'm going to reopen. 😞hmaarrfk commentedon May 25, 2019
I don't think there is fault so much as oops
AetherUnbound commentedon May 25, 2019
Turns out my first forray into cython is not without Oops 😅
bethac07 commentedon Sep 3, 2019
Still getting this in 0.14.3 . Do we expect it to be fixed, or will that be in a later release?
hmaarrfk commentedon Sep 3, 2019
Unfortunately, I think we missed it by a day, so we need to release 0.14.4 to get the fix in.
I think this might be a good enough reason to release 0.14.4, but I personally don't have time for it right at this second. Maybe somebody else from @scikit-image/core has the time
The PR that actually fixed things got in on May 28th
#3936
But the 0.14.3 tag was made a few days earlier.
bethac07 commentedon Sep 3, 2019
Thanks for letting me know! We're going to build/release the last CellProfiler release in the 3.X series in the next couple days, just need to figure out what skimage version to build it with. I appreciate the explanation, makes total sense!
hmaarrfk commentedon Sep 3, 2019
FWIW, we did discuss skipping 0.14.3 alltogether and just release 0.14.4, but it ended up being quite hard to rally enough core devs behind the idea and get it right. I was waiting to hear back of a few more issues before release 0.14.4, but this seems like it is the main one, and should get addressed.
jni commentedon Sep 4, 2019
I've started the release process. 0.14.4 is tagged, wheels are building here:
https://travis-ci.org/scikit-image/scikit-image-wheels/builds/580668076
and here:
https://ci.appveyor.com/project/scikit-image/scikit-image-wheels
.
Once they build I should be able to push to PyPI. But there are often issues with the wheel building, so we'll see. =\
stefanv commentedon Sep 4, 2019
Nice work! Linux + Mac wheels look good. For Windows, did it build the wrong tag? The error message looks suspicious:
https://ci.appveyor.com/project/scikit-image/scikit-image-wheels/build/job/qmurjrlss2s6jfcd
bethac07 commentedon Sep 4, 2019
I think this is the relevant build? https://ci.appveyor.com/project/scikit-image/scikit-image-wheels/builds/27172570