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
Add regression test for GPU pred=3 multi-sample TIFFs #1479
The GPU _fp_predictor_decode_kernel path in _gpu_decode.py decodes multi-sample float TIFFs (predictor=3, samples=3 or 4, float32 or float64) correctly. Manual round-trip testing confirms it works. But xrspatial/geotiff/tests/test_predictor_multisample.py only covers GPU predictor=2 multi-sample. The predictor=3 multi-sample GPU path is not exercised in CI.
This is a coverage gap, not a bug. The code is right; the suite just doesn't lock it in.
Proposal
Add parametrized regression tests over samples in (3, 4) and dtype in (float32, float64) that:
Generate random multi-sample float data of shape (64, 64, samples).
Round-trip through to_geotiff(compression='deflate', predictor=3, tiled=True, tile_size=32).
Read back on CPU and GPU.
Assert GPU is bit-exactly equal to CPU and both match the source.
Activity
Add regression test for GPU pred=3 multi-sample TIFFs (#1479) (#1481)
geotiff tests: consolidate predictor cluster (predictor 2 / 3) (#2454)