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
Redundancy check for MGC #216
Conversation
✔️ Deploy Preview for hyppo ready! 🔨 Explore the source changes: da4d4e6 🔍 Inspect the deploy log: https://app.netlify.com/sites/hyppo/deploys/6168440698284b000715a0f8 😎 Browse the preview: https://deploy-preview-216--hyppo.netlify.app |
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.
As @sampan501 pointed out earlier, #125 asks for redundant rows, not elements.
Also, you don't need to re-open new PR from the same branch. Just commit directly, and the PR will be updated.
Thank you for pointing out my mistake. I'll correct it. |
Done. There are too many commits but not much changes from the main repo. Should I create a new fork and then add just the changed files? |
Codecov Report
@@ Coverage Diff @@
## main #216 +/- ##
==========================================
- Coverage 96.54% 96.49% -0.06%
==========================================
Files 31 31
Lines 1477 1484 +7
==========================================
+ Hits 1426 1432 +6
- Misses 51 52 +1
Continue to review full report at Codecov.
|
@Verathagnus Few things:
Looking through the commits, it is a little difficult to follow what all was done (code disappeared, reappeared, files were duplicated, etc.). I would go through, and cherry-pick the commits that are off or restart with a clean branch. |
First, I tried using a dictionary(or set) to check for duplicate rows but it caused issue with tests
Next I tried this
This one also caused issues in the tests. |
I believe this fix should be about a 1 line check of inputs |
I tried with that as well previously but there was a test in which it came out wrong.
I placed the check_redundancy call before the check_input call previously during that test. That may have caused the issue. I'll try that again this time. |
yes it should be after |
#220 |
Reference issue
Add warning when X or Y have redundant rows; close #125
Type of change
Documentation
What does this implement/fix?
Added a function _check_redundancy in mgc.py to check if redundancies are present in x or y and report a warning to the user.
Additional information
I used the following code to find if redundant rows exist
Added a test in test_mgc.py for checking if UserWarning is printed successfully.