Commit 7836d12
Tidy WQP_Metadata.site_info per /simplify review
Per /simplify review on PR #249:
- Switch `site_info` from `@property` to `functools.cached_property`.
Repeated access of `md.site_info` (common in notebooks) now reuses
the resolved tuple instead of issuing a fresh `what_sites` HTTP call
on every read.
- Add a one-line comment explaining the legacy-alias -> `siteid`
coercion: whichever of `siteid`/`sites`/`site`/`site_no` matched,
the value is passed as `siteid` (what_sites' native WQP arg).
Also confirmed the docstring's `comments` -> `comment` rename matches
`BaseMetadata.comment` (singular) defined at `dataretrieval/utils.py:130`.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent add49eb commit 7836d12
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
687 | 688 | | |
688 | 689 | | |
689 | 690 | | |
690 | | - | |
| 691 | + | |
691 | 692 | | |
| 693 | + | |
| 694 | + | |
692 | 695 | | |
693 | 696 | | |
694 | 697 | | |
| |||
0 commit comments