From cf6162f3f6cc68b34d44e3d55a45510eac88641e Mon Sep 17 00:00:00 2001 From: ldam <ldam@passcal.nmt.edu> Date: Thu, 2 Nov 2023 16:52:28 -0600 Subject: [PATCH] change back conversion widget to QLineEdit because conversion can go down to 1.0e-06, the range of value are large --- .../view/db_config/add_edit_single_channel_dialog.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sohstationviewer/view/db_config/add_edit_single_channel_dialog.py b/sohstationviewer/view/db_config/add_edit_single_channel_dialog.py index 8a760224e..aece8072b 100755 --- a/sohstationviewer/view/db_config/add_edit_single_channel_dialog.py +++ b/sohstationviewer/view/db_config/add_edit_single_channel_dialog.py @@ -72,14 +72,14 @@ class AddEditSingleChannelDialog(QDialog): "added to channel name to be displayed") # convert factor to change from count to actual value - self.convesion_lnedit = QtWidgets.QLineEdit(self) - self.convesion_lnedit.setPlaceholderText( + self.conversion_lnedit = QtWidgets.QLineEdit(self) + self.conversion_lnedit.setPlaceholderText( "to convert from count to actual value" ) validator = QtGui.QDoubleValidator(0.0, 5.0, 6) validator.setNotation(QtGui.QDoubleValidator.StandardNotation) - self.convesion_lnedit.setValidator(validator) - self.convesion_lnedit.setText('1') + self.conversion_lnedit.setValidator(validator) + self.conversion_lnedit.setText('1') # channel's unit self.unit_lnedit = QtWidgets.QLineEdit(self) @@ -224,7 +224,7 @@ class AddEditSingleChannelDialog(QDialog): self.label_lnedit.setText(self.channel_info['label']) - self.convesion_lnedit.setText( + self.conversion_lnedit.setText( str(float(self.channel_info['convertFactor']))) self.unit_lnedit.setText(self.channel_info['unit']) -- GitLab