Changeset 2d81cfe in sasmodels for sasmodels/weights.py
- Timestamp:
- Nov 29, 2017 11:13:23 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:
- 237b800f
- Parents:
- a839b22
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/weights.py
r0db85af r2d81cfe 225 225 """ 226 226 if disperser == "array": 227 raise NotImplementedError("Don't handle arrays through get_weights; use values and weights directly") 227 raise NotImplementedError("Don't handle arrays through get_weights;" 228 " use values and weights directly") 228 229 cls = MODELS[disperser] 229 230 obj = cls(n, width, nsigmas) … … 245 246 import pylab 246 247 247 if any(len(dispersity) >1 for value, dispersity, weights in mesh):248 if any(len(dispersity) > 1 for value, dispersity, weights in mesh): 248 249 labels = [p.name for p in model_info.parameters.call_parameters] 249 250 #pylab.interactive(True) 250 251 pylab.figure() 251 for (v, x,w), s in zip(mesh, labels):252 for (v, x, w), s in zip(mesh, labels): 252 253 if len(x) > 1: 253 254 pylab.plot(x, w, '-o', label=s)
Note: See TracChangeset
for help on using the changeset viewer.