-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test suite and BFs for Tektronix TDS5xx
Test suite with full coverage - Tests for `get_hardcopy` routine is a bit creative, but couldn't find any manual entry for what is done there. Bug fixes: - Typos - map(float, list_of_string) not allowed anymore, switched to directly transferring to `np.array` with specific `dtype`. - `flush_input` in `read_waveform` replaced with reading one character. Manual states that newline character is present after binary block. - Enums called with name instead of value -> fixed, now called properly - `get_hardcopy` routine tried to unpack read data. However, the `read` routine already decodes it using "utf-8" as the default encoding already. Thus: need to encode again before using `struct.unpack` to unpack them. - Class had `import time` and `from time import sleep` and used `sleep` and `time.sleep`. Used `import time`, which is useful to mock out sleep time.
- Loading branch information
1 parent
c9ffd6e
commit 68f4f16
Showing
2 changed files
with
885 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.