-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #192 warnings for scipy mad func and other deprecated params #194
Conversation
e2ef6dd
to
0e8be8a
Compare
Codecov Report
@@ Coverage Diff @@
## master #194 +/- ##
=======================================
Coverage 95.51% 95.51%
=======================================
Files 53 53
Lines 2695 2697 +2
=======================================
+ Hits 2574 2576 +2
Misses 121 121
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
@gwaybio . This PR is ready. 5 warnings still persist. Two are related to I found the remainder three harder to fix. This method is generating duplicated column names when pycytominer/pycytominer/cyto_utils/cells.py Line 604 in b4d32d3
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One inline comment.
The merge error is interesting. In your digging, did you notice any more details about what was going on? Is it safe to ignore this warning (pasted below)? (It's the first time I'm seeing it, to be honest)
pycytominer/tests/test_cyto_utils/test_cells.py::test_merge_single_cells
/opt/hostedtoolcache/Python/3.7.13/x64/lib/python3.7/site-packages/pandas/core/frame.py:9203: FutureWarning: Passing 'suffixes' which cause duplicate columns {'ObjectNumber_cytoplasm'} in the result is deprecated and will raise a MergeError in a future version.
validate=validate,
Given that 5 errors still persist, and @shntnu opened #192, I think he should have a say in how we proceed.
A couple other notes that might help our decision:
- We're moving away from the
SingleCells().merge_single_cells()
functionality, and solving this future error might not be necessary (unless the warning is pointing to some logic error! 😬 ) - We're also moving away from sqlalchemy, and same comment about these other 3 errors.
- My vote for how to proceed is to merge after addressing comments, but Shantanu, please chime in if you have any other concerns.
Thanks for this review Greg.
IIUC
I'd expect this too. Removing such method would solve this warning. |
It's hard for me to tell if this is a logic error. We can't exclude the possibility that it is a logic error, but (1) it might just be a bad test fixture (2) it is very likely some edge case. It's happening here (in four similar calls to pycytominer/pycytominer/cyto_utils/cells.py Lines 682 to 687 in b4d32d3
I like this plan I took screenshots of the debugger for 3/4 instances where this warning occurs. Note the duplication of The duplication is happening iff
ap_new.merge_single_cells is called in that file.
|
Sorry for my delay in getting back to this (it dropped off the radar, to be honest!). Off the radar until today when @axiomcura noted an error in his pycytominer testing (and pycytominer's requirements for scipy =>=1.3). Thanks for your detective work Erik! It seems that this PR will fix this error, and keep our scipy requirements up-to-date It seems to me that we're all set to merge this in after Shantanu's 👍 :
p.s. - I opened #217 to capture Shantanu's sleuthing in #194 (comment) |
Description
Change deprecated methods from external libraries.
What is the nature of your change?
Checklist