Changeset f1abc57 in sasview for sansmodels/src/sans/models


Ignore:
Timestamp:
Jan 18, 2011 4:31:02 PM (14 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:
ca4c150
Parents:
18b89c4
Message:

updated angle value due to the change of unit to degree from rad

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/src/sans/models/test/utest_models.py

    ra1b2471 rf1abc57  
    6060    def test2D(self): 
    6161        """ Test 2D model of a cylinder """  
    62         self.comp.setParam('cyl_theta', 1.0) 
    63         self.comp.setParam('cyl_phi', 1.0) 
     62        self.comp.setParam('cyl_theta', 1*180/math.pi) 
     63        self.comp.setParam('cyl_phi', 1*180/math.pi) 
    6464        self.assertAlmostEqual(self.comp.run([0.2, 2.5]),  
    6565                               0.038176446608393366, 4) 
Note: See TracChangeset for help on using the changeset viewer.