Commit 04f7b70
fix(waterdata.xarray): accurate stats docstring; pin wrapper->_fetch routing
Addresses two review gaps:
- The shared wrapper docstring promised "a CF-conventions Dataset with series
metadata populated", which is false for the stats wrappers -- _build_stats
emits a flat, preliminary Dataset with only dataset-level provenance.
Parametrize _xr_doc(cf_metadata=...) so get_stats_por/get_stats_date_range
describe their actual output.
- The include_hash strip was only tested on _fetch in isolation; nothing
pinned the wrappers to route through it. Add a test that monkeypatches
_fetch and asserts every public wrapper delegates to it (and forwards
include_hash for _fetch to drop), guarding against a wrapper reverting to a
direct getter call.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent fcfaf14 commit 04f7b70
2 files changed
Lines changed: 39 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
344 | | - | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
345 | 357 | | |
346 | 358 | | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
351 | 362 | | |
352 | 363 | | |
353 | 364 | | |
| |||
391 | 402 | | |
392 | 403 | | |
393 | 404 | | |
394 | | - | |
| 405 | + | |
395 | 406 | | |
396 | 407 | | |
397 | 408 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
0 commit comments