<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/random/tests, branch v1.12.0rc1</title>
<subtitle>github.com: numpy/numpy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/'/>
<entry>
<title>BUG: Better check for invalid bounds in np.random.uniform.</title>
<updated>2016-11-02T23:29:04+00:00</updated>
<author>
<name>Alistair Muldal</name>
<email>alimuldal@gmail.com</email>
</author>
<published>2016-10-30T20:04:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=f5bb42f0b02fa954f03bf4d96801877a4837c8cb'/>
<id>f5bb42f0b02fa954f03bf4d96801877a4837c8cb</id>
<content type='text'>
Also check for invalid bounds when low= and high= are arraylike rather than scalar (closes #8226)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also check for invalid bounds when low= and high= are arraylike rather than scalar (closes #8226)
</pre>
</div>
</content>
</entry>
<entry>
<title>TST: Use new warnings context manager in all tests</title>
<updated>2016-09-02T08:10:55+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastian@sipsolutions.net</email>
</author>
<published>2016-06-19T12:18:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=308161c80f4450f05f8399343034308bd18b4e1e'/>
<id>308161c80f4450f05f8399343034308bd18b4e1e</id>
<content type='text'>
In some places, just remove aparently unnecessary filters.

After this, all cases of ignore filters should be removed from
the tests, making testing (even multiple runs) normally fully
predictable.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In some places, just remove aparently unnecessary filters.

After this, all cases of ignore filters should be removed from
the tests, making testing (even multiple runs) normally fully
predictable.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #5822 from anntzer/0-scale-distributions</title>
<updated>2016-06-23T02:09:25+00:00</updated>
<author>
<name>Nathaniel J. Smith</name>
<email>njs@pobox.com</email>
</author>
<published>2016-06-23T02:09:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=c62b20d10c05c07511553972d1c21e5845aa7d6f'/>
<id>c62b20d10c05c07511553972d1c21e5845aa7d6f</id>
<content type='text'>
Allow many distributions to have a scale of 0.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Allow many distributions to have a scale of 0.</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Fix segfaults in np.random.shuffle</title>
<updated>2016-06-10T12:42:38+00:00</updated>
<author>
<name>Simon Gibbons</name>
<email>simongibbons@gmail.com</email>
</author>
<published>2016-06-09T12:11:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=5657a6cd5ed1c54986f697660c6336d2fb2b1c21'/>
<id>5657a6cd5ed1c54986f697660c6336d2fb2b1c21</id>
<content type='text'>
np.random.shuffle will allocate a buffer based on the size of the first
element of an array of strings. If the first element is smaller than
another in the array this buffer will overflow, causing a segfault
when garbage is collected.

Additionally if the array contains objects then one would be left
in the buffer and have it's refcount erroniously decrimented on
function exit, causing that object to be deallocated too early.

To fix this we change the buffer to be an array of int8 of the
the size of the array's dtype, which sidesteps both issues.

Fixes #7710
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
np.random.shuffle will allocate a buffer based on the size of the first
element of an array of strings. If the first element is smaller than
another in the array this buffer will overflow, causing a segfault
when garbage is collected.

Additionally if the array contains objects then one would be left
in the buffer and have it's refcount erroniously decrimented on
function exit, causing that object to be deallocated too early.

To fix this we change the buffer to be an array of int8 of the
the size of the array's dtype, which sidesteps both issues.

Fixes #7710
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't allow -0. as distribution shape parameter.</title>
<updated>2016-06-09T15:58:31+00:00</updated>
<author>
<name>Antony Lee</name>
<email>anntzer.lee@gmail.com</email>
</author>
<published>2015-05-03T06:51:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=0319d0ce3436d39a739b2537e60c1eaced80a6ca'/>
<id>0319d0ce3436d39a739b2537e60c1eaced80a6ca</id>
<content type='text'>
At least the gamma generator doesn't support it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
At least the gamma generator doesn't support it.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Ignore DeprecationWarning for random_integers in tests.</title>
<updated>2016-04-10T16:49:19+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2016-04-10T16:43:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=a2c4c117478b34a0761a98a9e5c474ab5c4f5490'/>
<id>a2c4c117478b34a0761a98a9e5c474ab5c4f5490</id>
<content type='text'>
The warning turned up when the numpy/randome/tests were run using

$ python runtests.py -t numpy/random/tests/

It doesn't show when all the tests are run.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The warning turned up when the numpy/randome/tests were run using

$ python runtests.py -t numpy/random/tests/

It doesn't show when all the tests are run.
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow many distributions to have a scale of 0.</title>
<updated>2016-04-07T02:19:40+00:00</updated>
<author>
<name>Antony Lee</name>
<email>anntzer.lee@gmail.com</email>
</author>
<published>2015-05-02T05:30:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=bae9aebaa5aeedc3e1ecf69bef65f5fe721a3d37'/>
<id>bae9aebaa5aeedc3e1ecf69bef65f5fe721a3d37</id>
<content type='text'>
(in which case a stream of 0's is usually returned (or 1's)).

See #5818.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(in which case a stream of 0's is usually returned (or 1's)).

See #5818.
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Make randint backwards compatible with pandas</title>
<updated>2016-02-19T06:16:11+00:00</updated>
<author>
<name>gfyoung</name>
<email>gfyoung17@gmail.com</email>
</author>
<published>2016-02-19T05:14:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=4f91544af2a74bc2dcecfce5db05b015f26721e4'/>
<id>4f91544af2a74bc2dcecfce5db05b015f26721e4</id>
<content type='text'>
The 'pandas' library expects Python integers to be
returned, so this commit changes the API so that
the default is 'np.int' which converts to native
Python integer types when a singleton is being
generated with this function.

Closes gh-7284.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The 'pandas' library expects Python integers to be
returned, so this commit changes the API so that
the default is 'np.int' which converts to native
Python integer types when a singleton is being
generated with this function.

Closes gh-7284.
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Enforce dtype for randint singletons</title>
<updated>2016-02-16T20:01:30+00:00</updated>
<author>
<name>gfyoung</name>
<email>gfyoung@mit.edu</email>
</author>
<published>2016-02-07T00:21:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=de44e0fb8cf67594227e9770dc8e6f94285cd486'/>
<id>de44e0fb8cf67594227e9770dc8e6f94285cd486</id>
<content type='text'>
Closes gh-7203.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes gh-7203.
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: One element array inputs get one element arrays returned in np.random</title>
<updated>2016-01-24T03:20:20+00:00</updated>
<author>
<name>gfyoung</name>
<email>gfyoung@mit.edu</email>
</author>
<published>2016-01-18T20:29:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=61f872265b67b313058a07533eaed88f4170ff2c'/>
<id>61f872265b67b313058a07533eaed88f4170ff2c</id>
<content type='text'>
Fixes bug in np.random methods that would return scalars
when passed one-element array inputs. This is because
one-element ndarrays can be cast to integers / floats, which
is what functions like PyFloat_AsDouble do before converting
to the intended data type.

This commit changes the check used to determine whether the
inputs are purely scalar by converting all inputs to arrays
and checking if the resulting shape is an empty tuple (scalar)
or not (array).

Closes gh-4263.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes bug in np.random methods that would return scalars
when passed one-element array inputs. This is because
one-element ndarrays can be cast to integers / floats, which
is what functions like PyFloat_AsDouble do before converting
to the intended data type.

This commit changes the check used to determine whether the
inputs are purely scalar by converting all inputs to arrays
and checking if the resulting shape is an empty tuple (scalar)
or not (array).

Closes gh-4263.
</pre>
</div>
</content>
</entry>
</feed>
