Changeset ca4c150 in sasview
- Timestamp:
- Jan 18, 2011 4:43:28 PM (14 years ago)
- 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:
- f1e06a8e
- Parents:
- f1abc57
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/test/utest_other_dispersity.py
rdfa8832 rca4c150 17 17 self.model.setParam('radius', 20.0) 18 18 self.model.setParam('length', 400.0) 19 self.model.setParam('contrast', 3.e-6) 19 self.model.setParam('sldCyl', 4.e-6) 20 self.model.setParam('sldSolv', 1.e-6) 20 21 self.model.setParam('background', 0.0) 21 22 self.model.setParam('cyl_theta', 0.0) … … 33 34 self.model.dispersion['radius']['width'] = 5.0 34 35 self.model.dispersion['radius']['npts'] = 100 36 self.model.dispersion['radius']['nsigmas'] = 2.5 35 37 print "constant",self.model.run(0.001), self.model.dispersion 36 38 self.assertAlmostEqual(self.model.run(0.001), 1.021051*4527.47250339, 3) … … 43 45 self.model.dispersion['radius']['width'] = 5.0 44 46 self.model.dispersion['radius']['npts'] = 100 47 self.model.dispersion['radius']['nsigmas'] = 2.5 45 48 self.model.setParam('scale', 10.0) 46 49 … … 54 57 self.model.dispersion['radius']['width'] = 5.0 55 58 self.model.dispersion['radius']['npts'] = 100 59 self.model.dispersion['radius']['nsigmas'] = 2.5 56 60 self.model.setParam('scale', 10.0) 57 61 … … 68 72 #self.model.dispersion['radius']['width'] = 0.0 69 73 self.model.dispersion['radius']['npts'] = 100 74 self.model.dispersion['radius']['nsigmas'] = 2.5 70 75 #self.model.setParam('scale', 1.0) 71 76 self.model.setParam('scale', 10.0) … … 81 86 #self.model.dispersion['radius']['width'] = 0.0 82 87 self.model.dispersion['radius']['npts'] = 100 88 self.model.dispersion['radius']['nsigmas'] = 2.5 83 89 #self.model.setParam('scale', 1.0) 84 90 self.model.setParam('scale', 10.0) … … 94 100 self.model.dispersion['radius']['width'] = 0.0 95 101 self.model.dispersion['radius']['npts'] = 100 102 self.model.dispersion['radius']['nsigmas'] = 2.5 96 103 self.model.setParam('scale', 1.0) 97 104 … … 112 119 weights = numpy.zeros(100) 113 120 for i in range(100): 114 values_ph[i]=( 2.0*math.pi/99.0*i)115 values_th[i]=( math.pi/99.0*i)121 values_ph[i]=(360/99.0*i) 122 values_th[i]=(180/99.0*i) 116 123 weights[i]=(1.0) 117 124
Note: See TracChangeset
for help on using the changeset viewer.