Changeset e9e914f in sasview for sansview/perspectives/fitting/fitting.py
- Timestamp:
- Feb 27, 2009 11:18:12 AM (16 years ago)
- 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:
- 7d680c7
- Parents:
- f3113c9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitting.py
rf3113c9 re9e914f 47 47 self.standalone=True 48 48 ## Fit engine 49 self._fit_engine = ' park'49 self._fit_engine = 'scipy' 50 50 self.enable_model2D=False 51 51 # list of selcted data … … 76 76 #Set park engine 77 77 id3 = wx.NewId() 78 self.menu1.AppendCheckItem(id3, " scipy")78 self.menu1.AppendCheckItem(id3, "park") 79 79 wx.EVT_MENU(owner, id3, self._onset_engine) 80 80 … … 360 360 model.setParam(name,result.pvec) 361 361 else: 362 model.setParam(name,result.pvec[i]) 363 # print "fitting: single fit", name, result.pvec[i] 362 print "fitting result : chisqr",result.fitness 363 print "fitting result : pvec",result.pvec 364 print "fitting result : stderr",result.stderr 365 #model.setParam(name,result.pvec[i]) 366 # print "fitting: single fit", name, result.pvec[i] 364 367 i += 1 365 print "fitting result : chisqr",result.fitness 366 print "fitting result : pvec",result.pvec 367 print "fitting result : stderr",result.stderr 368 368 369 369 370 cpage.onsetValues(result.fitness, result.pvec,result.stderr) … … 373 374 xmin=xmin, xmax=xmax,title=None) 374 375 except: 375 #raise376 wx.PostEvent(self.parent, StatusEvent(status="Fitting error: %s" % sys.exc_value))377 return376 raise 377 #wx.PostEvent(self.parent, StatusEvent(status="Fitting error: %s" % sys.exc_value)) 378 #return 378 379 379 380 def _simul_fit_completed(self,result,qmin,qmax, elapsed,pars=None,cpage=None,
Note: See TracChangeset
for help on using the changeset viewer.