8000 Kill some private, unused functions in dates.py. by anntzer · Pull Request #13320 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Kill some private, unused functions in dates.py. #13320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 29, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions lib/matplotlib/dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -1868,24 +1868,6 @@ def _get_interval(self):
return self._interval


def _close_to_dt(d1, d2, epsilon=5):
"""
Assert that datetimes *d1* and *d2* are within *epsilon* microseconds.
"""
delta = d2 - d1
mus = abs(delta.total_seconds() * 1e6)
assert mus < epsilon


def _close_to_num(o1, o2, epsilon=5):
"""
Assert that float ordinals *o1* and *o2* are within *epsilon*
microseconds.
"""
delta = abs((o2 - o1) * MUSECONDS_PER_DAY)
assert delta < epsilon


def epoch2num(e):
"""
Convert an epoch or sequence of epochs to the new date format,
Expand Down
0