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
Fix copyWithMask for scalar mask on non-scalar data (issue #47)
Three-part fix in escriptcore/src/Data.cpp maskWorker():
1. Added early-exit path for Expanded/Constant data with scalar mask,
iterating per data-point instead of per-component.
2. Extended shape validation in the Tagged handler to allow scalar masks
with matching self/other shapes.
3. Added new else-if branch in the Tagged handler to correctly apply a
scalar mask across all tagged values and the default value.
Added comprehensive test suite in finley/test/python/run_copyWithMaskOnFinley.py
with 91 tests covering ranks 0-4, all combinations of Constant/Tagged/Expanded
data storage, and both full-shape and scalar masks.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments