Changeset 168052c in sasmodels for sasmodels/models/mass_fractal.py
- Timestamp:
- Jan 29, 2016 6: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_fractal.py
r87edabf r168052c 52 52 --------- 53 53 54 D Mildner and P Hall, *J. Phys. D: Appl. Phys.*, 19 (1986) 1535-1545 Equation(9) 54 D Mildner and P Hall, *J. Phys. D: Appl. Phys.*, 55 19 (1986) 1535-1545 Equation(9) 55 56 56 57 … … 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 = [["radius", "Ang", 10.0, [0.0, inf], "", "Particle radius"], 83 85 ["mass_dim", "", 1.9, [1.0, 6.0], "", "Mass fractal dimension"], 84 86 ["cutoff_length", "Ang", 100.0, [0.0, inf], "", "Cut-off length"], 85 86 87 ] 88 # pylint: enable=bad-whitespace, line-too-long 87 89 88 90 source = ["lib/sph_j1c.c", "lib/lanczos_gamma.c", "mass_fractal.c"] … … 99 101 100 102 tests = [ 101 # Accuracy tests based on content in test/utest_other_models.py102 [{'radius': 10.0,103 'mass_dim': 1.9,104 'cutoff_length': 100.0,105 }, 0.05, 279.59322],106 103 107 # Additional tests with larger range of parameters108 [{'radius': 2.0,109 'mass_dim': 3.3,110 'cutoff_length': 1.0,111 }, 0.5, 1.29016774904],104 # Accuracy tests based on content in test/utest_other_models.py 105 [{'radius': 10.0, 106 'mass_dim': 1.9, 107 'cutoff_length': 100.0, 108 }, 0.05, 279.59322], 112 109 113 [{'radius': 1.0,114 'mass_dim': 1.3,115 'cutoff_length': 1.0,116 'background': 0.8,117 }, 0.001, 1.69747015932],110 # Additional tests with larger range of parameters 111 [{'radius': 2.0, 112 'mass_dim': 3.3, 113 'cutoff_length': 1.0, 114 }, 0.5, 1.29016774904], 118 115 119 [{'radius': 1.0, 120 'mass_dim': 2.3, 121 'cutoff_length': 1.0, 122 'scale': 10.0, 123 }, 0.051, 11.6227966145], 124 ] 116 [{'radius': 1.0, 117 'mass_dim': 1.3, 118 'cutoff_length': 1.0, 119 'background': 0.8, 120 }, 0.001, 1.69747015932], 121 122 [{'radius': 1.0, 123 'mass_dim': 2.3, 124 'cutoff_length': 1.0, 125 'scale': 10.0, 126 }, 0.051, 11.6227966145], 127 ]
Note: See TracChangeset
for help on using the changeset viewer.