-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changed the polyfit to compute function #2223
Conversation
I get the hang when I run locally with Also some error
|
This seems to be a Linux specific issue, as I dont get this on Windows. Makes sense with it being related to the Shared Memory. |
I think the problem here is that This is needed because |
Signed-off-by: ashmeigh <[email protected]>
6e9c510
to
a5e7ada
Compare
I've rebased and squashed the commits to reduce the churn. |
Issue
Closes #2051
Description
This pull request refactors the polyfit_correlation module to transition from the partial function style to the compute_function approach. This change improves code clarity, maintainability, and performance.
Changes
Refactored find_center to use the new compute_function method.
Introduced compute_correlation_error to encapsulate core logic for parallel execution.
Allocated shared memory for arrays to enhance performance.
Updated code to handle shared memory arrays and ensure compatibility.
Testing
Verifiy the refactored find_center function by running unit tests.
Ensure that compute_correlation_error correctly computes correlation errors in parallel.
Test shared memory allocation and access in a multiprocessing context.
Acceptance Criteria
Ensure all unit tests pass.
Verify that the find_center function performs as expected with different image inputs.
Check that the compute_function handles shared memory correctly without errors.