Changeset 0957dbdb in sasview for Invariant/test
- Timestamp:
- Dec 17, 2009 5:44:22 PM (15 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:
- a208464
- Parents:
- 68a2c31
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Invariant/test/utest_use_cases.py
r68a2c31 r0957dbdb 342 342 # Get the volume fraction and surface 343 343 v, dv = inv.get_volume_fraction_with_error(contrast=2.6e-6) 344 s, ds = inv.get_surface_with_error(contrast= 1.0, porod_const=0.08)344 s, ds = inv.get_surface_with_error(contrast=2.6e-6, porod_const=2) 345 345 346 346 # Test results 347 347 self.assertAlmostEquals(qstar, 0.00138756,2) 348 self.assertAlmostEquals(v, 0.11 5352622)349 self.assertAlmostEquals(s + _ERR_SURFACE, 9.42 e+2, 1)348 self.assertAlmostEquals(v, 0.117226896,2) 349 self.assertAlmostEquals(s + _ERR_SURFACE, 9.42E+02, 1) 350 350 351 351 def test_use_case_4(self):
Note: See TracChangeset
for help on using the changeset viewer.