integration limits were not available

This commit is contained in:
dominik 2022-11-04 17:19:43 +01:00
parent 917f1c3910
commit de9d9d3bd3
2 changed files with 6 additions and 1 deletions

View File

@ -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': []}

View File

@ -516,7 +516,7 @@ class Points:
"""
if low_lim is None and high_lim is None:
raise ValueError('Two arguments are needed')
return self
if low_lim is None:
low_lim = np.min(self._x)