Changeset afda63c in sasmodels


Ignore:
Timestamp:
Mar 21, 2016 2:07:33 PM (8 years ago)
Author:
wojciech
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
Message:

Generate file cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/generate.py

    r1edf610 rafda63c  
    684684 
    685685def poly_details(model_info, weights): 
    686     print("entering poly",weights) 
    687686    pars = model_info['parameters'][2:]  # skip scale and background 
    688687    max_pd = model_info['max_pd'] 
     
    707706        if theta_par >= 0 and pd_length[theta_par] <= 1: 
    708707            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]) 
    716708 
    717709    details = np.empty(constants_offset + 2, 'int32') 
     
    727719    for k,parameter_num in enumerate(idx): 
    728720        details[coord_offset+parameter_num] = 2**k 
    729     details[constants_offset]   = 1   # fast_coord_count: one fast index 
     721    details[constants_offset] = 1   # fast_coord_count: one fast index 
    730722    details[constants_offset+1] = theta_par 
    731723    print ("details",details) 
Note: See TracChangeset for help on using the changeset viewer.