fix: update stale "c3d command" references to "picsl-c3d"#94
Conversation
Co-authored-by: tomboulier <14161960+tomboulier@users.noreply.github.com> Agent-Logs-Url: https://github.com/tomboulier/oxytcmri-dti-processing/sessions/3a05aa71-12b5-4555-8c93-5eaf8e8575e9
Co-authored-by: tomboulier <14161960+tomboulier@users.noreply.github.com> Agent-Logs-Url: https://github.com/tomboulier/oxytcmri-dti-processing/sessions/3a05aa71-12b5-4555-8c93-5eaf8e8575e9
tomboulier
left a comment
There was a problem hiding this comment.
"picsl-c3d Convert3D" seems a bit redundant, since "c3d" means "Convert3D". You can simplify all these occurences, and I would say it's all good then
@copilot could you make those changes in your PR please? |
|
@tomboulier The model You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
5 similar comments
|
@tomboulier The model You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
|
@tomboulier The model You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
|
@tomboulier The model You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
|
@tomboulier The model You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
|
@tomboulier The model You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
|
@copilot could you make the changes asked in my review? |
Co-authored-by: tomboulier <14161960+tomboulier@users.noreply.github.com> Agent-Logs-Url: https://github.com/tomboulier/oxytcmri-dti-processing/sessions/f4f6fb26-bca3-4f32-afc2-b01ebec4c101
Done in
Applied in
Completed in |
There was a problem hiding this comment.
Pull request overview
Updates staple_segmenter.py user-facing text to consistently refer to the underlying tool as picsl-c3d, avoiding misleading “c3d command” wording during logs, exceptions, and docstrings.
Changes:
- Updated log messages around
run_c3d_commandexecution to say “picsl-c3d”. - Updated
ValueErrorandRuntimeErrormessages to say “picsl-c3d”. - Updated docstrings/Raises entries and STAPLE-related log wording to “picsl-c3d”.
| If the segmentations list is empty | ||
| RuntimeError | ||
| If the c3d command fails | ||
| If the picsl-c3d fails | ||
| """ | ||
| logger.info(f"Merging {len(segmentations)} segmentations with c3d STAPLE algorithm") | ||
| logger.info(f"Merging {len(segmentations)} segmentations with picsl-c3d STAPLE algorithm") |
There was a problem hiding this comment.
In this merge() docstring, the process flow still says it processes files with the "c3d STAPLE algorithm" (earlier in the same docstring), but this PR updates user-facing wording to "picsl-c3d". Consider updating that remaining step text so the docstring is internally consistent and matches the logs/errors.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
* build: replace system c3d dependency with picsl-c3d * fix: update stale "c3d command" references to "picsl-c3d" (#94) * Initial plan * fix: update log and error messages to reference picsl-c3d Convert3D Co-authored-by: tomboulier <14161960+tomboulier@users.noreply.github.com> Agent-Logs-Url: https://github.com/tomboulier/oxytcmri-dti-processing/sessions/3a05aa71-12b5-4555-8c93-5eaf8e8575e9 * fix: update remaining c3d STAPLE log message to picsl-c3d Convert3D Co-authored-by: tomboulier <14161960+tomboulier@users.noreply.github.com> Agent-Logs-Url: https://github.com/tomboulier/oxytcmri-dti-processing/sessions/3a05aa71-12b5-4555-8c93-5eaf8e8575e9 * Update oxytcmri/interface/mri/staple_segmenter.py * fix: simplify redundant picsl-c3d Convert3D wording Co-authored-by: tomboulier <14161960+tomboulier@users.noreply.github.com> Agent-Logs-Url: https://github.com/tomboulier/oxytcmri-dti-processing/sessions/f4f6fb26-bca3-4f32-afc2-b01ebec4c101 * Update oxytcmri/interface/mri/staple_segmenter.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update oxytcmri/interface/mri/staple_segmenter.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: tomboulier <14161960+tomboulier@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>



Log messages, raised error strings, and docstrings in
staple_segmenter.pystill referred to "c3d command" after the underlying implementation was switched topicsl_c3d, making failure diagnosis misleading.Changes
run_c3d_command):"Running c3d command"→"Running picsl-c3d", success/failure strings updated to matchValueErrors: option/input-path guards now say"… for picsl-c3d"optionsparam description, andRaisesentries updated acrossrun_c3d_commandand its callers"… with c3d STAPLE algorithm"→"… with picsl-c3d STAPLE algorithm"This also incorporates follow-up review feedback to simplify redundant
"picsl-c3d Convert3D"wording to"picsl-c3d"throughout the updated text.📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.