Ignore:
Timestamp:
May 7, 2018 6:47:21 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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:
42787fb
Parents:
b0ba43e (diff), 80468f6 (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.
Message:

Merge branch 'ESS_GUI' into ESS_GUI_Pr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Utilities/UnitTesting/GridPanelTest.py

    r3b3b40b r80468f6  
    1616 
    1717from sas.sascalc.fit.AbstractFitEngine import FResult 
     18from sas.sascalc.fit.AbstractFitEngine import FitData1D 
    1819from sasmodels.sasview_model import load_standard_models 
    1920from sas.qtgui.Plotting.PlotterData import Data1D 
     
    3233        # dummy perspective 
    3334        class dummy_manager(object): 
     35            _parent = QtWidgets.QWidget() 
    3436            def communicator(self): 
    3537                return GuiUtils.Communicate() 
     
    5658        self.assertIsNotNone(m) 
    5759        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) 
    5861        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 
    6064        output.theory = np.array([0.1,0.2]) 
    6165        output.pvec = np.array([0.1, 0.02]) 
     
    6367        output.fitness = 9000.0 
    6468        output.fitter_id = 200 
     69        output.stderr = [0.001, 0.001] 
    6570        output_data = [[output],[output]] 
    6671        return output_data 
     
    7075        self.assertIsInstance(self.widget, QtWidgets.QMainWindow) 
    7176        # Default title 
    72         self.assertEqual(self.widget.windowTitle(), "Grid Panel") 
     77        self.assertEqual(self.widget.windowTitle(), "Batch Fitting Results") 
    7378 
    7479        # non-modal window 
Note: See TracChangeset for help on using the changeset viewer.