Changeset ffdfd23 in sasview for fittingview


Ignore:
Timestamp:
Jun 21, 2012 3:56:56 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:
9e00363
Parents:
9bab141
Message:

added +- in fitdialog

File:
1 edited

Legend:

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

    rfdef956 rffdfd23  
    21152115            # build residuals 
    21162116            residuals = Data1D() 
    2117             residuals.y = (fn - gn) / en 
     2117            try: 
     2118                residuals.y = (fn - gn) / en 
     2119            except: 
     2120                msg = "ResidualPlot Error: different # of data points in theory" 
     2121                wx.PostEvent(self.parent, StatusEvent(status=msg, info="error")) 
     2122                residuals.y = (fn - gn[index]) / en 
    21182123            residuals.x = data_copy.x[index] 
    21192124            residuals.dy = numpy.ones(len(residuals.y)) 
Note: See TracChangeset for help on using the changeset viewer.