Skip to content

Handle auto_max_age = None consistently - #10126

Merged
mhvk merged 4 commits into
astropy:masterfrom
weaverba137:leap-second-max-age
Apr 8, 2020
Merged

mhvk merged 4 commits into
astropy:masterfrom
weaverba137:leap-second-max-age

Conversation

@weaverba137

Copy link
Copy Markdown
Member

Description

This PR fixes a "bare" use of None in a numerical computation and ensures
that None is converted to a valid float throughout the module. See also #9479.

@pllim
pllim requested a review from mhvk April 8, 2020 15:48
Comment thread CHANGES.rst Outdated
astropy.utils
^^^^^^^^^^^^^

- Fix case where ``None`` could be used in a numerical computation. [#10126]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The entry might be moved depending on the milestone set. FYI.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem!

@mhvk mhvk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. One comment about the test...

Comment thread astropy/utils/iers/tests/test_leap_second.py Outdated

@mhvk mhvk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, now all looks good! I think this is a bug being fixed, so logically would go to 4.0.2, so what's left would be to move the milestone. If possible, rebase & squash commits at the same time...

@mhvk mhvk added Bug and removed utils labels Apr 8, 2020
@mhvk mhvk added this to the v4.0.2 milestone Apr 8, 2020
@weaverba137

Copy link
Copy Markdown
Member Author

I moved the change log entry to 4.0.2. If that looks good, I can rebase/squash.

@mhvk mhvk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is the right place. Since tests just ran again, let me just merge this - not such a big deal to have a few more commits. Thanks!!

@mhvk
mhvk merged commit 407af53 into astropy:master Apr 8, 2020
@weaverba137
weaverba137 deleted the leap-second-max-age branch April 8, 2020 19:53
bsipocz pushed a commit that referenced this pull request Apr 13, 2020
Handle auto_max_age = None consistently
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants