-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…2623) * Braught pulse command naming in line with circuit Registers (#2593). * Added create_name(...) to command.py that can be used to set pulse command names. * Added an instance counter to class Command and its children. If a pulse command is not given a name it will have the name 'prefix%d' where %d counts the number of class instances. The default prefixes are * Command: c * SamplePulse: p * FrameChange: fc * PersistentValue: pv * Acquire: acq * Snapshot: snap * Brought pulse command naming in line with circuit Registers (#2593) * Changed create_method to classmethod from staticmethod * SubClass prefixes are now class variables * Brought pulse command naming in line with circuit Registers (#2593). * Implementer the class counter using a metaclass instead of itertools. * Brought pulse command naming in line with circuit Registers (#2593). * Added a test case to ensure class counter is properly incremented. * * Added pylint: disable=E1101 for the instances counter. * Removed method increment_counter() in command.py. Incrementing is now done in create_name(name). * * Removed **kwargs from class MetaCount.
- Loading branch information
1 parent
f5dd2e2
commit 508feaf
Showing
7 changed files
with
71 additions
and
19 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
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