Changeset abc03d8 in sasmodels for sasmodels/generate.py
- Timestamp:
- Mar 21, 2016 4:06:45 PM (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:
- e8d2276
- Parents:
- 31641b2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/generate.py
rafda63c rabc03d8 685 685 def poly_details(model_info, weights): 686 686 pars = model_info['parameters'][2:] # skip scale and background 687 weights = weights[2:] 687 688 max_pd = model_info['max_pd'] 688 689 npars = len(pars) # scale and background already removed … … 694 695 pd_length = np.array([len(w) for w in weights]) 695 696 print (pd_length) 697 print (weights) 696 698 pd_offset = np.cumsum(np.hstack((0, pd_length))) 697 699 pd_isvol = np.array([p.type=='volume' for p in pars]) … … 716 718 details[par_offset+1*npars:par_offset+2*npars] = 0 # no coordination for most 717 719 details[par_offset+2*npars:par_offset+3*npars] = 0 # no fast coord with 0 718 coord_offset = par_offset+1* pars720 coord_offset = par_offset+1*npars 719 721 for k,parameter_num in enumerate(idx): 720 722 details[coord_offset+parameter_num] = 2**k
Note: See TracChangeset
for help on using the changeset viewer.