Changeset 765d025 in sasmodels for sasmodels/models/_cylpy.py


Ignore:
Timestamp:
Oct 30, 2018 10:05:27 AM (5 years ago)
Author:
Paul Kienzle <pkienzle@…>
Children:
646eeaa
Parents:
1662ebe (diff), aa8c6e0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'upstream/beta_approx'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/_cylpy.py

    rc01ed3e r765d025  
    177177    return 1.0e-4 * square(s * form) 
    178178 
    179 def ER(radius, length): 
    180     """ 
    181     Return equivalent radius (ER) 
    182     """ 
    183     ddd = 0.75 * radius * (2 * radius * length + (length + radius) * (length + pi * radius)) 
    184     return 0.5 * (ddd) ** (1. / 3.) 
     179def effective_radius(mode, radius, length): 
     180    mode = int(mode) 
     181    if mode == 1: 
     182        ddd = 0.75 * radius * (2 * radius * length + (length + radius) * (length + pi * radius)) 
     183        return 0.5 * (ddd) ** (1. / 3.) 
     184    else: 
     185        return 0. 
    185186 
    186187def random(): 
Note: See TracChangeset for help on using the changeset viewer.