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

Avoid doubled underscore in method names #181

Merged
merged 3 commits into from
May 20, 2024

Conversation

shimwell
Copy link
Collaborator

@shimwell shimwell commented May 20, 2024

Description

Avoid Using Double Underscore in Method Names: Method names like get_surface_table and simplify_planes are not recommended in Python. Double underscores should be used for special methods only (like init, str, etc.). For private methods, a single underscore prefix is recommended but I don't think any of these methods need to be private either. So I've renamed them all to not have the double underscores.

@alberto743 also spotted this unusual use of __

Checklist

  • I'm making a PR from a feature branch on my fork into GEOUNED-org/GEOUNED/dev branch
  • I have followed PEP8 style guide for Python or run a formatter such as black or ruff format on my code

@psauvan psauvan merged commit ac30ab8 into GEOUNED-org:dev May 20, 2024
9 checks passed
psauvan pushed a commit that referenced this pull request Jun 17, 2024
* renamed functions with __

* removed random commit

* Revert "removed random commit"

This reverts commit f35b217.
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