1
0
forked from IPKM/nmreval

missed index as option

This commit is contained in:
Dominik Demuth 2024-04-30 17:15:46 +02:00
parent 79d0ab1628
commit 3ee7dca457

View File

@ -317,10 +317,13 @@ class QAsciiReader(QtWidgets.QDialog, Ui_ascii_reader):
return val return val
def check_column_numbers(self, values: int | list[int] | None, num_column: int) -> bool: def check_column_numbers(self, values: int | list[int] | str | None, num_column: int) -> bool:
is_valid = False is_valid = False
if values is None: if values is None:
is_valid = True is_valid = True
elif values == 'index':
is_valid = True
elif isinstance(values, int): elif isinstance(values, int):
is_valid = values < num_column is_valid = values < num_column
elif isinstance(values, list): elif isinstance(values, list):