Changeset dabb633 in sasview
- Timestamp:
- Sep 17, 2008 9:08:04 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:
- 671d14e1
- Parents:
- fadea71
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitting.py
r3b19ac9 rdabb633 13 13 import models 14 14 import fitpage 15 import park 15 16 16 17 class PlottableData(Data,Data1D): … … 32 33 class Plugin: 33 34 """ 35 Fitting plugin is used to perform fit 34 36 """ 35 37 def __init__(self): … … 169 171 self.page_finder[page].add_data(datap) 170 172 except: 171 raise172 173 wx.PostEvent(self.parent, StatusEvent(status="Fitting error: \ 173 174 data already Selected ")) … … 194 195 if model.name== modelname: 195 196 value.set_model_param(names,values) 196 197 197 break 198 198 … … 252 252 try: 253 253 for page, value in self.page_finder.iteritems(): 254 print "fitting : simultaneous scheduled ",value.get_scheduled()255 254 if value.get_scheduled()=='True': 256 255 data = value.get_data() … … 306 305 templist=current_pg.get_param_list() 307 306 except: 308 raise309 307 wx.PostEvent(self.parent, StatusEvent(status="Fitting error: %s" % sys.exc_value)) 310 308 return … … 351 349 for page, value in self.page_finder.iteritems(): 352 350 try: 353 print "fitting : simultaneous scheduled ",value.get_scheduled(),value.schedule354 351 if value.get_scheduled()=='True': 355 print "fitting: self.page_finder",value.get_scheduled()356 352 data = value.get_data() 357 #print "fitting: data",data358 353 list = value.get_model() 359 354 model= list[0] … … 376 371 wx.PostEvent(self.parent, StatusEvent(status="Fitting error: %s" % sys.exc_value)) 377 372 return 378 373 #Do the simultaneous fit 379 374 try: 380 375 result=self.fitter.fit() … … 392 387 self._on_change_engine('park') 393 388 wx.PostEvent(self.parent, StatusEvent(status="Engine set to: %s" % self._fit_engine)) 394 395 389 396 390 … … 423 417 self.index_model += 1 424 418 self.page_finder[current_pg].set_theory("Fitness") 425 #print "on model",model.name426 419 self.page_finder[current_pg].set_model(model,M_name) 427 420 self.plot_helper(currpage= current_pg,qmin= None,qmax= None) … … 451 444 if page==currpage : 452 445 break 453 454 446 data=self.page_finder[page].get_data() 455 447 list=self.page_finder[page].get_model() … … 501 493 wx.PostEvent(self.parent, NewPlotEvent(plot=theory, title="Analytical model")) 502 494 except: 503 raise504 495 print "SimView.complete1D: could not import sans.guicomm.events" 505 496
Note: See TracChangeset
for help on using the changeset viewer.