Closed jni closed 6 years ago
@0x00b1 @mcquin can I just get an acknowledgement from someone? =) I just want to make sure someone knows this PR exists.
My greatest concern is backwards compatibility, since changing all of CellProfiler to Python 3 will be a large undertaking. It looks like all the tests (but bilateral, as you described) is passing! @0x00b1 may have to look into that a bit more. This LGTM, but I want to defer to Allen for merges on this repo.
The only other thing I would say is 2to3
adds list
castings around generators that don't necessarily need to be converted to lists. They're sprinkled throughout your repo so I didn't want to comment on every one, but many of those are likely unnecessary.
Thanks for your work! This is an awesome set of changes ๐
Ok, this should be really ready now except for the bilateral filter test. @0x00b1 can you investigate that one?
@AetherUnbound et al, yes, the output of modernize on the CP repo is eye-watering. ๐ ๐ญ ๐ Nevertheless, we want to expand CellProfiler use at my new group at Monash Micro Imaging so I anticipate a lot of work on the source. My OCD prevents me from working on a Python 2-only codebase without at least attempting an update, and anyway I would expect that CP will continue to be used well past 2020 so this work needs to happen at some point. So, I'm gonna give it a go, once this is merged. Wish me luck! ๐
The only other thing I would say is 2to3 adds list castings around generators that don't necessarily need to be converted to lists. They're sprinkled throughout your repo so I didn't want to comment on every one, but many of those are likely unnecessary.
Yeah, I was curious about that too. Nevertheless, it doesnโt really bother me. Do you have a preference @AetherUnbound?
Ok, this should be really ready now except for the bilateral filter test. @0x00b1 can you investigate that one?
Yep! No problem! @bethac07 and I are looking into this now. I really appreciate the PR!
@jni @AetherUnbound: @bethac07 and I deprecated bilateral_filter
for skimage.restoration.denoise_bilateral
:
@0x00b1
Yeah, I was curious about that too. Nevertheless, it doesnโt really bother me. Do you have a preference @AetherUnbound?
I think I removed all of the unnecessary casts in 4dd28fc anyway...
Hmm, bilateral filter is failing in Py2.7 anyway... Maybe it's a NumPy change more than a Python version change...?
@AetherUnbound @0x00b1 care to take another look at merging this?
ping @AetherUnbound @0x00b1
ping some more! =P Just fyi I'm back from SciPyConf and would like to start hacking at CellProfiler sometime next week.
Gosh, sorry @jni! I have to find a better way to filter notifications for Github. This looks good to me, let me check in with @0x00b1 on Monday and we'll see if we can merge this!
:tada:
Closes #19
There were two things I wasn't able to fix:
TestBilateralFilter.test_01_01_image
is failing for reasons unknown.centrosome/src/_cpmorphology.c
to compile as a Python3 extension. I've instead wrappedscipy.ndimage.maximum_filter
at the appropriate place and removed that file fromsetup.py
. I've left it there just in case.If someone could review this I would much appreciate it!