Changeset ef5a314 in sasmodels for sasmodels/models/stacked_disks.py
- Timestamp:
- Oct 11, 2016 12:06:46 PM (8 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:
- 12eb36b
- Parents:
- 1fdb555
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/stacked_disks.py
r0d6e865 ref5a314 151 151 theta=0, 152 152 phi=0) 153 154 tests = [155 # Accuracy tests based on content in test/utest_extra_models.py.156 # Added 2 tests with n_stacked = 5 using SasView 3.1.2 - PDB157 [{'thick_core': 10.0,158 'thick_layer': 15.0,159 'radius': 3000.0,160 'n_stacking': 1.0,161 'sigma_d': 0.0,162 'sld_core': 4.0,163 'sld_layer': -0.4,164 'solvent_sd': 5.0,165 'theta': 0.0,166 'phi': 0.0,167 'scale': 0.01,168 'background': 0.001,169 }, 0.001, 5075.12],170 171 [{'thick_core': 10.0,172 'thick_layer': 15.0,173 'radius': 3000.0,174 'n_stacking': 5.0,175 'sigma_d': 0.0,176 'sld_core': 4.0,177 'sld_layer': -0.4,178 'solvent_sd': 5.0,179 'theta': 0.0,180 'phi': 0.0,181 'scale': 0.01,182 'background': 0.001,183 }, 0.001, 5065.12793824],184 185 [{'thick_core': 10.0,186 'thick_layer': 15.0,187 'radius': 3000.0,188 'n_stacking': 5.0,189 'sigma_d': 0.0,190 'sld_core': 4.0,191 'sld_layer': -0.4,192 'solvent_sd': 5.0,193 'theta': 0.0,194 'phi': 0.0,195 'scale': 0.01,196 'background': 0.001,197 }, 0.164, 0.0127673597265],198 199 [{'thick_core': 10.0,200 'thick_layer': 15.0,201 'radius': 3000.0,202 'n_stacking': 1.0,203 'sigma_d': 0.0,204 'sld_core': 4.0,205 'sld_layer': -0.4,206 'solvent_sd': 5.0,207 'theta': 0.0,208 'phi': 0.0,209 'scale': 0.01,210 'background': 0.001,211 }, [0.001, 90.0], [5075.12, 0.001]],212 213 [{'thick_core': 10.0,214 'thick_layer': 15.0,215 'radius': 3000.0,216 'n_stacking': 1.0,217 'sigma_d': 0.0,218 'sld_core': 4.0,219 'sld_layer': -0.4,220 'solvent_sd': 5.0,221 'theta': 0.0,222 'phi': 0.0,223 'scale': 0.01,224 'background': 0.001,225 }, ([0.4, 0.5]), [0.00105074, 0.00121761]],226 227 [{'thick_core': 10.0,228 'thick_layer': 15.0,229 'radius': 3000.0,230 'n_stacking': 1.0,231 'sigma_d': 0.0,232 'sld_core': 4.0,233 'sld_layer': -0.4,234 235 'theta': 0.0,236 'phi': 0.0,237 'scale': 0.01,238 'background': 0.001,239 }, ([1.3, 1.57]), [0.0010039, 0.0010038]],240 ]153 #After redefinition to spherical coordinates find new reasonable test values 154 #tests = [ 155 # # Accuracy tests based on content in test/utest_extra_models.py. 156 # # Added 2 tests with n_stacked = 5 using SasView 3.1.2 - PDB 157 # [{'thick_core': 10.0, 158 # 'thick_layer': 15.0, 159 # 'radius': 3000.0, 160 # 'n_stacking': 1.0, 161 # 'sigma_d': 0.0, 162 # 'sld_core': 4.0, 163 # 'sld_layer': -0.4, 164 # 'solvent_sd': 5.0, 165 # 'theta': 0.0, 166 # 'phi': 0.0, 167 # 'scale': 0.01, 168 # 'background': 0.001, 169 # }, 0.001, 5075.12], 170 171 # [{'thick_core': 10.0, 172 # 'thick_layer': 15.0, 173 # 'radius': 3000.0, 174 # 'n_stacking': 5.0, 175 # 'sigma_d': 0.0, 176 # 'sld_core': 4.0, 177 # 'sld_layer': -0.4, 178 # 'solvent_sd': 5.0, 179 # 'theta': 0.0, 180 # 'phi': 0.0, 181 # 'scale': 0.01, 182 # 'background': 0.001, 183 # }, 0.001, 5065.12793824], 184 185 # [{'thick_core': 10.0, 186 # 'thick_layer': 15.0, 187 # 'radius': 3000.0, 188 # 'n_stacking': 5.0, 189 # 'sigma_d': 0.0, 190 # 'sld_core': 4.0, 191 # 'sld_layer': -0.4, 192 # 'solvent_sd': 5.0, 193 # 'theta': 0.0, 194 # 'phi': 0.0, 195 # 'scale': 0.01, 196 # 'background': 0.001, 197 # }, 0.164, 0.0127673597265], 198 199 # [{'thick_core': 10.0, 200 # 'thick_layer': 15.0, 201 # 'radius': 3000.0, 202 # 'n_stacking': 1.0, 203 # 'sigma_d': 0.0, 204 # 'sld_core': 4.0, 205 # 'sld_layer': -0.4, 206 # 'solvent_sd': 5.0, 207 # 'theta': 0.0, 208 # 'phi': 0.0, 209 # 'scale': 0.01, 210 # 'background': 0.001, 211 # }, [0.001, 90.0], [5075.12, 0.001]], 212 213 # [{'thick_core': 10.0, 214 # 'thick_layer': 15.0, 215 # 'radius': 3000.0, 216 # 'n_stacking': 1.0, 217 # 'sigma_d': 0.0, 218 # 'sld_core': 4.0, 219 # 'sld_layer': -0.4, 220 # 'solvent_sd': 5.0, 221 # 'theta': 0.0, 222 # 'phi': 0.0, 223 # 'scale': 0.01, 224 # 'background': 0.001, 225 # }, ([0.4, 0.5]), [0.00105074, 0.00121761]], 226 227 # [{'thick_core': 10.0, 228 # 'thick_layer': 15.0, 229 # 'radius': 3000.0, 230 # 'n_stacking': 1.0, 231 # 'sigma_d': 0.0, 232 # 'sld_core': 4.0, 233 # 'sld_layer': -0.4, 234 # 'solvent_sd': 5.0, 235 # 'theta': 0.0, 236 # 'phi': 0.0, 237 # 'scale': 0.01, 238 # 'background': 0.001, 239 # }, ([1.3, 1.57]), [0.0010039, 0.0010038]], 240 # ] 241 241 # 21Mar2016 RKH notes that unit tests all have n_stacking=1, ought to test other values 242 242
Note: See TracChangeset
for help on using the changeset viewer.