Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f1ad1f1

Browse files
committed
MNT: deprecate epoch2num/num2epoch
1 parent 48be688 commit f1ad1f1

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

lib/matplotlib/tests/test_dates.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,18 +1078,6 @@ def test_change_interval_multiples():
10781078
assert ax.get_xticklabels()[1].get_text() == 'Feb 01 2020'
10791079

10801080

1081-
def test_epoch2num():
1082-
mdates._reset_epoch_test_example()
1083-
mdates.set_epoch('0000-12-31')
1084-
assert mdates.epoch2num(86400) == 719164.0
1085-
assert mdates.num2epoch(719165.0) == 86400 * 2
1086-
# set back to the default
1087-
mdates._reset_epoch_test_example()
1088-
mdates.set_epoch('1970-01-01T00:00:00')
1089-
assert mdates.epoch2num(86400) == 1.0
1090-
assert mdates.num2epoch(2.0) == 86400 * 2
1091-
1092-
10931081
def test_julian2num():
10941082
mdates._reset_epoch_test_example()
10951083
mdates.set_epoch('0000-12-31')

0 commit comments

Comments
 (0)