Changes in sasmodels/product.py [2ed7de0:b39bf3b] in sasmodels
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/product.py
r2ed7de0 rb39bf3b 39 39 STRUCTURE_MODE_ID = "structure_factor_mode" 40 40 RADIUS_MODE_ID = "radius_effective_mode" 41 # rkh add this to pass to model_test 42 RADIUS_TYPE_ID = "effective_radius_type" 41 43 RADIUS_ID = "radius_effective" 42 44 VOLFRAC_ID = "volfraction" … … 282 284 # unless the model doesn't support beta mode, in which case it is first 283 285 have_radius_type = p_info.effective_radius_type is not None 286 #print(p_npars,s_npars) 284 287 radius_type_offset = 2+p_npars+s_npars + (1 if have_beta_mode else 0) 288 print(values[radius_type_offset]) 285 289 radius_type = int(values[radius_type_offset]) if have_radius_type else 0 286 290 … … 340 344 # polydispersity distribution slot in the values array due to 341 345 # 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)) 344 348 if radius_type > 0: 345 349 # set the value to the model R_eff and set the weight to 1 … … 356 360 357 361 # Combine form factor and structure factor 358 #print("beta", beta_mode, F1, F2, S)362 print("beta", beta_mode, F1, F2, S) 359 363 PS = F2 + F1**2*(S-1) if beta_mode else F2*S 360 364 final_result = combined_scale*PS + background
Note: See TracChangeset
for help on using the changeset viewer.