Changes in sasmodels/product.py [2ed7de0:b39bf3b] in sasmodels


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/product.py

    r2ed7de0 rb39bf3b  
    3939STRUCTURE_MODE_ID = "structure_factor_mode" 
    4040RADIUS_MODE_ID = "radius_effective_mode" 
     41# rkh add this to pass to model_test 
     42RADIUS_TYPE_ID = "effective_radius_type" 
    4143RADIUS_ID = "radius_effective" 
    4244VOLFRAC_ID = "volfraction" 
     
    282284        # unless the model doesn't support beta mode, in which case it is first 
    283285        have_radius_type = p_info.effective_radius_type is not None 
     286        #print(p_npars,s_npars) 
    284287        radius_type_offset = 2+p_npars+s_npars + (1 if have_beta_mode else 0) 
     288        print(values[radius_type_offset]) 
    285289        radius_type = int(values[radius_type_offset]) if have_radius_type else 0 
    286290 
     
    340344        # polydispersity distribution slot in the values array due to 
    341345        # implementation details in kernel_iq.c. 
    342         #print("R_eff=%d:%g, volfrac=%g, volume ratio=%g" 
    343         #      % (radius_type, effective_radius, volfrac, volume_ratio)) 
     346        print("R_eff=%d:%g, volfrac=%g, volume ratio=%g" 
     347              % (radius_type, effective_radius, volfrac, volume_ratio)) 
    344348        if radius_type > 0: 
    345349            # set the value to the model R_eff and set the weight to 1 
     
    356360 
    357361        # Combine form factor and structure factor 
    358         #print("beta", beta_mode, F1, F2, S) 
     362        print("beta", beta_mode, F1, F2, S) 
    359363        PS = F2 + F1**2*(S-1) if beta_mode else F2*S 
    360364        final_result = combined_scale*PS + background 
Note: See TracChangeset for help on using the changeset viewer.