-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a comman table property to the sequencer class
Often a command table is associated with a specific sequencer code. This commit simplt adds a property as a "storage" in the sequencer class for a command table. There is no logic attached to this other then storing.
- Loading branch information
Showing
6 changed files
with
43 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from zhinst.toolkit import Sequence, CommandTable | ||
|
||
|
||
def test_setting_command_table(command_table_schema): | ||
sequencer = Sequence() | ||
ct = CommandTable(command_table_schema) | ||
sequencer.command_table = ct | ||
assert sequencer.command_table == ct | ||
|
||
|
||
def test_setting_command_table_constructor(command_table_schema): | ||
ct = CommandTable(command_table_schema) | ||
sequencer = Sequence(command_table=ct) | ||
assert sequencer.command_table == ct |
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