Rename Python API functions to match MATLAB camelCase naming#9
Merged
stevevanhooser merged 2 commits intoMar 10, 2026
Conversation
…ule) Apply the Strict Mirror Rule from PYTHON_PORTING_GUIDE.md: every Python function name must be an identical string match to its MATLAB counterpart. Renamed ~80+ functions across 17 source files, 6 test files, and 2 tutorials from snake_case to camelCase. Updated MATLAB_MAPPING.md to reflect new names. https://claude.ai/code/session_01Skj3WbRtzYBdW5uk6nazhE
Rename functions across ndi.fun.* to use MATLAB-style camelCase naming: - utils: name2variable_name → name2variableName - data: read_image_stack → readImageStack - doc: all_types → allTypes, find_fuid → findFuid, etc. - doc_table: ontology_table_row_doc_to_table → ontologyTableRowDoc2Table, etc. - epoch: t0_t1_to_array → t0_t1cell2array - file: md5 → MD5, date_created → dateCreated, date_updated → dateUpdated - table: identify_matching_rows → identifyMatchingRows, etc. - stimulus: find_mixture_name → findMixtureName, etc. - name_utils: name_to_variable_name → name2variableName All old snake_case names preserved as backward-compatible aliases. New ndi.fun.plot module ported from MATLAB with bar3, multichan, stimulusTimeseries. Updated all references in tests and tutorials. https://claude.ai/code/session_01Skj3WbRtzYBdW5uk6nazhE
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.
Summary
This PR standardizes the Python API function naming to use camelCase (matching MATLAB conventions) instead of snake_case. This improves consistency across the NDI ecosystem and makes the MATLAB-to-Python mapping more intuitive.
Key Changes
API Functions Renamed
get_dataset→getDataset,create_dataset→createDataset,update_dataset→updateDataset,delete_dataset→deleteDataset,list_datasets→listDatasets,get_branches→getBranchesget_document→getDocument,add_document→addDocument,update_document→updateDocument,delete_document→deleteDocument,list_documents→listDatasetDocuments,list_all_documents→listDatasetDocumentsAll,get_document_count→countDocumentsget_upload_url→getFileUploadURL,get_bulk_upload_url→getBulkUploadURL,put_file→putFiles,put_file_bytes→putFileBytes,get_file_details→getFileDetails,list_files→listFilescreate_user→createUser,get_user→GetUser,get_current_user→mestart_session→startSession,get_session_status→getSessionStatus,trigger_stage→triggerStage,finalize_session→finalizeSession,abort_session→abortSession,list_sessions→listSessionsdecode_jwt→decodeJwt,get_token_expiration→getTokenExpiration,verify_token→verifyToken,change_password→changePassword,reset_password→resetPassword,verify_user→verifyUser,resend_confirmation→resendConfirmationdownload_dataset→downloadDataset,upload_dataset→uploadDataset,sync_dataset→syncDataset,upload_single_file→uploadSingleFileupload_new→uploadNew,download_new→downloadNew,mirror_to_remote→mirrorToRemote,mirror_from_remote→mirrorFromRemote,two_way_sync→twoWaySyncdownload_full_dataset→downloadFullDataset,download_document_collection→downloadDocumentCollection,jsons_to_documents→jsons2documents,download_dataset_files→downloadDatasetFilesupload_document_collection→uploadDocumentCollection,zip_documents_for_upload→zipForUploadlist_remote_document_ids→listRemoteDocumentIds,get_cloud_dataset_id→getCloudDatasetIdForLocalDataset,create_remote_dataset_doc→createRemoteDatasetDoccreate_batch_submission→createDoiBatchSubmission,convert_to_crossref→convertCloudDatasetToCrossrefDataset,create_new_doi→createNewDOIDocumentation Updates
MATLAB_MAPPING.mdto reflect the new camelCase function namestest_get_dataset_metadata→test_getDataset_metadata)Test Updates
Implementation Details
https://claude.ai/code/session_01Skj3WbRtzYBdW5uk6nazhE