Changeset 9e27de9 in sasview
- Timestamp:
- Feb 17, 2009 4:52:29 PM (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:
- d63ef2f
- Parents:
- 3215d32
- Location:
- sansview/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitproblem.py
r888e62c r9e27de9 112 112 """ return true or false if a problem as being schedule for fitting""" 113 113 return self.schedule 114 115 114 def clear_model_param(self): 115 """ 116 clear constraint info 117 """ 118 self.list_param=[] -
sansview/perspectives/fitting/fitting.py
r3215d32 r9e27de9 255 255 list=value.get_model() 256 256 model=list[0] 257 #print "fitting",model.name,modelname257 print "fitting",model.name,modelname, values 258 258 if model.name== modelname: 259 259 value.set_model_param(names,values) … … 491 491 return 492 492 # need to check this print "new model " 493 """493 494 494 new_model=Model(model) 495 495 param=value.get_model_param() … … 505 505 #new_model.set( exec "%s"%(param_nam) = param_value) 506 506 new_model.parameterset[ param_name].set( param_value ) 507 """508 #self.fitter.set_model(new_model, self.fit_id, pars)507 508 self.fitter.set_model(new_model, self.fit_id, pars) 509 509 print "sim-->model",metadata,model,self.fit_id, pars 510 self.fitter.set_model(Model(model), self.fit_id, pars)510 #self.fitter.set_model(Model(model), self.fit_id, pars) 511 511 self.fitter.set_data(metadata,self.fit_id,qmin,qmax,ymin,ymax) 512 512 print "sim---->value of problem",value.get_scheduled() 513 513 self.fitter.select_problem_for_fit(Uid=self.fit_id,value=value.get_scheduled()) 514 514 self.fit_id += 1 515 value.clear_model_param() 515 516 #self.schedule_for_fit( 0,value) 516 517 except:
Note: See TracChangeset
for help on using the changeset viewer.