Changeset acefa2b in sasview


Ignore:
Timestamp:
Aug 23, 2016 2:40:04 AM (8 years ago)
Author:
lewis
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, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
5a525e1
Parents:
839e5e3
Message:

Check extrapolation params in unit tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/corfunc/test/utest_corfunc.py

    r839e5e3 racefa2b  
    1919 
    2020    def extrapolate(self): 
    21         _, extrapolation = self.calculator.compute_extrapolation() 
     21        params, extrapolation = self.calculator.compute_extrapolation() 
     22 
     23        # Check the extrapolation parameters 
     24        self.assertAlmostEqual(params['A'], 4.19, places=2) 
     25        self.assertAlmostEqual(params['B'], -25470, places=0) 
     26        self.assertAlmostEqual(params['K'], 4.5e-5, places=2) 
     27        self.assertAlmostEqual(params['sigma'], 2.2e-10, places=2) 
    2228 
    2329        # Ensure the extraplation tends to the background value 
Note: See TracChangeset for help on using the changeset viewer.