Ignore:
Timestamp:
Dec 8, 2011 4:07:55 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:
0b082f3
Parents:
1a191e4
Message:

bug fix: fitting was not working with only one fittable param set

File:
1 edited

Legend:

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

    r5d1c1f4 r0438933  
    14491449                    self._update_fit_button(page_id) 
    14501450                else: 
    1451                      
     1451                    #set the panel when fit result are float not list 
     1452                    if res.pvec.__class__== numpy.float64: 
     1453                        pvec = [res.pvec] 
     1454                    else: 
     1455                        pvec = res.pvec 
     1456                    if res.stderr.__class__== numpy.float64: 
     1457                        stderr = [res.stderr] 
     1458                    else: 
     1459                        stderr = res.stderr 
    14521460                    cpage = self.fit_panel.get_page_by_id(uid) 
    14531461                    # Make sure we got all results  
    14541462                    #(CallAfter is important to MAC) 
    14551463                    wx.CallAfter(cpage.onsetValues, res.fitness, res.param_list,  
    1456                              res.pvec, res.stderr) 
     1464                             pvec, stderr) 
    14571465                    index += 1 
    14581466                    cpage._on_fit_complete() 
Note: See TracChangeset for help on using the changeset viewer.