Changeset 80468f6 in sasview for src/sas/qtgui/Utilities/UnitTesting/GridPanelTest.py
- Timestamp:
- May 7, 2018 6:43:54 AM (7 years ago)
- Branches:
- 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
- Children:
- fca1f50
- Parents:
- b5cc06e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Utilities/UnitTesting/GridPanelTest.py
rd4dac80 r80468f6 16 16 17 17 from sas.sascalc.fit.AbstractFitEngine import FResult 18 from sas.sascalc.fit.AbstractFitEngine import FitData1D 18 19 from sasmodels.sasview_model import load_standard_models 19 20 from sas.qtgui.Plotting.PlotterData import Data1D … … 32 33 # dummy perspective 33 34 class dummy_manager(object): 35 _parent = QtWidgets.QWidget() 34 36 def communicator(self): 35 37 return GuiUtils.Communicate() … … 56 58 self.assertIsNotNone(m) 57 59 data = Data1D(x=[1,2], y=[3,4], dx=[0.1, 0.1], dy=[0.,0.]) 60 fit_data = FitData1D(x=[1,2], y=[3,4], data=data) 58 61 param_list = ['sld_shell', 'sld_solvent'] 59 output = FResult(model=model, data=data, param_list=param_list) 62 output = FResult(model=model, data=fit_data, param_list=param_list) 63 output.sas_data = data 60 64 output.theory = np.array([0.1,0.2]) 61 65 output.pvec = np.array([0.1, 0.02]) … … 63 67 output.fitness = 9000.0 64 68 output.fitter_id = 200 69 output.stderr = [0.001, 0.001] 65 70 output_data = [[output],[output]] 66 71 return output_data
Note: See TracChangeset
for help on using the changeset viewer.