Changeset b4d05bd in sasview for src/sas/qtgui/Perspectives/Fitting
- Timestamp:
- Aug 13, 2018 9:48:38 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- e752ab8
- Parents:
- 6b3a231
- Location:
- src/sas/qtgui/Perspectives/Fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingLogic.py
r6b3a231 rb4d05bd 215 215 def new1DProductPlots(self, return_data, tab_id): 216 216 """ 217 If return_data contains separated P(Q) and S(Q) data, create 1D plots for each and return as a tuple.218 Returns (None, None) if this data is unavailable.217 If return_data contains separated P(Q) and/or S(Q) data, create 1D plots for each and return as the tuple 218 (pq_plot, sq_plot). If either are unavailable, the corresponding plot is None. 219 219 """ 220 220 # Unpack return data from Calc1D … … 226 226 pq_values, sq_values = return_data 227 227 228 if pq_values is not None and sq_values is not None: 228 pq_plot = None 229 sq_plot = None 230 231 if pq_values is not None: 229 232 pq_plot = self._create1DPlot(tab_id, x, pq_values, model, data, component="P(Q)") 233 if sq_values is not None: 230 234 sq_plot = self._create1DPlot(tab_id, x, sq_values, model, data, component="S(Q)") 231 return pq_plot, sq_plot 232 else: 233 return None, None 235 236 return pq_plot, sq_plot 234 237 235 238 def computeDataRange(self): -
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
r6b3a231 rb4d05bd 2233 2233 # Create plots for intermediate product data 2234 2234 pq_data, sq_data = self.logic.new1DProductPlots(return_data, self.tab_id) 2235 if pq_data is not None and sq_data is not None:2235 if pq_data is not None: 2236 2236 pq_data.symbol = "Line" 2237 self.createNewIndex(pq_data) 2238 if sq_data is not None: 2237 2239 sq_data.symbol = "Line" 2238 self.createNewIndex(pq_data)2239 2240 self.createNewIndex(sq_data) 2240 2241
Note: See TracChangeset
for help on using the changeset viewer.