Changeset d5ba841 in sasmodels for sasmodels/core.py
- Timestamp:
- Mar 18, 2016 9:00:13 AM (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:
- 5852c86
- Parents:
- 7c391dd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/core.py
r02e70ff rd5ba841 170 170 """ 171 171 value, weight = zip(*pars) 172 if len(value) > 1: 173 value = [v.flatten() for v in np.meshgrid(*value)] 174 weight = np.vstack([v.flatten() for v in np.meshgrid(*weight)]) 175 weight = np.prod(weight, axis=0) 172 value = [v.flatten() for v in np.meshgrid(*value)] 173 weight = np.vstack([v.flatten() for v in np.meshgrid(*weight)]) 174 weight = np.prod(weight, axis=0) 176 175 return value, weight 177 176
Note: See TracChangeset
for help on using the changeset viewer.