def _set_limits(self): data = self.ui.component_selector.data cid = self.ui.component_selector.component vals = data[cid] wmin = self.ui.min wmax = self.ui.max wmin.setText(pretty_number(np.nanmin(vals))) wmax.setText(pretty_number(np.nanmax(vals)))
def update_widget(val): if val is None: val = 0. widget.setText(pretty_number(val))
def setter(self, widget, value): widget.setText(pretty_number(value)) widget.editingFinished.emit()