Changeset 2327399 in sasview for src/sas/qtgui/Utilities
- Timestamp:
- Dec 4, 2018 9:22:17 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_sync_sascalc
- Children:
- 3801429
- Parents:
- a8e6394 (diff), 0989bad (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Location:
- src/sas/qtgui/Utilities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Utilities/GridPanel.py
ra8e6394 r2327399 36 36 # Tab numbering 37 37 self.tab_number = 1 38 39 # save state 40 self.data_dict = {} 38 41 39 42 # System dependent menu items … … 176 179 model_name = results[0][0].model.id 177 180 self.tabWidget.setTabToolTip(self.tabWidget.count()-1, model_name) 178 181 self.data_dict[page_name] = results 179 182 180 183 @classmethod -
src/sas/qtgui/Utilities/GuiUtils.py
r133812c7 r99f8760 36 36 from sas.qtgui.Plotting.Plottables import Chisq 37 37 from sas.qtgui.MainWindow.DataState import DataState 38 39 from sas.sascalc.fit.AbstractFitEngine import FResult 40 from sas.sascalc.fit.AbstractFitEngine import FitData1D, FitData2D 41 from sasmodels.sasview_model import SasviewModel 38 42 39 43 from sas.sascalc.dataloader.loader import Loader … … 1175 1179 1176 1180 # "simple" types 1177 if isinstance(o, (Sample, Source, Vector )):1181 if isinstance(o, (Sample, Source, Vector, FResult)): 1178 1182 return add_type(o.__dict__, type(o)) 1179 1183 if isinstance(o, (Plottable, View)): 1180 1184 return add_type(o.__dict__, type(o)) 1181 1185 1186 # SasviewModel - unique 1187 if isinstance(o, SasviewModel): 1188 # don't store parent 1189 content = o.__dict__.copy() 1190 return add_type(content, SasviewModel) 1191 1182 1192 # DataState 1183 if isinstance(o, (Data1D, Data2D )):1193 if isinstance(o, (Data1D, Data2D, FitData1D, FitData2D)): 1184 1194 # don't store parent 1185 1195 content = o.__dict__.copy() … … 1210 1220 Sample, Source, Vector, 1211 1221 Plottable, Data1D, Data2D, PlottableTheory1D, PlottableFit1D, Text, Chisq, View, 1212 DataState, np.ndarray ]1222 DataState, np.ndarray, FResult, FitData1D, FitData2D, SasviewModel] 1213 1223 1214 1224 lookup = dict((cls.__name__, cls) for cls in supported) … … 1242 1252 1243 1253 # "simple" types 1244 if cls in (Sample, Source, Vector ):1254 if cls in (Sample, Source, Vector, FResult, FitData1D, FitData2D, SasviewModel): 1245 1255 return simple_type(cls, data, level) 1246 1256 if issubclass(cls, Plottable) or (cls == View):
Note: See TracChangeset
for help on using the changeset viewer.