-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
CLN/BUG/TST: Fix and test multiple places using undefined names. #5045
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
Changes from all commits
a7e1160
b6ac129
9f966a4
490b6a9
611c679
2920895
9667279
e7cf945
6a3619f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -296,12 +296,14 @@ def __call__(self): | |
try: | ||
start = dmin - delta | ||
except ValueError: | ||
# TODO: Never used. | ||
start = _from_ordinal(1.0) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @changhiskhan it looks like neither start or stop is actually used for anything in this function (according to pyflakes and searching). Can these calculations be removed? (Instead, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (I'm asking you because it looks like you added this part in) |
||
|
||
try: | ||
stop = dmax + delta | ||
except ValueError: | ||
# The magic number! | ||
# TODO: Never used. | ||
stop = _from_ordinal(3652059.9999999) | ||
|
||
nmax, nmin = dates.date2num((dmax, dmin)) | ||
|
@@ -357,12 +359,14 @@ def autoscale(self): | |
try: | ||
start = dmin - delta | ||
except ValueError: | ||
# TODO: Never used. | ||
start = _from_ordinal(1.0) | ||
|
||
try: | ||
stop = dmax + delta | ||
except ValueError: | ||
# The magic number! | ||
# TODO: Never used. | ||
stop = _from_ordinal(3652059.9999999) | ||
|
||
dmin, dmax = self.datalim_to_dt() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cpcloud this function is never used in any tests, is it necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably not ... i'll add it to the unused codepaths issue