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
In the documentation for the fetch_capture_waveform method of nidigital, "Return type" is listed as "{ int: memoryview of array.array of unsigned int, int: memoryview of array.array of unsigned int, … }".
This is extremely confusing and gives almost no indication of how to interpret the return type, other than it being a key-value pair.
The text was updated successfully, but these errors were encountered:
Returns dictionary where each key is a site number and value is a collection of digital states representing capture waveform data
I think that means the return type should be something like dict[int, memoryview[int]] or dict[int, collections.abc.Buffer[int]]. I assume the fact that the memoryview references an array is a hidden implementation detail.
Related: Moving the type documentation out of the docstring and into a type hint would enable validating it at build time. #1887
In the documentation for the fetch_capture_waveform method of nidigital, "Return type" is listed as "{ int: memoryview of array.array of unsigned int, int: memoryview of array.array of unsigned int, … }".
This is extremely confusing and gives almost no indication of how to interpret the return type, other than it being a key-value pair.
The text was updated successfully, but these errors were encountered: