Commit f8d0a3f
Tidy nldi cleanup per /simplify review
Per /simplify review on PR #252:
- Hoist `_VALID_NAVIGATION_MODES` to the module-level constants block
alongside `NLDI_API_BASE_URL`/`_CRS` rather than wedging it between
two `_validate_*` helpers.
- Drop the redundant `have_latlong` local in `get_features`; inline
`lat is not None` directly. Hoist the duplicated
`err_msg = _features_err_msg(...)` to a single call after the
comid/feature-source if/else branch.
- Drop the unused `mock_request_data_sources` call in
`test_get_flowlines_by_comid_includes_trim_start` — the comid path
doesn't hit `_validate_data_source`.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 86d5891 commit f8d0a3f
2 files changed
Lines changed: 15 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
230 | 231 | | |
231 | 232 | | |
232 | 233 | | |
233 | | - | |
234 | | - | |
| 234 | + | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
245 | 248 | | |
246 | 249 | | |
247 | 250 | | |
| |||
254 | 257 | | |
255 | 258 | | |
256 | 259 | | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
265 | 268 | | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
| 269 | + | |
| 270 | + | |
275 | 271 | | |
276 | 272 | | |
277 | 273 | | |
| |||
466 | 462 | | |
467 | 463 | | |
468 | 464 | | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | 465 | | |
473 | 466 | | |
474 | 467 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
311 | | - | |
312 | 311 | | |
313 | 312 | | |
314 | 313 | | |
| |||
0 commit comments