[Numpy-svn] [numpy/numpy] d588b4: TST: Make assert_warns an optional contextmanager
GitHub
noreply at github.com
Sat Jan 16 23:02:17 EST 2016
Branch: refs/heads/master
Home: https://github.com/numpy/numpy
Commit: d588b48a0e2fd4a78cadc1336571f59ba6be83c6
https://github.com/numpy/numpy/commit/d588b48a0e2fd4a78cadc1336571f59ba6be83c6
Author: Stephan Hoyer <shoyer at climate.com>
Date: 2016-01-14 (Thu, 14 Jan 2016)
Changed paths:
M numpy/testing/tests/test_utils.py
M numpy/testing/utils.py
Log Message:
-----------
TST: Make assert_warns an optional contextmanager
Commit: 426114879da49bf9a586b1991dcaf38ce594c4b6
https://github.com/numpy/numpy/commit/426114879da49bf9a586b1991dcaf38ce594c4b6
Author: Stephan Hoyer <shoyer at climate.com>
Date: 2016-01-15 (Fri, 15 Jan 2016)
Changed paths:
M doc/release/1.11.0-notes.rst
M doc/source/reference/arrays.datetime.rst
M numpy/core/arrayprint.py
M numpy/core/src/multiarray/datetime.c
M numpy/core/src/multiarray/datetime_strings.c
M numpy/core/src/multiarray/datetime_strings.h
M numpy/core/src/multiarray/dtype_transfer.c
M numpy/core/src/multiarray/scalartypes.c.src
M numpy/core/tests/test_datetime.py
M numpy/core/tests/test_deprecations.py
Log Message:
-----------
API: Make datetime64 timezone naive
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 :(
>>> np.datetime64('2000-01-01T00')
numpy.datetime64('2000-01-01T00:00-0800','h')
New behavior:
# datetime64 is parsed and printed as timezone naive
>>> np.datetime64('2000-01-01T00')
numpy.datetime64('2000-01-01T00','h')
# you can still supply a timezone, but you get a deprecation warning
>>> 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')
Commit: da98bbc030c272edb1a8548a458b3957e29ce346
https://github.com/numpy/numpy/commit/da98bbc030c272edb1a8548a458b3957e29ce346
Author: Stephan Hoyer <shoyer at gmail.com>
Date: 2016-01-16 (Sat, 16 Jan 2016)
Changed paths:
M doc/release/1.11.0-notes.rst
M numpy/testing/utils.py
Log Message:
-----------
DOC: document changes to assert_warns
Commit: 865c3e375a598e5a0f7d9e690eda4702de8658af
https://github.com/numpy/numpy/commit/865c3e375a598e5a0f7d9e690eda4702de8658af
Author: Charles Harris <charlesr.harris at gmail.com>
Date: 2016-01-16 (Sat, 16 Jan 2016)
Changed paths:
M doc/release/1.11.0-notes.rst
M doc/source/reference/arrays.datetime.rst
M numpy/core/arrayprint.py
M numpy/core/src/multiarray/datetime.c
M numpy/core/src/multiarray/datetime_strings.c
M numpy/core/src/multiarray/datetime_strings.h
M numpy/core/src/multiarray/dtype_transfer.c
M numpy/core/src/multiarray/scalartypes.c.src
M numpy/core/tests/test_datetime.py
M numpy/core/tests/test_deprecations.py
M numpy/testing/tests/test_utils.py
M numpy/testing/utils.py
Log Message:
-----------
Merge pull request #6453 from shoyer/naive-datetime64
API: Make datetime64 timezone naive
Compare: https://github.com/numpy/numpy/compare/2f7827702ef6...865c3e375a59
More information about the Numpy-svn
mailing list