Example #1
0
    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)))
Example #2
0
 def update_widget(val):
     if val is None:
         val = 0.
     widget.setText(pretty_number(val))
Example #3
0
 def setter(self, widget, value):
     widget.setText(pretty_number(value))
     widget.editingFinished.emit()