Changeset ae4ade7 in sasview for sansview/perspectives
- Timestamp:
- Mar 10, 2011 6:10:12 PM (14 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:
- aae7a8d
- Parents:
- 2bdb52b
- Location:
- sansview/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpanel.py
ra5701e6 rae4ade7 249 249 panel.populate_box(dict=self.model_list_box) 250 250 panel.set_manager(self._manager) 251 self.AddPage(panel, panel.window_name, select=True) 251 caption = str(panel.window_name) + " " + str(self._manager.index_model) 252 self.AddPage(panel, caption, select=True) 252 253 self.opened_pages[panel.id] = panel 253 254 return panel … … 276 277 self.SetSelection(pos) 277 278 return page 279 278 280 elif page.get_data().id == data.id: 279 281 msg = "Data already existing in the fitting panel" … … 289 291 self.SetPageText(pos, str(data.name)) 290 292 self.opened_pages[page.id] = page 293 291 294 return page 292 295 -
sansview/perspectives/fitting/fitting.py
rc399004 rae4ade7 93 93 #keep reference of the simultaneous fit page 94 94 self.sim_page = None 95 95 self.index_model = 0 96 96 #Create a reader for fit page's state 97 97 self.state_reader = None … … 637 637 get this page and store it into the page_finder of this plug-in 638 638 """ 639 640 639 page = self.fit_panel.set_data(data) 641 640 page_caption = page.window_name … … 655 654 NewPlotEvent(group_id=group_id, 656 655 action="delete")) 656 self.parent.update_data(prev_data=theory_data, new_data=data) 657 657 else: 658 658 if theory_data is not None: … … 666 666 NewPlotEvent(group_id=group_id, 667 667 action="delete")) 668 669 self.parent.update_data(prev_data=theory_data, new_data=data) 668 self.parent.update_data(prev_data=theory_data, new_data=data) 670 669 self.store_data(id=page.id, data=data, caption=page.window_name) 671 670 if self.sim_page is not None: … … 995 994 qmax = evt.qmax 996 995 smearer = evt.smearer 996 997 997 if model == None: 998 998 return … … 1170 1170 self.parent.append_theory(data_id=data_id, 1171 1171 theory=new_plot, state=state) 1172 1172 current_pg = self.fit_panel.get_page_by_id(id) 1173 title = new_plot.title 1173 1174 wx.PostEvent(self.parent, NewPlotEvent(plot=new_plot, 1174 title= str( new_plot.title)))1175 current_pg = self.fit_panel.get_page_by_id(id)1175 title= str(title))) 1176 1176 1177 wx.PostEvent(current_pg, 1177 1178 Chi2UpdateEvent(output=self._cal_chisqr(data=data, … … 1255 1256 self.parent.append_theory(data_id=data_id, 1256 1257 theory=new_plot, state=state) 1257 ## plot 1258 current_pg = self.fit_panel.get_page_by_id(id) 1259 title = new_plot.title 1258 1260 wx.PostEvent(self.parent, NewPlotEvent(plot=new_plot, 1259 title= new_plot.title))1261 title=title)) 1260 1262 # Chisqr in fitpage 1261 current_pg = self.fit_panel.get_page_by_id(id)1262 1263 wx.PostEvent(current_pg, 1263 1264 Chi2UpdateEvent(output=self._cal_chisqr(data=data, id=id, index=index)))
Note: See TracChangeset
for help on using the changeset viewer.