Skip to content

ENH: Rename *_tools modules and classes to process_* naming convention - #139

Merged
aylward merged 2 commits into
Project-MONAI:mainfrom
aylward:process_tools
Sep 10, 2026
Merged

ENH: Rename *_tools modules and classes to process_* naming convention#139
aylward merged 2 commits into
Project-MONAI:mainfrom
aylward:process_tools

Conversation

@aylward

@aylward aylward commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

Standardize the object-first *_tools.py/*Tools naming used throughout
src/monai_physio/ to the verb-first convention used elsewhere in the project
(workflow_train_physicsnemo.py, register_images_ants.py,
segment_chest_total_segmentator.py).

contour_tools/ContourTools -> process_contours/ProcessContours, and similarly
for transform, test, image, physicsnemo, usd_anatomy, usd, labelmap, and
landmark tools. data_download_tools/DataDownloadTools -> download_data/
DownloadData as a naming exception.

Only import paths and PascalCase class names changed; lowercase instance
attributes and pytest fixtures (self.image_tools, the contour_tools fixture,
etc.) are unaffected. Corresponding Sphinx API pages and toctrees were moved
and retargeted to match.

Adds utils/rename_tools_to_process.py, a reusable git-mv + regex migration
script, and records the break in docs/developer/migration_next.md per
project policy.

Standardize the object-first `*_tools.py`/`*Tools` naming used throughout
src/monai_physio/ to the verb-first convention used elsewhere in the project
(workflow_train_physicsnemo.py, register_images_ants.py,
segment_chest_total_segmentator.py).

contour_tools/ContourTools -> process_contours/ProcessContours, and similarly
for transform, test, image, physicsnemo, usd_anatomy, usd, labelmap, and
landmark tools. data_download_tools/DataDownloadTools -> download_data/
DownloadData as a naming exception.

Only import paths and PascalCase class names changed; lowercase instance
attributes and pytest fixtures (self.image_tools, the contour_tools fixture,
etc.) are unaffected. Corresponding Sphinx API pages and toctrees were moved
and retargeted to match.

Adds utils/rename_tools_to_process.py, a reusable git-mv + regex migration
script, and records the break in docs/developer/migration_next.md per
project policy.
Copilot AI lite review requested due to automatic review settings September 10, 2026 14:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Sep 10, 2026

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 211 files, which is 111 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: c15a1f0c-5db7-4546-a30d-5fb026258274

📥 Commits

Reviewing files that changed from the base of the PR and between 2575185 and d15a24b.

📒 Files selected for processing (211)
  • .agents/agents/architecture.md
  • .agents/agents/implementation.md
  • .agents/agents/testing.md
  • .agents/skills/test-feature/SKILL.md
  • .github/scripts/build_dashboard.py
  • .github/workflows/README.md
  • AGENTS.md
  • CLAUDE.md
  • CONTRIBUTING.md
  • data/CHOP-Valve4D/README.md
  • data/Chest-CT/README.md
  • data/DirLab-4DCT/README.md
  • data/DirLab-4DCT/fix_downloaded_data.py
  • data/README.md
  • data/Slicer-Heart-CT/README.md
  • docs/api/index.rst
  • docs/api/physicsnemo/infer.rst
  • docs/api/physicsnemo/manifest.rst
  • docs/api/segmentation/base.rst
  • docs/api/segmentation/nv_segment_ct_mri.rst
  • docs/api/usd/index.rst
  • docs/api/usd/process_usd.rst
  • docs/api/usd/process_usd_anatomy.rst
  • docs/api/utilities/download_data.rst
  • docs/api/utilities/image_conversion.rst
  • docs/api/utilities/index.rst
  • docs/api/utilities/process_contours.rst
  • docs/api/utilities/process_images.rst
  • docs/api/utilities/process_labelmaps.rst
  • docs/api/utilities/process_landmarks.rst
  • docs/api/utilities/process_tests.rst
  • docs/api/utilities/process_transforms.rst
  • docs/api/workflows.rst
  • docs/architecture.rst
  • docs/cli_scripts/byod_tutorials.rst
  • docs/cli_scripts/download_data.rst
  • docs/cli_scripts/infer_physicsnemo.rst
  • docs/conf.py
  • docs/cookbook/add_a_registration_method.rst
  • docs/cookbook/add_a_segmentation_method.rst
  • docs/developer/architecture.rst
  • docs/developer/core.rst
  • docs/developer/migration_next.md
  • docs/developer/registration_images.rst
  • docs/developer/segmentation.rst
  • docs/developer/transform_conventions.rst
  • docs/developer/usd_generation.rst
  • docs/developer/utilities.rst
  • docs/developer/workflows.rst
  • docs/quickstart.rst
  • docs/tutorials.rst
  • experiments/Convert_VTK_To_USD/convert_chop_alterra_valve_to_usd.py
  • experiments/Convert_VTK_To_USD/convert_chop_tpv25_valve_to_usd.py
  • experiments/Convert_VTK_To_USD/convert_vtk_to_usd_using_class.py
  • experiments/Heart-Create_Statistical_Model/1-input_meshes_to_input_surfaces.py
  • experiments/Heart-Create_Statistical_Model/2-input_surfaces_to_surfaces_aligned.py
  • experiments/Heart-Create_Statistical_Model/3-registration_based_correspondence.py
  • experiments/Heart-Create_Statistical_Model/4-surfaces_aligned_correspond_to_pca_inputs.py
  • experiments/Heart-Create_Statistical_Model/5-compute_pca_model.py
  • experiments/Heart-Create_Statistical_Model/README.md
  • experiments/Heart-GatedCT-OptimizedLongitudinalRegistration/0-cardiacGatedCT_segment_and_landmark.py
  • experiments/Heart-GatedCT-OptimizedLongitudinalRegistration/1-initial_registration.py
  • experiments/Heart-GatedCT-OptimizedLongitudinalRegistration/3-eval_icon.py
  • experiments/Heart-GatedCT-OptimizedLongitudinalRegistration/registration_test.py
  • experiments/Heart-GatedCT_To_USD/0-download_and_convert_4d_to_3d.py
  • experiments/Heart-GatedCT_To_USD/1-register_images.py
  • experiments/Heart-GatedCT_To_USD/2-generate_segmentation.py
  • experiments/Heart-GatedCT_To_USD/3-transform_dynamic_and_static_contours.py
  • experiments/Heart-GatedCT_To_USD/4-merge_dynamic_and_static_usd.py
  • experiments/Heart-Simpleware_Segmentation/README.md
  • experiments/Heart-Simpleware_Segmentation/simpleware_heart_segmentation.py
  • experiments/Heart-Statistical_Model_To_Patient/heart_model_to_model_icp_itk.py
  • experiments/Heart-Statistical_Model_To_Patient/heart_model_to_model_registration_pca.py
  • experiments/Heart-Statistical_Model_To_Patient/heart_model_to_patient.py
  • experiments/Heart-VTKSeries_To_USD/0-download_and_convert_4d_to_3d.py
  • experiments/Heart-VTKSeries_To_USD/1-heart_vtkseries_to_usd.py
  • experiments/Heart_and_Lungs_Motion/0-heart_and_lungs_beating_heart.py
  • experiments/Heart_and_Lungs_Motion/1-heart_and_lungs_combined.py
  • experiments/Lung-GatedCT_To_USD/0-register_dirlab_4dct.py
  • experiments/Lung-GatedCT_To_USD/1-make_dirlab_models.py
  • experiments/Lung-GatedCT_To_USD/2-paint_dirlab_models.py
  • experiments/Lung-GatedCT_To_USD/Experiment_ArrangeOnStage.py
  • experiments/Lung-GatedCT_To_USD/Experiment_CombineModels.py
  • experiments/Lung-GatedCT_To_USD/Experiment_SegReg.py
  • experiments/Lung-GatedCT_To_USD/data_dirlab_4d_ct.py
  • experiments/Lung-GatedCT_To_USD_NV/0-register_dirlab_4dct.py
  • experiments/Lung-GatedCT_To_USD_NV/1-make_dirlab_models.py
  • experiments/Lung-GatedCT_To_USD_NV/2-paint_dirlab_models.py
  • experiments/Reconstruct4DCT/reconstruct_4d_ct.py
  • experiments/Reconstruct4DCT/reconstruct_4d_ct_class.py
  • src/monai_physio/__init__.py
  • src/monai_physio/anatomy_taxonomy.py
  • src/monai_physio/cli/__init__.py
  • src/monai_physio/cli/convert_image_to_vtk.py
  • src/monai_physio/cli/convert_vtk_to_usd.py
  • src/monai_physio/cli/download_data.py
  • src/monai_physio/convert_vtk_to_usd.py
  • src/monai_physio/download_data.py
  • src/monai_physio/infer_physicsnemo_base.py
  • src/monai_physio/infer_physicsnemo_mgn.py
  • src/monai_physio/infer_physicsnemo_mlp.py
  • src/monai_physio/monai_physio_base.py
  • src/monai_physio/process_contours.py
  • src/monai_physio/process_images.py
  • src/monai_physio/process_labelmaps.py
  • src/monai_physio/process_landmarks.py
  • src/monai_physio/process_physicsnemo.py
  • src/monai_physio/process_tests.py
  • src/monai_physio/process_transforms.py
  • src/monai_physio/process_usd.py
  • src/monai_physio/process_usd_anatomy.py
  • src/monai_physio/register_images_ants.py
  • src/monai_physio/register_images_base.py
  • src/monai_physio/register_images_greedy.py
  • src/monai_physio/register_models_distance_maps.py
  • src/monai_physio/register_models_icp.py
  • src/monai_physio/register_models_icp_itk.py
  • src/monai_physio/register_models_pca.py
  • src/monai_physio/register_time_series_images.py
  • src/monai_physio/segment_anatomy_base.py
  • src/monai_physio/segment_chest_total_segmentator.py
  • src/monai_physio/segment_chest_total_segmentator_with_contrast.py
  • src/monai_physio/segment_heart_simpleware.py
  • src/monai_physio/segment_heart_simpleware_trimmed_branches.py
  • src/monai_physio/segment_nv_segment_ct_mri.py
  • src/monai_physio/train_physicsnemo_base.py
  • src/monai_physio/train_physicsnemo_mgn.py
  • src/monai_physio/train_physicsnemo_mlp.py
  • src/monai_physio/train_physicsnemo_physics_informed_motion.py
  • src/monai_physio/vtk_to_usd/primvar_derivations.py
  • src/monai_physio/vtk_to_usd/usd_mesh_converter.py
  • src/monai_physio/vtk_to_usd/usd_utils.py
  • src/monai_physio/workflow_convert_image_to_usd.py
  • src/monai_physio/workflow_convert_image_to_vtk.py
  • src/monai_physio/workflow_convert_vtk_to_usd.py
  • src/monai_physio/workflow_create_mean_surface.py
  • src/monai_physio/workflow_create_statistical_model.py
  • src/monai_physio/workflow_evaluate_movement.py
  • src/monai_physio/workflow_fit_statistical_model_to_patient.py
  • src/monai_physio/workflow_infer_movement.py
  • src/monai_physio/workflow_infer_physicsnemo.py
  • src/monai_physio/workflow_train_physicsnemo.py
  • statistics.md
  • tests/conftest.py
  • tests/test_cli_smoke.py
  • tests/test_contour_mesh_extraction.py
  • tests/test_convert_vtk_to_usd.py
  • tests/test_download_data_cli.py
  • tests/test_download_heart_data.py
  • tests/test_physics_informed_motion.py
  • tests/test_process_contours.py
  • tests/test_process_images.py
  • tests/test_process_labelmaps.py
  • tests/test_process_physicsnemo.py
  • tests/test_process_transforms.py
  • tests/test_register_images_ants.py
  • tests/test_register_images_greedy.py
  • tests/test_register_images_icon.py
  • tests/test_register_time_series_images.py
  • tests/test_tutorials.py
  • tests/test_usd_merge.py
  • tests/test_usd_time_preservation.py
  • tests/test_vtk_to_usd_library.py
  • tests/test_workflow_finetune_icon_registration.py
  • tests/test_workflow_reconstruct_highres_4d_ct.py
  • tests/test_workflow_train_physicsnemo.py
  • tutorials/README.md
  • tutorials/parameters_base.py
  • tutorials/parameters_duke_heart_labelmaps.py
  • tutorials/parameters_duke_heart_physics_informed.py
  • tutorials/parameters_heart_ct_kcl.py
  • tutorials/parameters_lung_ct_dirlab.py
  • tutorials/tutorial_01_heart_gated_ct_to_usd.py
  • tutorials/tutorial_01_lung_gated_ct_to_usd.py
  • tutorials/tutorial_02_duke_heart_distancemap_finetune_icon.py
  • tutorials/tutorial_02_lung_distancemap_finetune_icon.py
  • tutorials/tutorial_02_lung_finetune_icon.py
  • tutorials/tutorial_03_heart_reconstruct_highres_4d_ct.py
  • tutorials/tutorial_03_lung_reconstruct_highres_4d_ct.py
  • tutorials/tutorial_04_duke_heart_labelmap_to_vtk.py
  • tutorials/tutorial_04_heart_ct_to_vtk.py
  • tutorials/tutorial_04_lung_ct_to_vtk.py
  • tutorials/tutorial_05_duke_heart_vtk_to_usd.py
  • tutorials/tutorial_05_heart_vtk_to_usd.py
  • tutorials/tutorial_06_duke_heart_create_statistical_model.py
  • tutorials/tutorial_06_heart_create_statistical_model.py
  • tutorials/tutorial_06_lung_create_statistical_model.py
  • tutorials/tutorial_07_duke_heart_fit_statistical_model_to_patient.py
  • tutorials/tutorial_07_heart_fit_statistical_model_to_patient.py
  • tutorials/tutorial_07_lung_fit_statistical_model_to_patient.py
  • tutorials/tutorial_08_duke_heart_fit_model_to_4d_patients.py
  • tutorials/tutorial_08_lung_fit_model_to_4d_patients.py
  • tutorials/tutorial_09_duke_heart_train_physicsnemo_mgn.py
  • tutorials/tutorial_09_lung_train_physicsnemo_mgn.py
  • tutorials/tutorial_10_duke_heart_infer_physicsnemo_mgn.py
  • tutorials/tutorial_10_lung_infer_physicsnemo_mgn.py
  • tutorials/tutorial_11_duke_heart_evaluate_physicsnemo.py
  • tutorials/tutorial_11_lung_evaluate_physicsnemo.py
  • tutorials/tutorial_12_duke_heart_end_to_end_inference.py
  • tutorials/tutorial_12_lung_end_to_end_inference.py
  • tutorials/tutorial_13_heart_and_lung_motion.py
  • tutorials/tutorial_14_duke_heart_shape_parameter_sweep.py
  • tutorials/tutorial_14_lung_shape_parameter_sweep.py
  • tutorials/tutorial_15_duke_heart_leave_one_out.py
  • tutorials/tutorial_15_lung_leave_one_out.py
  • tutorials/tutorial_16_duke_heart_physics_informed_motion_prep.py
  • tutorials/tutorial_17_duke_heart_physics_informed_motion_train.py
  • tutorials/tutorial_18_duke_heart_physics_informed_motion_infer.py
  • utils/ai_agent_github_reviews.py
  • utils/rename_tools_to_process.py
  • utils/setup_feature_worktree.py

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@aylward
aylward merged commit 60baec7 into Project-MONAI:main Sep 10, 2026
12 checks passed
@aylward
aylward deleted the process_tools branch September 10, 2026 15:06
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