Wykres commitów

11 Commity (main)

Autor SHA1 Wiadomość Data
Holger Müller 21e85bdb49
fix swwep update crash #668 (#669) 2023-08-01 12:42:38 +02:00
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
Name dbea311a02
Adapt sweep settings imports and tests to source changes (#653)
6eb24f23 from merge request 625
made NamedTuple an ancestor of Properties, adapting the imports and
tests.

d09b55e1 from merge request 628
removed it but forgot to remove the related changes.
2023-07-08 10:39:35 +02:00
Henk Vergonet 8f86722c1e
fix: PyQt6 fixes (#629)
More fixes for PyQt6 should now be usable again with >python3.7 & PyQt6

Calibration - tested
Display Configuration - tested
2023-04-18 12:14:21 +02:00
Henk Vergonet d09b55e1ae
fix: sweep settings and hw version update (#628)
* Remove privacy breaches from the HTML documentation

Icons and screenshots should not inform distant websites each time an
user reads readme.html.

The suggestions in this draft are independent and will probably be
discussed separately, but they affect a single file so for a first
review a single commit is convenient.

* fix: sweep settings and hw version update

NamedTuples are inmutable either use _replace or use the class itself.

* Revert "Remove privacy breaches from the HTML documentation"

---------

Co-authored-by: Nicolas Boulenguez <nicolas@debian.org>
2023-04-15 19:23:28 +02:00
Name 6eb24f2315
Trivial style changes (#625)
* Style: update type annotations

* Style: simplify extraction of version from metadata

* Style: replace some handwritten classes with namedtuples or dataclasses

* RIZ.py: remove unused import

* Style: remove some redundant lambda constructs

* Marker/Values: remove __init__ parameters

Mutable default values imply some complexity. In this case, the
constructor is always called without arguments.
2023-03-22 15:56:59 +01:00
Holger Müller dd2f5b8a5d
Feature/tinysa (#616)
* TinySA and PyQt6 fixes
2023-03-14 19:22:46 +01:00
Holger Müller 9ace7d8cd4 PyQt6 fixes 2023-03-13 12:13:44 +01:00
Holger Müller b768a8e01b pyqt6 2023-03-13 12:13:44 +01:00
Holger Müller 50b540a832 used black for reformatting/lintig 2023-03-08 09:40:39 +01:00
Holger Müller b0110002ec moved to pyscaffold directory structure
and fixed resonances analysys crash #608
2023-03-07 21:11:12 +01:00