[Numpy-svn] [numpy/numpy] ac56b6: BUG: Explicitly reject nan values for p in binomia...

GitHub noreply at github.com
Fri Apr 4 22:40:52 EDT 2014


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: ac56b60a72df1ee939f3aa0826389276fc4b0b64
      https://github.com/numpy/numpy/commit/ac56b60a72df1ee939f3aa0826389276fc4b0b64
  Author: Daniel da Silva <daniel at meltingwax.net>
  Date:   2014-04-04 (Fri, 04 Apr 2014)

  Changed paths:
    M numpy/random/mtrand/mtrand.c
    M numpy/random/mtrand/mtrand.pyx
    M numpy/random/tests/test_random.py

  Log Message:
  -----------
  BUG: Explicitly reject nan values for p in binomial(n, p). Fixes #4571.

Adds check with np.isnan(p) and raises ValueError if check is positive.


  Commit: a0794f63d548e688e2eed76a9dc4e8df0ea33846
      https://github.com/numpy/numpy/commit/a0794f63d548e688e2eed76a9dc4e8df0ea33846
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2014-04-04 (Fri, 04 Apr 2014)

  Changed paths:
    M numpy/random/mtrand/mtrand.c
    M numpy/random/mtrand/mtrand.pyx
    M numpy/random/tests/test_random.py

  Log Message:
  -----------
  Merge pull request #4587 from ddasilva/meltingwax/4571

BUG: Explicitly reject nan values for p in binomial(n, p).


Compare: https://github.com/numpy/numpy/compare/547765dd9b21...a0794f63d548


More information about the Numpy-svn mailing list