Changeset 784e2fa in sasview
- Timestamp:
- Apr 23, 2010 12:29:25 PM (15 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:
- 0b57a57
- Parents:
- 479eced
- Location:
- sansview/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpanel.py
r286bb6c r784e2fa 186 186 close a fit page when its data is completely remove from the graph 187 187 """ 188 if deleted_data is None: 189 return 188 190 for index in range(self.GetPageCount()): 189 191 selected_page = self.GetPage(index) 190 192 if hasattr(selected_page,"get_data"): 191 193 data = selected_page.get_data() 194 if data is None: 195 #the fitpanel exists and only the initial fit page is open 196 #with no selected data 197 return 192 198 if data.name == deleted_data.name: 193 199 self._close_helper(selected_page) -
sansview/perspectives/fitting/fitting.py
r1350c87 r784e2fa 618 618 """ 619 619 request fitpanel to close a given page when its unique data is removed 620 from the plot 620 from the plot. close fitpage only when the a loaded data is removed 621 621 """ 622 self.fit_panel.close_page_with_data(event.data) 622 if event is None or event.data is None: 623 return 624 625 if hasattr(event.data,"is_data"): 626 if not event.data.is_data or event.data.__class__.__name__=="Data1D": 627 self.fit_panel.close_page_with_data(event.data) 623 628 624 629 def _add_page_onmenu(self, name,fitproblem=None): … … 697 702 self.fitter.set_data(data=metadata,Uid=self.fit_id, 698 703 smearer=smearer,qmin= qmin,qmax=qmax ) 699 #print "self.fitter.set_data"704 700 705 self.fitter.select_problem_for_fit(Uid= self.fit_id, 701 706 value= value.get_scheduled())
Note: See TracChangeset
for help on using the changeset viewer.