Changeset 4de1fed in sasview for test


Ignore:
Timestamp:
May 8, 2014 10:08:28 AM (6 years ago)
Author:
pkienzle
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:
8d074d9
Parents:
e544c84
Message:

enable small test unit test

Location:
test/park_integration/test
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • test/park_integration/test/batch_fit.py

    r5777106 r4de1fed  
    11 
    22 
    3 import math 
    4 import numpy 
    53import copy 
    64import time 
  • test/park_integration/test/utest_small_test.py

    r5777106 r4de1fed  
    55import math 
    66from sans.fit.Fitting import Fit 
    7 from DataLoader.loader import Loader 
     7from sans.dataloader.loader import Loader 
    88 
    99class testFitModule(unittest.TestCase): 
     
    1818        from sans.models.CylinderModel import CylinderModel 
    1919        model  = CylinderModel() 
    20         model.setParam('contrast', 1) 
    21         
     20        model.setParam('sldCyl', 1) 
     21        model.setParam('sldSolv', 0) 
     22 
    2223        pars1 =['length','radius','scale'] 
    2324        fitter.set_data(out,1) 
    2425        model.setParam('scale', 1e-10) 
    2526        fitter.set_model(model,1,pars1, constraints=()) 
    26         fitter.select_problem_for_fit(Uid=1,value=1) 
    27         result1 = fitter.fit() 
     27        fitter.select_problem_for_fit(id=1,value=1) 
     28        result1, = fitter.fit() 
    2829         
    2930        self.assert_(result1) 
Note: See TracChangeset for help on using the changeset viewer.