Handle nans in data#125
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #125 +/- ##
==========================================
Coverage ? 97.77%
==========================================
Files ? 36
Lines ? 2334
Branches ? 388
==========================================
Hits ? 2282
Misses ? 32
Partials ? 20
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
rozyczko
left a comment
There was a problem hiding this comment.
Looks very good! Just a note about the possibility of adding more unit test coverage.
| invalid_data.data.variances[Q_index] = 0 # Set variances to zero | ||
|
|
There was a problem hiding this comment.
This sets all variances for Q_index=0 to zero. It means they all pass the isfinite check but then fail the e == 0 check. This is correct, but it would be stronger to also test the case where only some variances are zero while others have NaN/Inf. This would verify that the filtering happens first and the zero-check second.
There was a problem hiding this comment.
Thanks, made one of the variances NaN :)
Closing #119
Closing #118