Skip to content
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

Deprecate cf_units.util.approx_equal #316

Merged
merged 2 commits into from
Nov 9, 2022

Conversation

rcomer
Copy link
Member

@rcomer rcomer commented Nov 8, 2022

🚀 Pull Request

Description

As for SciTools/iris#4514, I don't think we need to be maintaining this function. Unlike the Iris version, I didn't bother updating the docstring, because this function isn't included in the cf-units docs!

@lbdreyer lbdreyer self-assigned this Nov 9, 2022
@pp-mo pp-mo requested a review from lbdreyer November 9, 2022 10:15
Copy link
Member

@lbdreyer lbdreyer left a comment

Choose a reason for hiding this comment

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

Thanks for doing this @rcomer !

The trouble with not including the deprecation in the docstring is that there is always the risk that we change the cf-units docs such that it starts publishing the cf_units.util API, and that this is done before we remove cf_units.util.approx_equal. Do you mind adding a small mention of the deprecation on the off chance this happens?

@rcomer
Copy link
Member Author

rcomer commented Nov 9, 2022

@lbdreyer done. Though obviously I have no way to check whether it would render as expected!

@lbdreyer lbdreyer merged commit 87ed96b into SciTools:main Nov 9, 2022
@rcomer
Copy link
Member Author

rcomer commented Nov 9, 2022

Thanks @lbdreyer!

@rcomer rcomer deleted the deprecate-approx_equal branch November 9, 2022 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants