Skip to content

Commit

Permalink
Update make-a-simple-device.rst to include numpy array example (#515)
Browse files Browse the repository at this point in the history
Co-authored-by: Tom C (DLS) <101418278+coretl@users.noreply.github.com>
  • Loading branch information
rerpha and coretl authored Aug 20, 2024
1 parent 406ac08 commit d7f0748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/how-to/make-a-simple-device.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ First some Signals are constructed and stored on the Device. Each one is passed
its Python type, which could be:

- A primitive (`str`, `int`, `float`)
- An array (`numpy.typing.NDArray` or ``Sequence[str]``)
- An array (`numpy.typing.NDArray` ie. ``numpy.typing.NDArray[numpy.uint16]`` or ``Sequence[str]``)
- An enum (`enum.Enum`) which **must** also extend `str`
- `str` and ``EnumClass(str, Enum)`` are the only valid ``datatype`` for an enumerated signal.

Expand Down

0 comments on commit d7f0748

Please sign in to comment.