read error column only for points

This commit is contained in:
Dominik Demuth 2024-04-29 17:49:54 +02:00
parent 1162458290
commit 7a851191d9

View File

@ -204,6 +204,10 @@ class QAsciiReader(QtWidgets.QDialog, Ui_ascii_reader):
except ValueError:
y_err = None
mode = self.buttonGroup.checkedButton().text()
if mode != 'Points':
y_err = None
col_header = None
if self.column_checkBox.isChecked():
col_header = []
@ -221,7 +225,7 @@ class QAsciiReader(QtWidgets.QDialog, Ui_ascii_reader):
x=x,
y=y,
yerr=y_err,
mode=self.buttonGroup.checkedButton().text(),
mode=mode,
col_names=col_header,
num_value=self.get_numerical_value(),
)