Changeset 0eb801a in sasview for park_integration


Ignore:
Timestamp:
Aug 8, 2008 1:04:05 PM (16 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:
ee5b04c
Parents:
f1181977
Message:

protect scipy against simultaneous fitting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • park_integration/ScipyFitting.py

    rd4b0687 r0eb801a  
    5555            @return cov: Covariance matrix 
    5656        """ 
     57        # Protect against simultanous fitting attempts 
     58        if len(self.fitArrangeList)>1:  
     59            raise RuntimeError, "Scipy can't fit more than a single fit problem at a time." 
     60         
    5761        # fitproblem contains first fitArrange object(one model and a list of data) 
    5862        fitproblem=self.fitArrangeList.values()[0] 
     
    123127    p = [param() for param in pars] 
    124128    out, cov_x, info, mesg, success = optimize.leastsq(f, p, full_output=1, warning=True) 
    125     print info, mesg, success 
     129    #print info, mesg, success 
    126130    # Calculate chi squared 
    127131    if len(pars)>1: 
Note: See TracChangeset for help on using the changeset viewer.