-
Notifications
You must be signed in to change notification settings - Fork 51
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 337 #338
Fix 337 #338
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #338 +/- ##
=======================================
Coverage 98.70% 98.71%
=======================================
Files 28 28
Lines 1860 1864 +4
Branches 402 404 +2
=======================================
+ Hits 1836 1840 +4
Misses 2 2
Partials 22 22 ☔ View full report in Codecov by Sentry. |
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.
Thanks for addressing the issue. Could you please also raise a Python warning?
@@ -363,6 +363,15 @@ def _prepare_input(df, series, drop_duplicates, sort): | |||
series : Series | |||
Formatted Series. | |||
""" | |||
if series is None: | |||
logger.warning( |
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.
I think we also should raise a real warning
warnings.warn(...)
in addition to logging one.
|
||
|
||
def test_series_none(dHdl, caplog): | ||
statistical_inefficiency(dHdl, series=None) |
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.
Also test with pytest.warns()
, see above.
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.
Warning instead of logger works for me (although I would also be happy with warning + logger if you prefer both). Thanks for addressing my comments!
@xiki-tempula looks good as it is but if you want to add the logger back then please do. Please squash-merge whenever you're ready. |
…an-error-when-not-given-series
None
forstatistical_inefficiency
df
andseries
forstatistical_inefficiency
doesn't have the same length