chore: Standardize Method Naming in Mapping Service#1407
Merged
Conversation
saratpoluri
approved these changes
May 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
This pull request standardizes function and method naming across the codebase by converting all function names from camelCase to snake_case. This improves code readability and aligns with Python's PEP 8 style guidelines. The changes affect the main API service, model interface, model implementation, mesh utilities, and service entry points.
API Service and Entry Point Standardization:
api_service_base.pyhave been renamed to use snake_case (e.g.,healthCheck→health_check,runModelInference→run_model_inference,startApp→start_app). [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14]mapanything_service.pyis updated to use the newinitialize_modelname. [1] [2]Model Interface and Implementation:
model_interface.pyare renamed to snake_case (e.g.,loadModel→load_model,runInference→run_inference). [1] [2] [3] [4] [5] [6]mapanything_model.pyare also renamed, including internal helpers and calls to these methods. [1] [2] [3] [4] [5] [6] [7]Mesh Utility Functions:
mesh_utils.pyare renamed to snake_case (e.g.,createPointcloudFromMesh→create_pointcloud_from_mesh,getMeshInfo→get_mesh_info). [1] [2]These changes ensure consistency throughout the codebase and make the code easier to maintain and understand for all contributors.
✨ Type of Change
Select the type of change your PR introduces:
🧪 Testing Scenarios
Describe how the changes were tested and how reviewers can test them too:
✅ Checklist
Before submitting the PR, ensure the following: