Changeset 0b56f38 in sasmodels for sasmodels/models/stacked_disks.py
- Timestamp:
- Apr 6, 2017 4:01:42 AM (7 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- e2d6e3b
- Parents:
- b6e0636
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/stacked_disks.py
rc3ccaec r0b56f38 103 103 """ 104 104 105 from numpy import inf 105 from numpy import inf, sin, cos, pi 106 106 107 107 name = "stacked_disks" … … 152 152 # After redefinition of spherical coordinates - 153 153 # tests had in old coords theta=0, phi=0; new coords theta=90, phi=0 154 # but should not matter here as so far all the tests are 1D not 2D 154 q = 0.1 155 # april 6 2017, rkh added a 2d unit test, assume correct! 156 qx = q*cos(pi/6.0) 157 qy = q*sin(pi/6.0) 155 158 tests = [ 156 159 # Accuracy tests based on content in test/utest_extra_models.py. … … 186 189 [{'thick_core': 10.0, 187 190 'thick_layer': 15.0, 191 'radius': 100.0, 192 'n_stacking': 5, 193 'sigma_d': 0.0, 194 'sld_core': 4.0, 195 'sld_layer': -0.4, 196 'solvent_sd': 5.0, 197 'theta': 90.0, 198 'phi': 20.0, 199 'scale': 0.01, 200 'background': 0.001}, 201 (qx, qy), 0.0491167089952 ], 202 [{'thick_core': 10.0, 203 'thick_layer': 15.0, 188 204 'radius': 3000.0, 189 205 'n_stacking': 5, … … 228 244 'background': 0.001, 229 245 }, ([0.4, 0.5]), [0.00105074, 0.00121761]], 246 [{'thick_core': 10.0, 247 'thick_layer': 15.0, 248 'radius': 3000.0, 249 'n_stacking': 1.0, 250 'sigma_d': 0.0, 251 'sld_core': 4.0, 252 'sld_layer': -0.4, 253 'solvent_sd': 5.0, 254 'theta': 90.0, 255 'phi': 20.0, 256 'scale': 0.01, 257 'background': 0.001, 258 }, (qx, qy), 0.0341738733124 ], 230 259 231 260 [{'thick_core': 10.0,
Note: See TracChangeset
for help on using the changeset viewer.