Ignore:
Timestamp:
Feb 7, 2019 6: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

File:
1 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        """ 
Note: See TracChangeset for help on using the changeset viewer.