Changeset 7f81665 in sasview


Ignore:
Timestamp:
Aug 8, 2009 9:01:22 AM (15 years ago)
Author:
Mathieu Doucet <doucetm@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
b293683
Parents:
d9dc518
Message:

park_integration: remove try-except block that lets evalDistribution silently fail.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • park_integration/AbstractFitEngine.py

    rd8a2e31 r7f81665  
    115115            return self.model.evalDistribution(x) 
    116116        except: 
    117             return self.model.runXY(x) 
    118     
    119     
    120  
     117            print "AbstractFitEngine.Model.eval [FIXME]:", sys.exc_value 
     118            raise 
    121119 
    122120class Data(object): 
     
    386384      
    387385    def residuals(self, fn):  
    388         try: 
    389             res=self.index_model*(self.image - fn([self.y_bins_array, 
    390                              self.x_bins_array]))/self.res_err_image 
    391             return res.ravel()  
    392         except: 
    393             print "Using old residual method" 
    394             return self.old_residuals( fn) 
     386        res=self.index_model*(self.image - fn([self.y_bins_array, 
     387                         self.x_bins_array]))/self.res_err_image 
     388        return res.ravel()  
    395389     
    396390     
Note: See TracChangeset for help on using the changeset viewer.