Revert "dev (#295)"
All checks were successful
Build AppImage / Explore-Gitea-Actions (push) Successful in 2m17s

This reverts commit 7145f9e3cd.
This commit is contained in:
2024-11-14 12:14:17 +01:00
parent 7145f9e3cd
commit 91b2594b90
9 changed files with 324 additions and 440 deletions

View File

@ -791,27 +791,16 @@ class UpperManagement(QtCore.QObject):
_active = self.graphs[self.current_graph].active
new_datasets = {}
groupby = params.pop('groupby')
for sid in _active:
data_i = self.data[sid]
if data_i.group not in new_datasets:
new_datasets[data_i.group] = [], []
new_x_axis, _temp = new_datasets[data_i.group]
pts = data_i.points(params)
if groupby == 'group':
if data_i.group not in new_datasets:
new_datasets[data_i.group] = [], []
new_x_axis, _temp = new_datasets[data_i.group]
if pts:
new_x_axis.append(data_i.value)
_temp.append(pts)
else:
for (_x, _y, _yerr) in pts:
if _x not in new_datasets:
new_datasets[_x] = [], []
new_x_axis, _temp = new_datasets[_x]
new_x_axis.append(data_i.value)
_temp.append([[_x, _y, _yerr]])
if pts:
new_x_axis.append(data_i.value)
_temp.append(pts)
key_list = []
for label, (new_x_axis, _temp) in new_datasets.items():