Changeset 1726b21 in sasmodels for Models/code_ellipse.py
- Timestamp:
- Aug 8, 2014 11:45:51 AM (10 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:
- ae7d639
- Parents:
- 8cdb9f1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Models/code_ellipse.py
ra42fec0 r1726b21 53 53 for j in xrange(len(radius_b.weight)): 54 54 #Average over theta distribution 55 vol += radius_a.weight[i]*radius_b.weight[j]*pow(radius_b.value[j], 2)*radius_a.value[i] 56 norm_vol += radius_a.weight[i]*radius_b.weight[j] 57 55 58 for k in xrange(len(axis_theta.weight)): 56 59 #Average over phi distribution … … 64 67 np.uint32(self.qx.size), np.uint32(len(axis_theta.weight))) 65 68 66 vol += radius_a.weight[i]*radius_b.weight[j]*pow(radius_b.value[j], 2)*radius_a.value[i]67 norm_vol += radius_a.weight[i]*radius_b.weight[j]68 69 norm += radius_a.weight[i]*radius_b.weight[j]*axis_theta.weight[k]*axis_phi.weight[l] 70 69 71 # Averaging in theta needs an extra normalization 70 72 # factor to account for the sin(theta) term in the
Note: See TracChangeset
for help on using the changeset viewer.