Changeset 1e13e35 in sasmodels
- Timestamp:
- Dec 5, 2016 10:39:59 AM (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:
- c8902ac
- Parents:
- d6f60c3 (diff), ccd5f01 (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. - git-author:
- Jeff Krzywon <krzywon@…> (12/05/16 10:39:59)
- git-committer:
- GitHub <noreply@…> (12/05/16 10:39:59)
- Location:
- sasmodels
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/compare.py
r8c65a33 rfe25eda 1063 1063 # Evaluate preset parameter expressions 1064 1064 context = MATH.copy() 1065 context['np'] = np 1065 1066 context.update(pars) 1066 1067 context.update((k,v) for k,v in presets.items() if isinstance(v, float)) -
sasmodels/details.py
r6dc78e4 rccd5f01 230 230 npars = kernel.info.parameters.npars 231 231 nvalues = kernel.info.parameters.nvalues 232 scalars = [ v[0][0] for vin pairs]232 scalars = [(v[0] if len(v) else np.NaN) for v, w in pairs] 233 233 values, weights = zip(*pairs[2:npars+2]) if npars else ((),()) 234 234 length = np.array([len(w) for w in weights])
Note: See TracChangeset
for help on using the changeset viewer.