Skip to content

Commit

Permalink
Clarify what is meant by id in router documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlatchford committed Jul 30, 2019
1 parent ddc446a commit 1cc1dc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/source/python/python_component.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class ImageNetCombiner(object):
```

## Routers
Routers provide functionality to direct a request to one of a set of child components. For this you should create a method with signature as shown below that returns the id for the child component to route the request to.
Routers provide functionality to direct a request to one of a set of child components. For this you should create a method with signature as shown below that returns the `id` for the child component to route the request to. The `id` is the index of children connected to the router.

```python
def route(self, features: Union[np.ndarray, str, bytes], feature_names: Iterable[str]) -> int:
Expand Down

0 comments on commit 1cc1dc5

Please sign in to comment.