Changeset 2d7a633 in sasview


Ignore:
Timestamp:
Dec 12, 2011 5:59:22 PM (12 years ago)
Author:
Jae Cho <jhjcho@…>
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:
55b045a
Parents:
67ac282
Message:

changed to almostequal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/test/utest_other_models.py

    r18e250c r2d7a633  
    11091109    def testEval_1D(self): 
    11101110        """ Test 1D model for a HayterMSAStructure with evalDistribution""" 
    1111         self.assertEquals(self.comp.run(0.4),self.x_array[0]) 
    1112         self.assertEquals(self.comp.run(1.3),self.x_array[1]) 
     1111        self.assertAlmostEquals(self.comp.run(0.4),self.x_array[0]) 
     1112        self.assertAlmostEquals(self.comp.run(1.3),self.x_array[1]) 
    11131113         
    11141114    def testEval_2D(self): 
    11151115        """ Test 2D model for a HayterMSAStructure with evalDistribution""" 
    1116         self.assertAlmostEquals(self.comp.runXY([0.4, 0.5]),self.xy_matrix[0],8) 
    1117         self.assertAlmostEquals(self.comp.runXY([1.3,1.57]),self.xy_matrix[1], 8) 
     1116        self.assertAlmostEquals(self.comp.runXY([0.4, 0.5]),self.xy_matrix[0]) 
     1117        self.assertAlmostEquals(self.comp.runXY([1.3,1.57]),self.xy_matrix[1]) 
    11181118 
    11191119     
Note: See TracChangeset for help on using the changeset viewer.