Changeset afda63c in sasmodels
- Timestamp:
- Mar 21, 2016 4:07:33 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:
- 31641b2
- Parents:
- 1edf610
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/generate.py
r1edf610 rafda63c 684 684 685 685 def poly_details(model_info, weights): 686 print("entering poly",weights)687 686 pars = model_info['parameters'][2:] # skip scale and background 688 687 max_pd = model_info['max_pd'] … … 707 706 if theta_par >= 0 and pd_length[theta_par] <= 1: 708 707 theta_par = -1 709 710 print("p","max_pd","constants_offset",par_offset,max_pd,constants_offset,npars)711 print(idx)712 print(pd_length[idx])713 print(pd_offset[idx])714 print(pd_stride)715 print(pd_isvol[idx])716 708 717 709 details = np.empty(constants_offset + 2, 'int32') … … 727 719 for k,parameter_num in enumerate(idx): 728 720 details[coord_offset+parameter_num] = 2**k 729 details[constants_offset] 721 details[constants_offset] = 1 # fast_coord_count: one fast index 730 722 details[constants_offset+1] = theta_par 731 723 print ("details",details)
Note: See TracChangeset
for help on using the changeset viewer.