You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: add missing stacklevel=2 to warnings.warn() in metrics/ #8931
13 calls to warnings.warn() in monai/metrics/ are missing the stacklevel parameter. Without stacklevel=2, warnings point to the MONAI internal code instead of the user's calling code.
This is the same class of issue as #8929 (losses/ module).
Proposed Fix
Add stacklevel=2 to all 13 warnings.warn() calls in:
Activity
fix: add missing stacklevel=2 to warnings.warn() in metrics/ (Fixes P…