BUGFIX: integration limits are not possible
This commit is contained in:
parent
917f1c3910
commit
ccb44fc038
@ -48,6 +48,11 @@ class QDeriveIntegrate(QtWidgets.QDialog, Ui_Dialog):
|
||||
def enable_graph(self, state: int):
|
||||
self.graph_combobox.setEnabled(state != QtCore.Qt.Checked)
|
||||
|
||||
@QtCore.pyqtSlot(int, name='on_range_checkbox_stateChanged')
|
||||
def enable_limits(self, full_range: int):
|
||||
self.start_lineedit.setEnabled(full_range != QtCore.Qt.Checked)
|
||||
self.stop_lineedit.setEnabled(full_range != QtCore.Qt.Checked)
|
||||
|
||||
def get_options(self):
|
||||
opts = {'graph': '' if self.newgraph_checkbox.isChecked() else self.graph_combobox.currentData(),
|
||||
'mode': self.mode, 'sets': []}
|
||||
|
@ -393,7 +393,7 @@ class Points:
|
||||
def integrate(self, log: bool = False, limits: tuple[float, float] = None) -> PointLike:
|
||||
new_data = self.copy()
|
||||
|
||||
if limits is not None:
|
||||
if limits != (None, None):
|
||||
new_data.cut(*limits)
|
||||
|
||||
if log:
|
||||
|
Loading…
Reference in New Issue
Block a user