From 7a851191d98f13f24ca573d081912e48c5f65209 Mon Sep 17 00:00:00 2001 From: Dominik Demuth Date: Mon, 29 Apr 2024 17:49:54 +0200 Subject: [PATCH] read error column only for points --- src/gui_qt/io/asciireader.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui_qt/io/asciireader.py b/src/gui_qt/io/asciireader.py index ea4c980..fae624d 100644 --- a/src/gui_qt/io/asciireader.py +++ b/src/gui_qt/io/asciireader.py @@ -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(), )