Changeset 26e1001 in sasview


Ignore:
Timestamp:
Dec 8, 2011 5:42:38 PM (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:
78ecdcc
Parents:
3176ea7
Message:

fixed the problem in batch fitting with one param set fittable

File:
1 edited

Legend:

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

    r0438933 r26e1001  
    12841284                            batch_inputs["error on %s" % str(param)].append(ERROR) 
    12851285                else: 
     1286                    # ToDo: Why sometimes res.pvec comes with numpy.float64?  
     1287                    # Need to fix it within ScipyEngine 
     1288                    if res.pvec.__class__== numpy.float64: 
     1289                        res.pvec = [res.pvec] 
     1290                         
    12861291                    cell = BatchCell() 
    12871292                    cell.label = res.fitness 
     
    14651470                    index += 1 
    14661471                    cpage._on_fit_complete() 
    1467         except ValueError: 
    1468                 msg = "Fitting did not converge!!!" 
    1469                 wx.PostEvent(self.parent, StatusEvent(status=msg, info="error", 
    1470                                                       type="stop")) 
    14711472        except: 
    14721473            msg = "Fit completed but Following" 
Note: See TracChangeset for help on using the changeset viewer.