Skip to content

docs(flood): add missing reference entries, examples, and backend notes#3502

Merged
brendancol merged 3 commits into
mainfrom
deep-sweep-documentation-flood-2026-06-25
Jun 26, 2026
Merged

docs(flood): add missing reference entries, examples, and backend notes#3502
brendancol merged 3 commits into
mainfrom
deep-sweep-documentation-flood-2026-06-25

Conversation

@brendancol

Copy link
Copy Markdown
Contributor

Documentation-only fixes for the flood module, found during a documentation sweep.

API reference

Three public functions were exported in xrspatial/__init__.py but listed in no
autosummary block, so they did not appear anywhere in the rendered API reference:
vegetation_roughness, vegetation_curve_number, and flood_depth_vegetation.
Added them to docs/source/reference/flood.rst.

Examples

None of the seven public functions had an Examples section. Added a runnable
sourcecode example to each, matching the convention used by other modules. Every
example was executed against the backends available on the build host and ran
without error.

Backend notes

No docstring stated which array backends the functions support. All seven dispatch
to NumPy, CuPy, Dask+NumPy, and Dask+CuPy. Added a backend note to each, following
the convention pinned by test_proximity.test_docstring_states_all_backends
(issue #3091).

NaN handling

curve_number_runoff and travel_time propagate NaN from their inputs but did not
say so. Added a note to each. The other five functions already documented their NaN
behavior.

Scope

Docstrings, examples, and the .rst reference page only. No behavior changes.

Found by the documentation sweep (deep-sweep).

Three public flood functions (vegetation_roughness, vegetation_curve_number,
flood_depth_vegetation) were exported but listed in no autosummary block, so
they were absent from the rendered API reference. Add them to
docs/source/reference/flood.rst.

None of the seven public functions had an Examples section or stated which
array backends they support. Add a runnable example and a backend note to each
docstring, matching the convention used elsewhere in xrspatial. Document NaN
propagation for curve_number_runoff and travel_time, which previously omitted it.

Documentation only; no behavior changes. Examples were executed against all
backends available on the build host.
…ion-flood-2026-06-25

# Conflicts:
#	.claude/sweep-documentation-state.csv
@brendancol brendancol merged commit 3d327e1 into main Jun 26, 2026
12 checks passed
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