Changeset 162c778 in sasview


Ignore:
Timestamp:
Sep 11, 2012 10:34:41 AM (12 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:
db298c0
Parents:
50ccf77
Message:

print unmatched data len on the res cal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/fitting.py

    r6057915 r162c778  
    20562056            gn = theory_data.y 
    20572057            en = dy[index] 
    2058              
     2058         
    20592059        # residual 
    2060         res = (fn - gn) / en 
     2060        try: 
     2061            res = (fn - gn) / en 
     2062        except ValueError: 
     2063            print "Unmatch lengths %s, %s, %s"% (len(fn), len(gn), len(en)) 
     2064            return 
     2065         
    20612066        residuals = res[numpy.isfinite(res)] 
    20622067        # get chisqr only w/finite 
Note: See TracChangeset for help on using the changeset viewer.