Closed
Labels
Milestone
Description
1.0.0 readiness: contours
Area: Vector Function: contours
Source: xrspatial/contour.py
Scope
- Public surface frozen against the README feature matrix
- Dark-corner decisions resolved (see [1.0.0] Scope freeze: reconcile dark corners #2930)
Sweep clearance, no CRITICAL or HIGH (accuracy and security first)
- Accuracy
/deep-sweep xrspatial/contour.py - Security
- Performance
- API consistency
Last swept: none yet
Examples
- Notebook example
- (optional) standalone script
Linked bug issues
- contours() validates return_type too late, wasting compute on invalid values #2788 (Low) contours() validates return_type too late, wasting compute on invalid values
- contours() emits degenerate and duplicate lines for exact-level plateaus #2790 (Medium) contours() emits degenerate and duplicate lines for exact-level plateaus
- contours(): n_levels is not validated as a positive integer #2791 (Low) contours(): n_levels is not validated as a positive integer
- contours() emits RuntimeWarning on all-NaN input with auto level selection #2795 (Low) contours() emits RuntimeWarning on all-NaN input with auto level selection
Part of #2951.
Activity
Melissari1997 commentedon Jun 15, 2026
@brendancol
Questions about sweeps. Every tool (cursor, codex, claude etc.) has its own CSV files containing the sweep results.
Perhaps we should have a single, centralized location to store them?
brendancol commentedon Jun 16, 2026
@Melissari1997 I like the ideas of storing the sweep results but need a better system than the git tracked CSVs...I think it may be better to stop version tracking the CSV, and instead just keep a shared list of which modules have been marked "passing"...
Melissari1997 commentedon Jun 20, 2026
Maybe we should put sweeps as a github action to be runned for example on weekly basis? Or something similar
Melissari1997 commentedon Jun 20, 2026
Deep-Sweep Results:
contourmoduleDate: 2026-06-20
Module:
xrspatial/contour.py(799 LOC, 18 commits, last modified 2026-06-15)Test file:
xrspatial/tests/test_contour.py(1546 LOC)CUDA: unavailable (all GPU paths audited by source only)
Results
Audit Details
Security
No CRITICAL/HIGH/MEDIUM issues found across any of 6 categories:
np.isfinitechecks on all 4 corners before processing; zero-division guards in interpolation (if tr != tl else 0.5)./proc/meminfopath._validate_rastercalled; explicitfloat64casts in_contours_numpy.Accuracy
No accuracy issues found:
np.isfiniteskips non-finite corners; auto-levels filter inf/nan viada.where(da.isfinite(...)).range(ny-1),range(nx-1)).Performance
No performance issues. OOM verdict: SAFE. Bottleneck: compute-bound.
dask.computeonly for scalars (auto-levels) and batched chunks.boundary=nanprovided.@ngjiton both kernels.API Consistency
No API consistency issues:
contours(agg, levels, n_levels, return_type).aggconsistent with library convention.__init__.py.Metadata Propagation
No metadata propagation issues:
_detect_raster_crsfor geopandas path.Style
No style issues found via manual review (flake8/isort not available in environment):
== None, no shadowed builtins.Test Coverage
Comprehensive test coverage (1546 LOC tests vs 799 LOC source):
Melissari1997 commentedon Jun 20, 2026
@brendancol
I think that contours module is clear. How we should proceed now?
brendancol commentedon Nov 6, 2026
Closing this tracker. On 2026-11-05 the 1.0.0 gate was cut down to five items: no open CRITICAL or HIGH bugs,
xrspatial/__init__.pyexports matching the README matrix (enforced bytest_public_surface.pyin #3765), the 14 deprecated aliases removed with a migration page (#3766, #3767, #3768), a written semver and LTS policy (#3761), and green CI.The per-group sweep checklist on this issue is not part of that gate. Sweep work continues after 1.0.0 under milestone 1.1.0.