Changeset 441a03f in sasview


Ignore:
Timestamp:
Mar 28, 2018 4:45:01 PM (4 years ago)
Author:
krzywon
Branches:
ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
edd6720
Parents:
b685c7b
Message:

Properly set the background value in the invertor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Inversion/InversionPerspective.py

    rb685c7b r441a03f  
    152152 
    153153        self.backgroundInput.editingFinished.connect( 
    154             lambda: self._calculator.set_background(is_float(self.backgroundInput.text()))) 
     154            lambda: self.set_background(is_float(self.backgroundInput.text()))) 
    155155        self.minQInput.editingFinished.connect( 
    156156            lambda: self._calculator.set_qmin(is_float(self.minQInput.text()))) 
     
    317317        self._calculator.set_y(self._data_set.y) 
    318318        self._calculator.set_err(self._data_set.dy) 
     319        self.set_background(self.backgroundInput.text()) 
     320 
     321    def set_background(self, value): 
     322        self._calculator.background = is_float(value) 
    319323 
    320324    def model_changed(self): 
     
    359363            self.backgroundInput.setEnabled(False) 
    360364            self._calculator.set_est_bck = True 
    361         else: 
     365        elif sender is self.manualBgd: 
    362366            self.backgroundInput.setEnabled(True) 
    363367            self._calculator.set_est_bck = False 
     368        else: 
     369            pass 
    364370 
    365371    def openExplorerWindow(self): 
Note: See TracChangeset for help on using the changeset viewer.