Skip to content

Conversation

@N-Dekker
Copy link
Contributor

Apparently my old pull request #4494 was far from being complete 🤷

@github-actions github-actions bot added type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct area:Core Issues affecting the Core module area:Filtering Issues affecting the Filtering module area:IO Issues affecting the IO module area:Registration Issues affecting the Registration module area:Segmentation Issues affecting the Segmentation module labels Oct 31, 2025
Copy link
Member

@hjmjohnson hjmjohnson left a comment

Choose a reason for hiding this comment

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

Looks good at a glance. Approved when CI passes.

@dzenanz
Copy link
Member

dzenanz commented Oct 31, 2025

@N-Dekker Mark it "ready for review"?

AllocateInitialized() already zero-initializes the buffer.
Found by searching for `FillBuffer(0)` in *.py files.

Follow-up to pull request InsightSoftwareConsortium#4494
commit cd49925
"STYLE: Replace `Allocate(); FillBuffer(0)` with `AllocateInitialized()`"
Using Notepad++, Replace in Files, doing:

  Find what: `^(  .+)Allocate\(\);[\r\n]+\1FillBuffer\(0\);`
  Find what: `^(  .+)Allocate\(\);[\r\n]+\1FillBuffer\(0.0\);
  Replace with: `$1AllocateInitialized\(\);`

Again, another follow-up to pull request InsightSoftwareConsortium#4494
commit cd49925
"STYLE: Replace `Allocate(); FillBuffer(0)` with `AllocateInitialized()`"
@N-Dekker N-Dekker force-pushed the AllocateInitialized-FillBuffer branch from 1e0500c to da0bea5 Compare November 2, 2025 09:26
@github-actions github-actions bot added area:Python wrapping Python bindings for a class area:Bridge Issues affecting the Bridge module labels Nov 2, 2025
@N-Dekker N-Dekker marked this pull request as ready for review November 2, 2025 09:53
@N-Dekker
Copy link
Contributor Author

N-Dekker commented Nov 2, 2025

@dzenanz

Mark it "ready for review"?

It really needed another force-push (including a rebase, an amend and an extra commit), but now it is ready for review! Thanks for waiting!

@hjmjohnson hjmjohnson merged commit 34d91f3 into InsightSoftwareConsortium:main Nov 2, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Bridge Issues affecting the Bridge module area:Core Issues affecting the Core module area:Filtering Issues affecting the Filtering module area:IO Issues affecting the IO module area:Python wrapping Python bindings for a class area:Registration Issues affecting the Registration module area:Segmentation Issues affecting the Segmentation module type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants