Changeset 13da5f5 in sasview for src/sas/sascalc/pr


Ignore:
Timestamp:
Sep 13, 2018 7:20:35 AM (6 years ago)
Author:
wojciech
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
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.