Changeset 888e62c in sasview
- Timestamp:
- Feb 5, 2009 2:02:45 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:
- 8d93ec4
- Parents:
- d468daa
- Location:
- sansview/perspectives/fitting
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpage1D.py
r3e8e627 r888e62c 195 195 self.qmin_x= self.data.xmin 196 196 self.qmax_x= self.data.xmax 197 #print "data2D range",self.qmax_x198 199 197 print "data2D range",self.qmax_x 198 199 self.num_points= 100 200 200 201 201 … … 306 306 if self.data.y_bins[j]>= self.qmin_x and self.data.y_bins[j]<= self.qmax_x: 307 307 res.append( (self.data.data[j][i]- self.model.runXY(\ 308 [self.data. y_bins[j],self.data.x_bins[i]]))\308 [self.data.x_bins[i],self.data.y_bins[j]]))\ 309 309 /self.data.err_data[j][i] ) 310 310 sum=0 -
sansview/perspectives/fitting/fitpanel.py
r94999eb r888e62c 62 62 def onClosePage(self, event): 63 63 self.ToggleWindowStyle(wx.aui.AUI_NB_CLOSE_ON_ACTIVE_TAB) 64 print "went here",self.get_current_page(), self.GetPage(0)64 #print "went here",self.get_current_page(), self.GetPage(0) 65 65 #event.Skip() 66 66 if self.GetPageCount() <= 2: 67 print "wente here"67 #print "wente here" 68 68 69 69 # Prevent last tab from being closed … … 133 133 """ 134 134 from modelpage import ModelPage 135 print "fitpanel model", model135 #print "fitpanel model", model 136 136 panel = ModelPage(self,model,page_title, -1) 137 137 panel.set_manager(self.manager) … … 184 184 selected on that page. remove its reference into page_finder (fitting module) 185 185 """ 186 print "model page", page_number, page186 #print "model page", page_number, page 187 187 if page!=None and page_number!=None: 188 188 -
sansview/perspectives/fitting/fitproblem.py
r08b9c6c8 r888e62c 26 26 def set_smearer(self, smearer): 27 27 self.smearer= smearer 28 print "smeaerer in fitproblem",self.smearer28 #print "smeaerer in fitproblem",self.smearer 29 29 def get_smearer(self): 30 30 return self.smearer -
sansview/perspectives/fitting/fitting.py
r17fc6f8 r888e62c 135 135 self.index_model = 0 136 136 self.parent.Bind(EVT_SLICER_PANEL, self._on_slicer_event) 137 137 138 138 139 #create the fitting panel … … 141 142 self.mypanels.append(self.fit_panel) 142 143 return self.mypanels 144 145 143 146 def _on_model2D_show(self, event ): 144 147 print "model2D get the id ", event.id 148 149 145 150 def _on_slicer_event(self, event): 146 151 print "fitting:slicer event ", event.panel 147 new_panel = event.panel 148 # Set group ID if available 149 event_id = self.parent.popup_panel(new_panel) 150 self.menu1.Append(event_id, new_panel.window_caption, 151 "Show %s plot panel" % new_panel.window_caption) 152 # Set UID to allow us to reference the panel later 153 new_panel.uid = event_id 154 new_panel 155 self.mypanels.append(new_panel) 152 if event.panel!=None: 153 new_panel = event.panel 154 # Set group ID if available 155 event_id = self.parent.popup_panel(new_panel) 156 self.menu1.Append(event_id, new_panel.window_caption, 157 "Show %s plot panel" % new_panel.window_caption) 158 # Set UID to allow us to reference the panel later 159 new_panel.uid = event_id 160 new_panel 161 self.mypanels.append(new_panel) 156 162 return 157 163 def _on_show_panel(self, event): … … 375 381 #Do the single fit 376 382 self.fitter.set_model(Model(model), self.id, pars) 377 print "args...:",metadata,self.id,smearer,qmin,qmax,ymin,ymax383 #print "args...:",metadata,self.id,smearer,qmin,qmax,ymin,ymax 378 384 379 385 self.fitter.set_data(data=metadata,Uid=self.id, … … 468 474 469 475 self.fitter.set_model(new_model, self.id, pars) 470 471 476 self.fitter.set_data(metadata,self.id,qmin,qmax,ymin,ymax) 472 477 self.fitter.select_problem_for_fit(Uid=self.id,value=value.get_scheduled()) … … 642 647 xmin=data.xmin 643 648 xmax=data.xmax 644 print " q range =",649 #print " q range =", 645 650 theory.data = numpy.zeros((len(data.y_bins),len(data.x_bins))) 646 for jin range(len(data.y_bins)):647 if data.y_bins[ j]>= ymin and data.y_bins[j]<= ymax:648 for iin range(len(data.x_bins)):651 for i in range(len(data.y_bins)): 652 if data.y_bins[i]>= ymin and data.y_bins[i]<= ymax: 653 for j in range(len(data.x_bins)): 649 654 if data.x_bins[i]>= qmin and data.x_bins[i]<= qmax: 650 655 theory.data[j][i]=model.runXY([data.y_bins[j],data.x_bins[i]]) -
sansview/perspectives/fitting/modelpage.py
rbb1e07a r888e62c 269 269 else: 270 270 if self.data !=None and self.model !=None: # allow to recognize data panel from model panel 271 #if self.data !=None and self.model !=None: 271 272 self.cb1.SetValue(False) 272 273 self.select_all_param_helper() 273 274 274 275 275 self.populate_disp_box() 276 self.set_panel_dispers(self.disp_list) 276 277 277 278 else: -
sansview/perspectives/fitting/simfitpage.py
r6bcdad1 r888e62c 146 146 @param delpage: the page removed 147 147 """ 148 print "self.model_list",self.model_list148 #print "self.model_list",self.model_list 149 149 150 150 self.model_list=[] … … 214 214 model=list[0] 215 215 param_list=model.getParamList() 216 print "simfitpage: on set_model self.params ",self.params216 #print "simfitpage: on set_model self.params ",self.params 217 217 if self.params !=[]: 218 218 for element in self.params: … … 220 220 for item in param_list: 221 221 if item==str(element[1]): 222 print "simfitpage: on set_model page 1",param_list223 print "simfitpage: model name",element[0], model.name224 print "simfitpage: param name ,param value",element[1],element[2]222 #print "simfitpage: on set_model page 1",param_list 223 #print "simfitpage: model name",element[0], model.name 224 #print "simfitpage: param name ,param value",element[1],element[2] 225 225 self.manager.set_page_finder(model.name,element[1],\ 226 226 str(element[2])) … … 271 271 param_name=param_names[1] 272 272 ##### just added 273 print "simfitpage: param name",model_name,param_name273 #print "simfitpage: param name",model_name,param_name 274 274 275 275 param=[str(model_name),param_name,str(param_value)]
Note: See TracChangeset
for help on using the changeset viewer.