diff --git a/pytec/pytec/gui/view/ctrl_panel.py b/pytec/pytec/gui/view/ctrl_panel.py index 560a122..267fed6 100644 --- a/pytec/pytec/gui/view/ctrl_panel.py +++ b/pytec/pytec/gui/view/ctrl_panel.py @@ -161,7 +161,7 @@ class CtrlPanel(QObject): ) if settings["tec_i"] is not None: self.params[channel].child("tec_i").setValue( - settings["tec_i"] * 1000 + settings["tec_i"] ) @pyqtSlot("QVariantList") diff --git a/pytec/pytec/gui/view/param_tree.json b/pytec/pytec/gui/view/param_tree.json index 131d09c..91006c5 100644 --- a/pytec/pytec/gui/view/param_tree.json +++ b/pytec/pytec/gui/view/param_tree.json @@ -12,7 +12,8 @@ "name":"tec_i", "title":"Current through TEC", "type":"float", - "suffix":"mA", + "siPrefix":true, + "suffix":"A", "decimals":6, "readonly":true, "tip": "The measured current going through the TEC"