Changeset 9e27de9 in sasview


Ignore:
Timestamp:
Feb 17, 2009 4:52:29 PM (16 years ago)
Author:
Gervaise Alina <gervyh@…>
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
Message:

fix a small bug in simultaneous fit

Location:
sansview/perspectives/fitting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/fitproblem.py

    r888e62c r9e27de9  
    112112        """ return true or false if a problem as being schedule for fitting""" 
    113113        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  
    255255                list=value.get_model() 
    256256                model=list[0] 
    257                 #print "fitting",model.name,modelname 
     257                print "fitting",model.name,modelname, values 
    258258                if model.name== modelname: 
    259259                    value.set_model_param(names,values) 
     
    491491                            return 
    492492                    # need to check this print "new model " 
    493                     """ 
     493                     
    494494                    new_model=Model(model) 
    495495                    param=value.get_model_param() 
     
    505505                            #new_model.set( exec "%s"%(param_nam) = param_value) 
    506506                            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)  
    509509                    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)  
    511511                    self.fitter.set_data(metadata,self.fit_id,qmin,qmax,ymin,ymax) 
    512512                    print "sim---->value of problem",value.get_scheduled() 
    513513                    self.fitter.select_problem_for_fit(Uid=self.fit_id,value=value.get_scheduled()) 
    514514                    self.fit_id += 1  
     515                    value.clear_model_param() 
    515516                    #self.schedule_for_fit( 0,value)  
    516517            except: 
Note: See TracChangeset for help on using the changeset viewer.