Repository navigation
BUG: Don't use mutable default values - #5058
Merged
Merged
Conversation
Contributor
|
very much +1 |
bashtage
force-pushed
the
fix-mutable-defaults
branch
from
September 3, 2018 07:37
f13bf04 to
2d75008
Compare
Codecov Report
@@ Coverage Diff @@
## master #5058 +/- ##
==========================================
+ Coverage 81.37% 81.41% +0.03%
==========================================
Files 582 582
Lines 90322 90312 -10
Branches 10105 10109 +4
==========================================
+ Hits 73503 73529 +26
+ Misses 14518 14484 -34
+ Partials 2301 2299 -2
Continue to review full report at Codecov.
|
josef-pkt
reviewed
Sep 3, 2018
|
|
||
| def mad(a, c=Gaussian.ppf(3/4.), axis=0, center=np.median): | ||
|
|
||
| def mad(a, c=None, axis=0, center=np.median): |
Member
There was a problem hiding this comment.
Gaussian.ppf(3/4.) is a float scalar and not mutable
?
Contributor
There was a problem hiding this comment.
@bashtage josef is right on this one. If reverting that will get this otherwise-solid PR through, go for it.
Member
|
AFAIU: one too much, the other ones look goot |
Do not use mutable default values
bashtage
force-pushed
the
fix-mutable-defaults
branch
from
September 7, 2018 16:39
2d75008 to
9ae033d
Compare
Member
Author
|
Reverted |
31 of 32 tasks
Member
|
(we have one unrelated 32-bit windows problem) LGTM now, merging @bashtage Thank you |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Do not use mutable default values