-
Notifications
You must be signed in to change notification settings - Fork 19
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
get_clusters fix #108
get_clusters fix #108
Conversation
@finlaycampbell, can you explain what's happening here and maybe write a test for this? |
The output from igraph in the command below was coercing case IDs to character: Lines 90 to 93 in 7f5f401
This caused an error when trying to full_join this with linelist case IDs, if these were not characters. The fix coerces the igraph output IDs to whatever class the linelist case IDs are. I've added some tests that try get_clusters on IDs with different classes.
|
Can you add a test that checks if the input is a factor? |
Codecov Report
@@ Coverage Diff @@
## master #108 +/- ##
==========================================
+ Coverage 83.76% 83.93% +0.17%
==========================================
Files 19 19
Lines 659 660 +1
==========================================
+ Hits 552 554 +2
+ Misses 107 106 -1
Continue to review full report at Codecov.
|
Done |
This is failing on push, which might mean that this fix is affecting the new tests added in 7f5f401. Try merging master into this branch and see how the tests fare. |
Either that, or it means that the tests are failing on this branch because the tests were failing earlier. The PR/push checks really are the USB-socket of checks. |
…reaks / updated deprecated test
Ah didn't realise I hadn't merged the master branch fixes - hopefully working now. I also had to update one of the reference rds files because it seemed to have been created using an older version of outbreaks. |
In general, I'm against changing these tests because it's difficult to asses exactly what has changed, but IIRC, that particular test doesn't actually run anywhere but on a local machine (see #88), so it's all good. |
Yeah agreed - generally I'm not sure how good of an idea referencing saved objects is. |
[narrator] It wasn't a good idea. |
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.
LGTM
See #107