Skip to content

Commit

Permalink
Move API changes to correct file.
Browse files Browse the repository at this point in the history
  • Loading branch information
QuLogic committed Aug 13, 2020
1 parent b5cf43b commit 4bab03e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 17 deletions.
1 change: 1 addition & 0 deletions doc/api/api_changes.rst
Expand Up @@ -35,4 +35,5 @@ added to Matplotlib, see :ref:`whats-new`

api_changes_3.4/*

.. include:: prev_api_changes/api_changes_3.3.1.rst
.. include:: prev_api_changes/api_changes_3.3.0.rst
17 changes: 0 additions & 17 deletions doc/api/api_changes_3.4/deprecations.rst
@@ -1,19 +1,2 @@
Deprecations
------------

Reverted deprecation of ``num2epoch`` and ``epoch2num``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

These two functions were deprecated in 3.3.0, and did not return
an accurate Matplotlib datenum relative to the new Matplotlib epoch
handling (`~.dates.get_epoch` and :rc:`date.epoch`). This version
reverts the deprecation.

Functions ``epoch2num`` and ``dates.julian2num`` use ``date.epoch`` rcParam
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Now `~.dates.epoch2num` and (undocumented) ``julian2num`` return floating point
days since `~.dates.get_epoch` as set by :rc:`date.epoch`, instead of
floating point days since the old epoch of "0000-12-31T00:00:00". If
needed, you can translate from the new to old values as
``old = new + mdates.date2num(np.datetime64('0000-12-31'))``
22 changes: 22 additions & 0 deletions doc/api/prev_api_changes/api_changes_3.3.1.rst
@@ -0,0 +1,22 @@
API Changes for 3.3.1
=====================

Deprecations
------------

Reverted deprecation of ``num2epoch`` and ``epoch2num``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

These two functions were deprecated in 3.3.0, and did not return
an accurate Matplotlib datenum relative to the new Matplotlib epoch
handling (`~.dates.get_epoch` and :rc:`date.epoch`). This version
reverts the deprecation.

Functions ``epoch2num`` and ``dates.julian2num`` use ``date.epoch`` rcParam
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Now `~.dates.epoch2num` and (undocumented) ``julian2num`` return floating point
days since `~.dates.get_epoch` as set by :rc:`date.epoch`, instead of
floating point days since the old epoch of "0000-12-31T00:00:00". If
needed, you can translate from the new to old values as
``old = new + mdates.date2num(np.datetime64('0000-12-31'))``
1 change: 1 addition & 0 deletions doc/conf.py
Expand Up @@ -62,6 +62,7 @@
'api/prev_api_changes/api_changes_*/*',
# Be sure to update users/whats_new.rst:
'users/prev_whats_new/whats_new_3.3.0.rst',
'users/prev_whats_new/whats_new_3.3.1.rst',
]


Expand Down

0 comments on commit 4bab03e

Please sign in to comment.