Changes in / [80963c6c:a0f3c29] in sasview


Ignore:
Location:
src/sas/qtgui/Perspectives/Inversion
Files:
2 edited

Legend:

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

    ra74dd016 r3c4f02e  
    156156        return new_plot 
    157157 
    158     def add_errors(self, sigma=0.05): 
    159         """ 
    160         Adds errors to data set is they are not available. 
    161         Uses  $\Delta y = \sigma | y |$. 
    162         """ 
    163         self._data.dy = sigma * np.fabs(self._data.y) 
    164  
    165158    def computeDataRange(self): 
    166159        """ 
  • src/sas/qtgui/Perspectives/Inversion/InversionPerspective.py

    ra74dd016 raed159f  
    473473            self._calculator.set_qmax(qmax) 
    474474            if np.size(self.logic.data.dy) == 0 or np.all(self.logic.data.dy) == 0: 
    475                 self.logic.add_errors() 
     475                self._calculator.add_errors() 
    476476            self.updateDataList(data) 
    477477            self.populateDataComboBox(self.logic.data.filename, data) 
Note: See TracChangeset for help on using the changeset viewer.