<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/core/arrayprint.py, 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>MAINT: Refactor numpy/core/arrayprint.py</title>
<updated>2016-11-01T14:22:55+00:00</updated>
<author>
<name>Shota Kawabuchi</name>
<email>shota.kawabuchi+Github@gmail.com</email>
</author>
<published>2016-11-01T14:22:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=e1326c31526a607cc981b309a3a092b1cbbc9b9c'/>
<id>e1326c31526a607cc981b309a3a092b1cbbc9b9c</id>
<content type='text'>
Related to PR #8200
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Related to PR #8200
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Fix array2string for structured array scalars</title>
<updated>2016-10-29T13:54:33+00:00</updated>
<author>
<name>Shota Kawabuchi</name>
<email>shota.kawabuchi+Github@gmail.com</email>
</author>
<published>2016-10-22T08:08:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=a6c2184c0dbc70b9a57fce21e4f769d313021261'/>
<id>a6c2184c0dbc70b9a57fce21e4f769d313021261</id>
<content type='text'>
PR #8160 added format function for structured arrays.
But it is not applied for structured array scalars.
Closes #8172
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR #8160 added format function for structured arrays.
But it is not applied for structured array scalars.
Closes #8172
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Fix subarray format changed in #8160</title>
<updated>2016-10-22T04:25:41+00:00</updated>
<author>
<name>Shota Kawabuchi</name>
<email>shota.kawabuchi+Github@gmail.com</email>
</author>
<published>2016-10-22T03:26:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=2a4dd999c82276d00ef96d0d5839ff8b1f8a8871'/>
<id>2a4dd999c82276d00ef96d0d5839ff8b1f8a8871</id>
<content type='text'>
Preserving structured array element format,
this commit fixes subarray format changed in PR #8160.
This commit also changes iterator for field name from dtype_.descr to
dtype_.names (Related to #8174).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Preserving structured array element format,
this commit fixes subarray format changed in PR #8160.
This commit also changes iterator for field name from dtype_.descr to
dtype_.names (Related to #8174).
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: fix _array2string for strustured array (issue #5692)</title>
<updated>2016-10-18T04:03:18+00:00</updated>
<author>
<name>Shota Kawabuchi</name>
<email>shota.kawabuchi+Github@gmail.com</email>
</author>
<published>2016-10-15T12:56:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=3d75c3f5165d958ff109a4f877aeb18d77ce279f'/>
<id>3d75c3f5165d958ff109a4f877aeb18d77ce279f</id>
<content type='text'>
The cause of issue #5692 is that `_array2string` (in
numpy/core/arrayprint.py) doesn’t have format function for structured
arrays and it uses general purpose format function to format array
elements of structured arrays.
This commit adds `StructureFormat` class to format structured array
elements. `_get_format_function` instantiates `StructureFormat` by
instantiating format function classes for each field of structure
recursively and merge them.

Closes #5692.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The cause of issue #5692 is that `_array2string` (in
numpy/core/arrayprint.py) doesn’t have format function for structured
arrays and it uses general purpose format function to format array
elements of structured arrays.
This commit adds `StructureFormat` class to format structured array
elements. `_get_format_function` instantiates `StructureFormat` by
instantiating format function classes for each field of structure
recursively and merge them.

Closes #5692.
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Fix array printing with precision=0.</title>
<updated>2016-10-07T12:26:40+00:00</updated>
<author>
<name>wrwrwr</name>
<email>git@wr.waw.pl</email>
</author>
<published>2016-10-01T19:44:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=65e1e0e4ba0909a45f410a24360e97568e2bb66a'/>
<id>65e1e0e4ba0909a45f410a24360e97568e2bb66a</id>
<content type='text'>
Values rounding to zero were formatted with negative precision.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Values rounding to zero were formatted with negative precision.
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Suppress common NaT warnings</title>
<updated>2016-09-02T08:10:55+00:00</updated>
<author>
<name>Sebastian Berg</name>
<email>sebastian@sipsolutions.net</email>
</author>
<published>2016-06-19T11:39:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=86b0a5e9c58160bad818ba3a0a6faf38f5ac4d09'/>
<id>86b0a5e9c58160bad818ba3a0a6faf38f5ac4d09</id>
<content type='text'>
Printing of datetime arrays used to cause warning due to
comparison warnings in NaT. This is circumvented by using views
to integer values. Part of this should be simplified when
the deprecation is over.

Also fixes a bug with non-native byteorder.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Printing of datetime arrays used to cause warning due to
comparison warnings in NaT. This is circumvented by using views
to integer values. Part of this should be simplified when
the deprecation is over.

Also fixes a bug with non-native byteorder.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #7042 from charris/revert-7001</title>
<updated>2016-01-17T04:44:13+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2016-01-17T04:44:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=947b023a4999ec879b745c3e7b903d16d9ae65a1'/>
<id>947b023a4999ec879b745c3e7b903d16d9ae65a1</id>
<content type='text'>
Revert "Merge pull request #7001 from shoyer/NaT-comparison"</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Revert "Merge pull request #7001 from shoyer/NaT-comparison"</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Merge pull request #7001 from shoyer/NaT-comparison"</title>
<updated>2016-01-17T02:06:00+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2016-01-17T02:00:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=e0cb3f79936656d6d2f48cbad46a3a9f2bad5ae1'/>
<id>e0cb3f79936656d6d2f48cbad46a3a9f2bad5ae1</id>
<content type='text'>
This reverts commit 7141f40b58ed1e7071cde78ab7bc8ab37e9c5983,
reversing changes made to 8fa6e3bef26a6d4a2c92f2824129aa4409be2590.

The original broke some pandas tests. The current plan to get this
in is

* reversion
* issue FutureWarning in 1.11 and 1.12
* make the change in 1.13.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 7141f40b58ed1e7071cde78ab7bc8ab37e9c5983,
reversing changes made to 8fa6e3bef26a6d4a2c92f2824129aa4409be2590.

The original broke some pandas tests. The current plan to get this
in is

* reversion
* issue FutureWarning in 1.11 and 1.12
* make the change in 1.13.
</pre>
</div>
</content>
</entry>
<entry>
<title>API: Make datetime64 timezone naive</title>
<updated>2016-01-16T00:18:46+00:00</updated>
<author>
<name>Stephan Hoyer</name>
<email>shoyer@climate.com</email>
</author>
<published>2016-01-15T07:47:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=426114879da49bf9a586b1991dcaf38ce594c4b6'/>
<id>426114879da49bf9a586b1991dcaf38ce594c4b6</id>
<content type='text'>
Fixes GH3290

With apologies to mwiebe, this rips out most of the time zone parsing from
the datetime64 type.

I think we mostly sorted out the API design in discussions last year, but
I'll be posting this to the mailing list shortly to get feedback.

Old behavior:

	# string parsing and printing defaults to your local timezone :(
    &gt;&gt;&gt; np.datetime64('2000-01-01T00')
    numpy.datetime64('2000-01-01T00:00-0800','h')

New behavior:

    # datetime64 is parsed and printed as timezone naive
    &gt;&gt;&gt; np.datetime64('2000-01-01T00')
    numpy.datetime64('2000-01-01T00','h')

    # you can still supply a timezone, but you get a deprecation warning
    &gt;&gt;&gt; np.datetime64('2000-01-01T00Z')
    DeprecationWarning: parsing timezone aware datetimes is deprecated; this
    will raise an error in the future
    numpy.datetime64('2000-01-01T00','h')
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes GH3290

With apologies to mwiebe, this rips out most of the time zone parsing from
the datetime64 type.

I think we mostly sorted out the API design in discussions last year, but
I'll be posting this to the mailing list shortly to get feedback.

Old behavior:

	# string parsing and printing defaults to your local timezone :(
    &gt;&gt;&gt; np.datetime64('2000-01-01T00')
    numpy.datetime64('2000-01-01T00:00-0800','h')

New behavior:

    # datetime64 is parsed and printed as timezone naive
    &gt;&gt;&gt; np.datetime64('2000-01-01T00')
    numpy.datetime64('2000-01-01T00','h')

    # you can still supply a timezone, but you get a deprecation warning
    &gt;&gt;&gt; np.datetime64('2000-01-01T00Z')
    DeprecationWarning: parsing timezone aware datetimes is deprecated; this
    will raise an error in the future
    numpy.datetime64('2000-01-01T00','h')
</pre>
</div>
</content>
</entry>
<entry>
<title>TST, ENH: make all comparisons with NaT false</title>
<updated>2016-01-14T21:44:43+00:00</updated>
<author>
<name>Stephan Hoyer</name>
<email>shoyer@climate.com</email>
</author>
<published>2016-01-13T04:44:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=53ad26a84ac2aa6f5a37f09aa9feae5afed44f79'/>
<id>53ad26a84ac2aa6f5a37f09aa9feae5afed44f79</id>
<content type='text'>
Now, NaT compares like NaN:
- NaT != NaT -&gt; True
- NaT == NaT (and all other comparisons) -&gt; False

We discussed this on the mailing list back in October:
https://mail.scipy.org/pipermail/numpy-discussion/2015-October/073968.html
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now, NaT compares like NaN:
- NaT != NaT -&gt; True
- NaT == NaT (and all other comparisons) -&gt; False

We discussed this on the mailing list back in October:
https://mail.scipy.org/pipermail/numpy-discussion/2015-October/073968.html
</pre>
</div>
</content>
</entry>
</feed>
