1
0
forked from IPKM/nmreval

fix point selection for values with all the same x (#190)

bugfix for issue #189; closes #189

Co-authored-by: Dominik Demuth <dominik.demuth@physik.tu-darmstadt.de>
Reviewed-on: IPKM/nmreval#190
This commit is contained in:
2023-12-28 10:24:34 +00:00
parent 92a3933ed4
commit 2cf94af2c4
2 changed files with 24 additions and 15 deletions

View File

@ -742,8 +742,10 @@ class UpperManagement(QtCore.QObject):
new_datasets[data_i.group] = [], []
new_x_axis, _temp = new_datasets[data_i.group]
new_x_axis.append(data_i.value)
_temp.append(data_i.points(params))
pts = data_i.points(params)
if pts:
new_x_axis.append(data_i.value)
_temp.append(pts)
key_list = []
for label, (new_x_axis, _temp) in new_datasets.items():