Changeset 168052c in sasmodels for sasmodels/models/mass_surface_fractal.py
- Timestamp:
- Jan 29, 2016 4:02:35 AM (8 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- ed82794
- Parents:
- bf6631a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/mass_surface_fractal.py
r07a6700 r168052c 54 54 P Schmidt, *J Appl. Cryst.*, 24 (1991) 414-435 Equation(19) 55 55 56 A J Hurd, D W Schaefer, J E Martin, *Phys. Rev. A*, 35 (1987) 2361-2364 Equation(2) 56 A J Hurd, D W Schaefer, J E Martin, *Phys. Rev. A*, 57 35 (1987) 2361-2364 Equation(2) 57 58 58 59 """ … … 79 80 category = "shape-independent" 80 81 82 # pylint: disable=bad-whitespace, line-too-long 81 83 # ["name", "units", default, [lower, upper], "type","description"], 82 84 parameters = [["mass_dim", "", 1.8, [1e-16, 6.0], "", … … 88 90 ["primary_rg", "Ang", 4000., [0.0, inf], "", 89 91 "Primary particle radius of gyration"], 90 91 92 ] 93 # pylint: enable=bad-whitespace, line-too-long 92 94 93 95 source = ["mass_surface_fractal.c"] … … 107 109 108 110 tests = [ 109 # Accuracy tests based on content in test/utest_other_models.py110 [{'mass_dim': 1.8,111 'surface_dim': 2.3,112 'cluster_rg': 86.7,113 'primary_rg': 4000.0,114 }, 0.05, 1.77537e-05],115 111 116 # Additional tests with larger range of parameters117 [{'mass_dim': 3.3,118 'surface_dim': 1.0,119 'cluster_rg': 90.0,120 121 }, 0.001, 0.18462699016],112 # Accuracy tests based on content in test/utest_other_models.py 113 [{'mass_dim': 1.8, 114 'surface_dim': 2.3, 115 'cluster_rg': 86.7, 116 'primary_rg': 4000.0, 117 }, 0.05, 1.77537e-05], 122 118 123 [{'mass_dim': 1.3,124 'surface_dim': 1.0,125 'cluster_rg': 90.0,126 'primary_rg': 2000.0,127 'background': 0.8,128 }, 0.001, 1.16539753641],119 # Additional tests with larger range of parameters 120 [{'mass_dim': 3.3, 121 'surface_dim': 1.0, 122 'cluster_rg': 90.0, 123 'primary_rg': 4000.0, 124 }, 0.001, 0.18462699016], 129 125 130 [{'mass_dim': 2.3, 131 'surface_dim': 1.0, 132 'cluster_rg': 90.0, 133 'primary_rg': 1000.0, 134 'scale': 10.0, 135 }, 0.051, 0.000169548800377], 136 ] 126 [{'mass_dim': 1.3, 127 'surface_dim': 1.0, 128 'cluster_rg': 90.0, 129 'primary_rg': 2000.0, 130 'background': 0.8, 131 }, 0.001, 1.16539753641], 132 133 [{'mass_dim': 2.3, 134 'surface_dim': 1.0, 135 'cluster_rg': 90.0, 136 'primary_rg': 1000.0, 137 'scale': 10.0, 138 }, 0.051, 0.000169548800377], 139 ]
Note: See TracChangeset
for help on using the changeset viewer.