Skip to content

Commit

Permalink
MAINT: stats: add a suggestion from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Pamphile ROY <roy.pamphile@gmail.com>
  • Loading branch information
tirthasheshpatel and tupui committed Jul 5, 2021
1 parent 2cebce8 commit 7b69ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scipy/stats/_distn_infrastructure.py
Expand Up @@ -1316,7 +1316,7 @@ def moment(self, n, *args, **kwds):
j+=1
mu, mu2, g1, g2 = mom
args = argsreduce(loc != 0, *shapes, loc, scale, val)
shapes, loc, scale, val = args[:-3], args[-3], args[-2], args[-1]
*shapes, loc, scale, val = args

res2 = zeros(loc.shape, dtype='d')
fac = scale / loc
Expand Down

0 comments on commit 7b69ef6

Please sign in to comment.