Changeset 13da5f5 in sasview


Ignore:
Timestamp:
Sep 13, 2018 7:20:35 AM (5 days ago)
Author:
wojciech
Branches:
ESS_GUI_Pr_fixes
Children:
2385397
Parents:
551f2bc
Message:

Added error check to invert fucntion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/pr/invertor.py

    r6701a0b r13da5f5  
    306306        # Reset the background value before proceeding 
    307307        # self.background = 0.0 
     308        if np.size(self.err) == 0 or np.all(self.err) == 0: 
     309            self.err = self.add_errors(self.y) 
    308310        if not self.est_bck: 
    309311            self.y -= self.background 
Note: See TracChangeset for help on using the changeset viewer.