Repository navigation
Calibration GUI: expose Sortgrid search radius in Edit calibration parameters - #47
Merged
Merged
Conversation
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
…parameters and YAML, reload, cancel
The dialog value is the one calibration_gui reads on each Sortgrid click
(experiment.get_parameter('sortgrid')), checked here through the real
CalHandler and the saved YAML.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Sortgrid search radius (
sortgrid.radius, px) could only be changed by hand-editingparameters_*.yaml. The calibration window reads the YAML only when it is created, so edits were ignored until the window was reopened.Changes (
src/openptv2/gui/parameter_gui.py)sortgrid_radius("Sortgrid search radius (px)") next to "Size of crosses".pm.parameters["sortgrid"]["radius"]. A missing or 0 value falls back to 5, matching theor 5fallback incalibration_gui._button_sort_grid_fired.experiment.pm.parameters["sortgrid"]["radius"], creating thesortgridsection if it is absent._button_sort_grid_firedalready readssortgrid.radiusfrom the parameter manager on every click. A new value should therefore apply on the next Sortgrid click without reopening the window.Not changed
"Load images/parameters" still does not re-read the YAML. Doing so would risk discarding in-memory state that has not been saved yet, such as
man_ori_coordinates. The dialog field removes the need to edit the YAML by hand.Review notes
uv/pytestwere unavailable in my environment) and added no tests. I only confirmed the module compiles.