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

BUG: zscore and zmap handle the axis keyword incorrectly (Trac #1575) #2100

Closed
scipy-gitbot opened this issue Apr 25, 2013 · 2 comments
Closed
Labels
defect A clear bug or issue that prevents SciPy from being installed or used as expected Migrated from Trac scipy.stats
Milestone

Comments

@scipy-gitbot
Copy link

Original ticket http://projects.scipy.org/scipy/ticket/1575 on 2011-12-17 by @WarrenWeckesser, assigned to unknown.

As discussed in the mailing list starting here:

http://mail.scipy.org/pipermail/scipy-user/2011-November/031100.html

there is a bug in stats.zscore and stats.zmap. The bug is simply a misplaced parenthesis. For zscore, this

        return ((a - np.expand_dims(mns, axis=axis) /
                 np.expand_dims(sstd,axis=axis)))

should be this

        return ((a - np.expand_dims(mns, axis=axis)) /
                 np.expand_dims(sstd,axis=axis))
@scipy-gitbot
Copy link
Author

@WarrenWeckesser wrote on 2011-12-17

Pull request with fix: #116

@scipy-gitbot
Copy link
Author

@WarrenWeckesser wrote on 2011-12-21

Fixed in d0b840e2ad27f6049392e2bcb67d874e4b8fbfde

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect A clear bug or issue that prevents SciPy from being installed or used as expected Migrated from Trac scipy.stats
Projects
None yet
Development

No branches or pull requests

1 participant