forked from AnnaGiasson/PythonEquipmentDrivers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(errors): add EquipmentDriverError
feat(errors): add CommunicationError try: whatever() except CommunicationError as e: print(f"High-level error: {e}") print(f"Communication error: {e.__cause__}") print(f"Original VISA error: {e.__cause__.__cause__}") this allows you to catch the original error using __cause__ feat(retry): added _do_with_retry to core. if max_retries is set this will rety communications automatically. refactor(visa): refactor visa methods to use retry. This moves all of the try-except blocks to one spot, a nice change! feat(clear): add clear_status to ResourceCollection allows the equipment.config to clear the equipment during init. feat(clear): connect_resources uses clear during init if present feat(error): connect_resources raise from error to allow diagnostic refactor(lint): cleanup line lengths docs(lint): get_error docstring fix(trigger): HP_34401A trigger setup string was incorrect not sure if this was working before, but the whitespace was needed Using mixed 34401A's with 34461A's complained without it. refactor(lint): resp_format line length and whitespace docs(lint): keithley_2231A docstrings fix(measure): keithley_2231A measure_current fails occasionally With newer meter types such as BK9140 _update_channel causes the next response to be an empty string
- Loading branch information
Showing
5 changed files
with
90 additions
and
49 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
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
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
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
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