Changeset a66b004 in sasmodels for sasmodels/weights.py
- Timestamp:
- Nov 30, 2017 12:30:08 AM (6 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 34bbb9c
- Parents:
- 26a6608 (diff), b669b49 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/weights.py
r75e4319 ra66b004 81 81 class GaussianDispersion(Dispersion): 82 82 r""" 83 Gaussian dispersion, with 1- \$\sigma$ width.83 Gaussian dispersion, with 1-$\sigma$ width. 84 84 85 85 .. math:: … … 130 130 class LogNormalDispersion(Dispersion): 131 131 r""" 132 log Gaussian dispersion, with 1- \$\sigma$ width.132 log Gaussian dispersion, with 1-$\sigma$ width. 133 133 134 134 .. math:: … … 148 148 class SchulzDispersion(Dispersion): 149 149 r""" 150 Schultz dispersion, with 1- \$\sigma$ width.150 Schultz dispersion, with 1-$\sigma$ width. 151 151 152 152 .. math:: … … 255 255 """ 256 256 if disperser == "array": 257 raise NotImplementedError("Don't handle arrays through get_weights; use values and weights directly") 257 raise NotImplementedError("Don't handle arrays through get_weights;" 258 " use values and weights directly") 258 259 cls = MODELS[disperser] 259 260 obj = cls(n, width, nsigmas) … … 275 276 import pylab 276 277 278 <<<<<<< HEAD 277 279 if any(len(dispersity)>1 for value, dispersity, weights in mesh): 278 280 labels = [p.name for p in model_info.parameters.call_parameters] … … 280 282 pylab.figure() 281 283 for (v,x,w), s in zip(mesh, labels): 284 ======= 285 if any(len(dispersity) > 1 for value, dispersity, weights in mesh): 286 labels = [p.name for p in model_info.parameters.call_parameters] 287 #pylab.interactive(True) 288 pylab.figure() 289 for (v, x, w), s in zip(mesh, labels): 290 >>>>>>> master 282 291 if len(x) > 1: 283 292 pylab.plot(x, w, '-o', label=s)
Note: See TracChangeset
for help on using the changeset viewer.