nanovna-saver/tests
Name abb80a5160
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: 6eb24f23 d09b55e1 dbea311a

Since d09b55e1, 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 d09b55e1 (immutable
   properties).
2023-07-30 09:03:06 +02:00
..
data tests/data/s2p: remove DOS end of line characters (#624) 2023-03-20 09:28:20 +01:00
__init__.py moved to pyscaffold directory structure 2023-03-07 21:11:12 +01:00
conftest.py moved to pyscaffold directory structure 2023-03-07 21:11:12 +01:00
test_analytics.py moved to pyscaffold directory structure 2023-03-07 21:11:12 +01:00
test_formatSweepFrequency.py moved to pyscaffold directory structure 2023-03-07 21:11:12 +01:00
test_formatting.py moved to pyscaffold directory structure 2023-03-07 21:11:12 +01:00
test_parseFrequency.py moved to pyscaffold directory structure 2023-03-07 21:11:12 +01:00
test_rftools.py moved to pyscaffold directory structure 2023-03-07 21:11:12 +01:00
test_settings.py Feature/tinysa (#616) 2023-03-14 19:22:46 +01:00
test_sitools.py moved to pyscaffold directory structure 2023-03-07 21:11:12 +01:00
test_sweep.py Sweep.py: add getters and setters for private fields (#659) 2023-07-30 09:03:06 +02:00
test_touchstone.py moved to pyscaffold directory structure 2023-03-07 21:11:12 +01:00
test_version.py moved to pyscaffold directory structure 2023-03-07 21:11:12 +01:00