Skip to content

BUG: Fix aneurysm repeating-timer callback argument mismatch - #3

Open
lassoan wants to merge 1 commit into
SimVascular:mainfrom
lassoan:fix-aneurysm-timer-callback
Open

lassoan wants to merge 1 commit into
SimVascular:mainfrom
lassoan:fix-aneurysm-timer-callback

Conversation

@lassoan

@lassoan lassoan commented Sep 10, 2026

Copy link
Copy Markdown

Current situation

Holding the d key (repeating aneurysm deformation timer) crashes with TypeError:
timer_callback calls deform_mesh_aneurysm with two arguments, but the method requires
three since the aneurysm_radius parameter was added in 1583c46. The GUI button path
passes all three and is unaffected. Trivial self-contained fix, no tracking issue.

Release Notes

  • Fixed: repeating aneurysm deformation via the d key crashed on every timer tick. The
    target radius is now stored as an interactor parameter (like sharpness/force_scale)
    and passed by the timer callback. No API or behavior changes otherwise.

Documentation

None needed, it restores the documented d-key behavior; no public API change.

Testing

Full test suite passes (35 passed); module imports cleanly and all deform_mesh_aneurysm
call sites verified to pass the required arguments. The timer path itself is GUI-interactive
(VTK key events) and outside the automated suite's coverage.

Code of Conduct & Contributing Guidelines

The repeating deformation timer (hold 'd') called deform_mesh_aneurysm
with only sharpness and force scale, but the method also requires the
target aneurysm radius, so the timer path raised TypeError on every
tick. Store the target radius as an interactor attribute (initialized
from ANEURYSM_MAX_RADIUS_DEFAULT_CM like the other deformation
parameters and refreshed on every deform_mesh_aneurysm call) and pass
it from the timer callback.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant