-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sweep.py: add getters and setters for private fields (#659)
* style, Sweep.py: remove a double negation * style, NanoVNASaver.py: simplify sweepSource computation * Sweep.py: add getters and setters for private fields Beware that this commit removes a lock from SweepSettings.update_tex_power, and adds one to DeviceSettings.updatecustomPoint. Both changse may be incorrect, depending on the role of the lock (issue #657). Follows: 6eb24f2 d09b55e dbea311 Since d09b55e, the Properties.name class attribute is overriden by each assignment to the properties.name instance attribute. This is most probably unwanted. This commit * removes @DataClass, which is confusing as some attributes are managed because of the lock. Because of this, it has to restore __repr__ and __eq__. * provides getters and setters for private attributes, and protects each update by a thread lock * adds a regression test for the bug fixed by d09b55e (immutable properties).
- Loading branch information
1 parent
5bed1bc
commit abb80a5
Showing
7 changed files
with
113 additions
and
42 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