Changeset 05971e1 in sasview for sansview/perspectives
- Timestamp:
- May 15, 2009 11:45:11 AM (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:
- 8554ede
- Parents:
- b8d7491
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitting.py
rdad49a0 r05971e1 140 140 Create a page to access simultaneous fit option 141 141 """ 142 Plugin.on_perspective(self,event=event) 142 143 if self.sim_page !=None: 143 144 msg= "Simultaneous Fit page already opened" … … 180 181 else: 181 182 if item.name==graph.selected_plottable : 182 if hasattr(item, "group_id"): 183 if hasattr(item,"is_data"): 184 if item.is_data: 183 if item.name !="$I_{obs}(q)$" and item.name !="$P_{fit}(r)$": 184 if hasattr(item, "group_id"): 185 if hasattr(item,"is_data"): 186 if item.is_data: 187 return [["Select data for fitting", \ 188 "Dialog with fitting parameters ", self._onSelect]] 189 else: 190 return [] 191 else: 185 192 return [["Select data for fitting", \ 186 "Dialog with fitting parameters ", self._onSelect]] 187 else: 188 return [] 189 else: 190 return [["Select data for fitting", \ 191 "Dialog with fitting parameters ", self._onSelect]] 193 "Dialog with fitting parameters ", self._onSelect]] 192 194 return [] 193 195 … … 613 615 """ 614 616 self.panel = event.GetEventObject() 617 Plugin.on_perspective(self,event=event) 615 618 for plottable in self.panel.graph.plottables: 616 619 if plottable.name == self.panel.graph.selected_plottable: … … 946 949 """ 947 950 model = evt.model 948 951 Plugin.on_perspective(self,event=evt) 949 952 # Create a model page. If a new page is created, the model 950 953 # will be plotted automatically. If a page already exists,
Note: See TracChangeset
for help on using the changeset viewer.