GUI #70
Loading…
Reference in New Issue
No description provided.
Delete Branch "GUI"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -71,0 +76,4 @@
The GUI is developed based on the Python library pyqtgraph. The environment needed to run the GUI is configured automatically by running:
```shell
nix develop
You could make it a
nix shell
@ -76,0 +76,4 @@
shellHook=
''
export QT_PLUGIN_PATH=${pkgs.qt5.qtbase}/${pkgs.qt5.qtbase.dev.qtPluginPrefix}
export QML2_IMPORT_PATH=${pkgs.qt5.qtbase}/${pkgs.qt5.qtbase.dev.qtQmlPrefix}
Better solution: package tecQT (making a separate flake output) and use wrapQtApp
@ -0,0 +286,4 @@
paramList[0].restoreState(refreshTreeParam(paramList[0].saveState(), 0))
paramList[1].restoreState(refreshTreeParam(paramList[1].saveState(), 1))
paramList[0].sigTreeStateChanged.connect(change0)
Make
channel
the first parameter, usefunctools.partial
, and removechange0/change1
@ -117,0 +118,4 @@
1 => self.channel1.vref_meas,
_ => unreachable!(),
};
// let center_point = self.get_center(channel);
Why?
If the get_center function is broken then it should be fixed. In any case this commented-out line should be removed.
@ -0,0 +225,4 @@
return tempTree
cnt = 0
def updateData():
update_data, see PEP8
@ -0,0 +10,4 @@
rec_len = 1000
refresh_period = 20
TECparams = [ [
tec_params, PEP8 and consistency with the two variables above
@ -0,0 +259,4 @@
if __name__ == '__main__':
tec = Client(host="192.168.1.26", port=23, timeout=None)
argparse, IP address settings
@ -0,0 +255,4 @@
if quit:
break
cnt += 1
Should there be a feature to reset the plots and/or set a maximum number of samples to store?
Those could probably go into a separate PR.
This error kept popping up on the console after running
python pytec/tecQT.py
.The GUI plot seems broken.
Replacing line 165 in
pytec/tecQT.py
withpass
works around the problem.Edit: This is caused by attempting to cast a
None
value.None
value appears in the reported dictionary when there are empty TEC slots.Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.