add binning

This commit is contained in:
Dominik Demuth
2023-06-15 19:57:13 +02:00
parent 7732544f69
commit 1703b8d514
4 changed files with 46 additions and 0 deletions

View File

@ -766,6 +766,15 @@ class UpperManagement(QtCore.QObject):
self.newData.emit(new_key, dest_graph)
def binning(self, digits: int):
_active = self.graphs[self.current_graph].active
new_data = []
for sid in _active:
key = self.add(self.data[sid].binning(digits=digits))
new_data.append(key)
self.newData.emit(new_data, '')
@QtCore.pyqtSlot(int, dict)
def smooth_data(self, npoints, param_kwargs):
_active = self.graphs[self.current_graph].active