Skip to content
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

misc, tests, diagnostic #997

Merged
merged 7 commits into from Jul 31, 2013
Merged

misc, tests, diagnostic #997

merged 7 commits into from Jul 31, 2013

Conversation

josef-pkt
Copy link
Member

issue #962: add tests, surprisingly all tests pass without changes to the functions even though they use wrapped results instead of ._results (tested only with pandas 0.7.3 so far)

  • delinting, make pylint happy so it doesn't report errors (that are not really errors)
  • some updates to example (for refactoring victims)
  • fix possible endless loop in ttest_power

@josef-pkt
Copy link
Member Author

rebased on master

added some delinting

@josef-pkt
Copy link
Member Author

@jseabold This needs to go into 0.5.0
while checking some examples, I found the possibility of an endless loop, (in scipy fortran extension that cannot be killed except by killing the process)

@jseabold
Copy link
Member

Ok. Will wait for Travis. Let me know if/when to merge.

if alternative in ['two-sided', '2s', 'smaller']:
crit_low = stats.t.ppf(alpha_, df)
pow_ += stats.nct._cdf(crit_low, df, d*np.sqrt(nobs))
#print crit_low, df, d*np.sqrt(nobs)
if np.isnan(crit_upp):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

crit_low?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copy-paste error and not running the tests

also missing an any()
fixed

@jseabold
Copy link
Member

Merge?

@josef-pkt
Copy link
Member Author

go ahead, all green (I also ran the tests this time with the oldest versions.)

jseabold added a commit that referenced this pull request Jul 31, 2013
TST/BUG: Bug fixes and tests for diagnostic and pylint fixes.
@jseabold jseabold merged commit 933bf1b into statsmodels:master Jul 31, 2013
@josef-pkt josef-pkt deleted the misc_13 branch July 31, 2013 22:01
PierreBdR pushed a commit to PierreBdR/statsmodels that referenced this pull request Sep 2, 2014
TST/BUG: Bug fixes and tests for diagnostic and pylint fixes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants