Changeset 9951a86 in sasmodels
- Timestamp:
- Oct 12, 2016 10:35:20 PM (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:
- a80e64c
- Parents:
- 12eb36b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/product.py
r6dc78e4 r9951a86 184 184 s_details = make_details(s_info, s_length, s_offset, nweights+1) 185 185 v, w = weights[:nweights], weights[nweights:] 186 s_values = [[1., 0., p_er, s_vr], 187 # er and vf already included, so start one past the 188 # volfrac parameter, and go two less than the number 189 # of S parameters. 190 values[2+p_npars+2:2+p_npars+s_npars-1], 191 # no magnetism parameters to include for S 192 # add er into the (value, weights) pairs 193 v, [p_er], w, [1.0]] 186 s_values = [ 187 # scale=1, background=0, radius_effective=p_er, volfraction=s_vr 188 [1., 0., p_er, s_vr], 189 # structure factor parameters start after scale, background and 190 # all the form factor parameters. Skip the volfraction parameter 191 # as well, since it is computed elsewhere, and go to the end of the 192 # parameter list. 193 values[2+p_npars+1:2+p_npars+s_npars], 194 # no magnetism parameters to include for S 195 # add er into the (value, weights) pairs 196 v, [p_er], w, [1.0] 197 ] 194 198 spacer = (32 - sum(len(v) for v in s_values)%32)%32 195 199 s_values.append([0.]*spacer) … … 200 204 s_result = self.s_kernel(s_details, s_values, cutoff, False) 201 205 206 #print("p_npars",p_npars,s_npars,p_er,s_vr,values[2+p_npars+1:2+p_npars+s_npars]) 202 207 #call_details.show(values) 203 208 #print("values", values) 204 209 #p_details.show(p_values) 205 210 #print("=>", p_result) 206 #print("p val", s_values)207 211 #s_details.show(s_values) 208 212 #print("=>", s_result)
Note: See TracChangeset
for help on using the changeset viewer.