Changeset 1edf610 in sasmodels for sasmodels/core.py
- Timestamp:
- Mar 21, 2016 12:54:55 PM (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:
- a4e2ae5, afda63c
- Parents:
- 839283a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/core.py
r0880966 r1edf610 225 225 weights = [1.0]*len(values) 226 226 else: 227 wv_pairs = [get_weights(p, pars) for p in kernel.info['parameters']]228 weights, values = [v for v in zip(*wv_pairs)]227 vw_pairs = [get_weights(p, pars) for p in kernel.info['parameters']] 228 values, weights = zip(*vw_pairs) 229 229 230 230 #TODO: This is what we thought to do if max([len(w) for w in weights]) > 1: 231 if max([w for w in weights]) > 1: 231 print("from") 232 import pprint; pprint.pprint(weights) 233 print("to") 234 if max([len(w) for w in weights]) > 1: 232 235 details = generate.poly_details(kernel.info, weights) 233 236 else:
Note: See TracChangeset
for help on using the changeset viewer.