forked from IPKM/nmreval
commit
6ecc789cd5
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user