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

Improve deprecation warning for EclGrid.createRectangular #881

Merged
merged 1 commit into from
Jan 17, 2023

Conversation

hnformentin
Copy link
Contributor

Issue
Deprecation warning had a typo and I could not understand at first glance.

Approach
Rewrite deprecations warning.

@hnformentin hnformentin self-assigned this Dec 2, 2022
@ertomatic
Copy link
Collaborator

Can one of the admins verify this patch?

@hnformentin
Copy link
Contributor Author

Blocked by #883 and #882 to have tests passing,

@@ -282,7 +282,7 @@ def create_rectangular(cls, dims, dV, actnum=None):

warnings.warn(
"EclGrid.createRectangular is deprecated. "
+ "Please used the similar method in EclGridGenerator!",
+ "Please use the similar method: EclGridGenerator.createRectangular!",
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest also to remove the exclamation mark, it gives me CAPS LOCK connotations!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure! Good observation!

@hnformentin
Copy link
Contributor Author

just rebased

@hnformentin hnformentin merged commit 338df6d into main Jan 17, 2023
@hnformentin hnformentin deleted the improve_depr_warning branch January 17, 2023 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants