Changeset 53fc5ad9 in sasview for park_integration/src


Ignore:
Timestamp:
Oct 13, 2011 6:00:42 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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:
3576dd0
Parents:
7124300
Message:

fixed simul fit page constraint sizer bug and raise error in park_fit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • park_integration/src/sans/fit/ParkFitting.py

    r5d0a786 r53fc5ad9  
    121121        This procedure maps a local optimizer across a set of initial points. 
    122122        """ 
    123         park.fitmc.fitmc(objective, x0, bounds, self.localfit, 
    124               self.start_points, self.handler) 
    125  
     123        try: 
     124            park.fitmc.fitmc(objective, x0, bounds, self.localfit, 
     125                             self.start_points, self.handler) 
     126        except: 
     127            raise ValueError, "Fit did not converge.\n" 
    126128         
    127129class SansPart(Part): 
Note: See TracChangeset for help on using the changeset viewer.