Changeset eeea6a3 in sasview for src/sas/sascalc


Ignore:
Timestamp:
Sep 13, 2018 7:34:05 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:
4b7d322
Parents:
2385397
Message:

Simulated error handling added to more logical place

File:
1 edited

Legend:

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

    r13da5f5 reeea6a3  
    258258        invertor.x = self.x 
    259259        invertor.y = self.y 
    260         if np.size(self.err) == 0 or np.all(self.err) == 0: 
    261             invertor.err = self.add_errors(self.y) 
    262         else: 
    263             invertor.err = self.err 
     260        invertor.err = self.err 
    264261        invertor.est_bck = self.est_bck 
    265262        invertor.background = self.background 
     
    306303        # Reset the background value before proceeding 
    307304        # 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) 
    310305        if not self.est_bck: 
    311306            self.y -= self.background 
Note: See TracChangeset for help on using the changeset viewer.