Changeset d9547e7 in sasview for sansmodels/test
- Timestamp:
- Feb 1, 2012 10:20:23 AM (13 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:
- 9ede123
- Parents:
- 1ba8201d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/test/utest_model_pearlnecklace.py
r18e250c rd9547e7 11 11 from sans.models.PearlNecklaceModel import PearlNecklaceModel 12 12 self.pnl = PearlNecklaceModel() 13 from sans.models.LinearPearlsModel import LinearPearlsModel 14 self.lpm = LinearPearlsModel() 13 15 from sans.models.SphereModel import SphereModel 14 16 self.sphere = SphereModel() … … 44 46 self.bar.setParam("rad_bar", 0.1) 45 47 self.bar.setParam("rad_bell", 20) 46 48 self.lpm.setParam("radius", 20) 49 self.lpm.setParam("num_pearls", 2) 50 self.lpm.setParam("sld_pearl", 1e-06) 51 self.lpm.setParam("sld_solv", 6.3e-06) 52 self.lpm.setParam("edge_separation", 400) 53 47 54 self.assertAlmostEqual(self.pnl.run(0.001), self.bar.run(0.001), 1) 48 55 self.assertAlmostEqual(self.pnl.run(0.005), self.bar.run(0.005), 1) … … 52 59 self.assertAlmostEqual(self.pnl.run(0.5), self.bar.run(0.5), 1) 53 60 61 self.assertAlmostEqual(self.pnl.run(0.001), self.lpm.run(0.001), 1) 62 self.assertAlmostEqual(self.pnl.run(0.005), self.lpm.run(0.005), 1) 63 self.assertAlmostEqual(self.pnl.run(0.01), self.lpm.run(0.01), 1) 64 self.assertAlmostEqual(self.pnl.run(0.05), self.lpm.run(0.05), 1) 65 self.assertAlmostEqual(self.pnl.run(0.1), self.lpm.run(0.1), 1) 66 self.assertAlmostEqual(self.pnl.run(0.5), self.lpm.run(0.5), 1) 54 67 55 68
Note: See TracChangeset
for help on using the changeset viewer.