Changeset a74dd016 in sasview


Ignore:
Timestamp:
Feb 7, 2019 4:00:00 AM (5 years ago)
Author:
wojciech
Branches:
ESS_GUI, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_sync_sascalc
Children:
80963c6c
Parents:
bda3ce4
Message:

Fixing faling P(r) on files without added errors

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

Legend:

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

    r3c4f02e ra74dd016  
    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 
    158165    def computeDataRange(self): 
    159166        """ 
  • src/sas/qtgui/Perspectives/Inversion/InversionPerspective.py

    raed159f ra74dd016  
    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._calculator.add_errors() 
     475                self.logic.add_errors() 
    476476            self.updateDataList(data) 
    477477            self.populateDataComboBox(self.logic.data.filename, data) 
Note: See TracChangeset for help on using the changeset viewer.