Changeset a8a7f08 in sasmodels
- Timestamp:
- Apr 7, 2016 2:25:44 PM (9 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:
- 3707eee
- Parents:
- 3543141
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/kernelpy.py
r6e7ff6d ra8a7f08 104 104 # will use views into this vector, relying on the fact that a 105 105 # an array of no dimensions acts like a scalar. 106 parameter_vector = np.empty(len(partable.call_parameters) , 'd')106 parameter_vector = np.empty(len(partable.call_parameters)-2, 'd') 107 107 108 108 # Create views into the array to hold the arguments 109 offset = 2109 offset = 0 110 110 kernel_args, volume_args = [], [] 111 111 for p in partable.kernel_parameters: … … 120 120 kernel_args.append(v) 121 121 if p in volume_parameters: 122 volume_args.append( p)122 volume_args.append(v) 123 123 124 124 # Hold on to the parameter vector so we can use it to call kernel later. … … 172 172 # # 173 173 ################################################################ 174 parameters[ 2:] = values[details.par_offset]174 parameters[:] = values[details.par_offset] 175 175 scale, background = values[0], values[1] 176 176 if details.num_active == 0: … … 215 215 for k in range(details.num_coord): 216 216 if details.pd_coord[k]&1: 217 par = details.par_coord[k]217 #par = details.par_coord[k] 218 218 parameters[par] = values[offset[par]] 219 #print "par",par,offset[par],parameters[par+2] 219 220 offset[par] += 1 220 221 if par == theta:
Note: See TracChangeset
for help on using the changeset viewer.