Changeset 1868cf3 in sasview for sansview/perspectives/fitting


Ignore:
Timestamp:
Apr 22, 2011 1:14:05 PM (14 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:
6ce7201
Parents:
270e240
Message:

Fixed the compute problem after loading a 1d status file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/fitting.py

    rf7e9af2 r1868cf3  
    12631263            wx.PostEvent(self.parent, NewPlotEvent(plot=new_plot, 
    12641264                                            title= str(title))) 
     1265             
     1266            self.page_finder[page_id].set_theory_data(new_plot) 
     1267             
    12651268            if update_chisqr: 
    12661269                wx.PostEvent(current_pg, 
     
    13531356        wx.PostEvent(self.parent, NewPlotEvent(plot=new_plot, 
    13541357                                               title=title)) 
     1358        self.page_finder[page_id].set_theory_data(new_plot) 
    13551359        # Chisqr in fitpage 
    13561360        if update_chisqr: 
     
    14941498        # default chisqr 
    14951499        chisqr = None 
    1496          
     1500 
    14971501        # return None if data == None 
    14981502        if data == None: return chisqr 
     
    15241528            gn = theory_data.y 
    15251529            en = dy[index] 
     1530        print "n",len(fn) 
     1531        print "n",len(gn) 
     1532        print "n",len(en) 
     1533        print "-",len((fn - gn)) 
     1534        print len((fn - gn) / en) 
    15261535        # residual 
    15271536        res = (fn - gn) / en 
Note: See TracChangeset for help on using the changeset viewer.