You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After construction, nodes are re-labelled as integers. Use `find()` to go from original coordinates to the integer ID and `recall()` to go back.
263
263
264
+
::: {.callout-tip}
265
+
When creating `NodeObservation` objects for skill assessment you generally do **not** need to call `find()`. You can pass the original string ID or a `(edge, distance)` tuple directly as `node=`, and `NetworkModelResult` will resolve it for you during matching. See [Skill assessment workflow](#skill-assessment-workflow) for details.
266
+
:::
267
+
264
268
```{python}
265
269
# Look up a named node by its original id
266
270
node_id = network.find(node="117")
@@ -309,6 +313,11 @@ mr
309
313
310
314
`NodeObservation` accepts a file path directly; the observation name is taken from the filename.
311
315
316
+
The `node=` argument can be specified in three ways, depending on what information you have at hand.
317
+
318
+
#### Option A — integer node ID (direct)
319
+
320
+
Pass the integer ID assigned by the `Network`. This is the most explicit form:
@@ -318,6 +327,35 @@ cc = ms.match(obs=[obs_1, obs_2], mod=mr)
318
327
cc.skill()
319
328
```
320
329
330
+
#### Option B — original string alias
331
+
332
+
Pass the original node identifier from the source format (e.g. the Res1D node name) as a plain string. The `NetworkModelResult` resolves it to the correct integer ID at match time, so you never need to call `network.find()` yourself:
Resolution happens inside `ms.match()`. If the string is not found in the network's alias map a `ValueError` is raised with a clear message indicating which alias could not be resolved.
344
+
:::
345
+
346
+
#### Option C — breakpoint by `(edge, distance)` tuple
347
+
348
+
When your observation sits at a chainage along a reach rather than at a named junction node, pass a `(edge_id, distance)` tuple. The `NetworkModelResult` looks up the corresponding breakpoint at match time:
0 commit comments