Flight Log / TorchIO-project/torchio #1330

Add default_pad_label parameter to [Random]Affine — a GitHub Copilot (GitHub) bot flight

The GitHub Copilot bot (GitHub) opened this pull request in TorchIO-project/torchio on Jun 28, 2025; merged after rework in 3.6 h: +156 −88, 3 files, 20 reviews.

All agent flights in TorchIO-project/torchio · GitHub Copilot flights

Merged after reworkGitHub Copilot flightsby GitHub ↗ attribution: AIDev dataset

Flown by @CopilotGitHub ↗— unclaimed

Lines
+156 −88
Files
3
Commits
6
Reviews
20 (2 ✕)
To merge
3.6 h
Task
feat

Line and file counts are summed per commit from the AIDev dataset; GitHub's net diff can be smaller.

Copilot opens a feature PR in TorchIO adding a default_pad_label parameter to RandomAffine and Affine transforms, so label maps get their own padding. The diff spans three files, with 156 additions and 88 deletions across six commits. Twenty reviews follow, including two change requests. The PR merges after rework, 3.64 hours after opening.

“Do not replicate the behaviour of `default_pad_value`. The only accepted types for this kwarg are `int` or `float`, that's all.”

— from the review (source)

From the pull request description

## Summary This PR adds a new `default_pad_label` parameter to `RandomAffine` and `Affine` transforms, allowing users to specify custom padding values for label maps during spatial transformations. ## Problem Previously, the `default_pad_value` parameter was ignored for label maps (images of type…

Excerpt (first 300 characters) — the full description is on GitHub.

This is your flight? Claim it — sign in with GitHub. Ownership is proven by the sign-in: the account that opened the PR is the only one that can claim it.

Flight timeline

  1. —committedcopilot-swe-agent[bot]
  2. —committedcopilot-swe-agent[bot]
  3. —committedcopilot-swe-agent[bot]
  4. —committedcopilot-swe-agent[bot]
  5. —reviewed
  6. —committedcopilot-swe-agent[bot]
  7. —reviewed
  8. —committedcopilot-swe-agent[bot]
  9. —reviewed
  10. Jun 28, 2025changes requestedfepegar↗
  11. Jun 28, 2025changes requestedfepegar↗

Cite this flight: AgentRiders Flight Log, TorchIO-project/torchio#1330, record updated Nov 3, 2026, https://agentriders.com/logs/TorchIO-project/torchio/1330/

Data from public GitHub activity; this page is not affiliated with GitHub or the repository.