Changeset 765d025 in sasmodels for sasmodels/autoc.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/autoc.py

    r15be191 r765d025  
    3030    'sas_erfc': ['lib/polevl.c', 'lib/sas_erf.c'], 
    3131    'sas_gamma': ['lib/sas_gamma.c'], 
     32    'sas_gammaln': ['lib/sas_gammainc.c'], 
     33    'sas_gammainc': ['lib/sas_gammainc.c'], 
     34    'sas_gammaincc': ['lib/sas_gammainc.c'], 
    3235    'sas_J0': ['lib/polevl.c', 'lib/sas_J0.c'], 
    3336    'sas_J1': ['lib/polevl.c', 'lib/sas_J1.c'], 
     
    4144    # type: ("ModelInfo", ModuleType) -> bool 
    4245    """ 
    43     convert Iq, Iqxy and form_volume to c 
     46    Convert Iq, Iqxy, form_volume, etc. to c 
     47 
     48    Returns list of warnings 
    4449    """ 
    4550    # Check if there is already C code 
     
    4752        return 
    4853 
    49     public_methods = "Iq", "Iqac", "Iqabc", "Iqxy", "form_volume" 
     54    public_methods = ("Iq", "Iqac", "Iqabc", "Iqxy",  
     55            "form_volume", "shell_volume", "effective_radius") 
    5056 
    5157    tagged = [] # type: List[str] 
     
    120126    # translate source 
    121127    ordered_code = [code[name] for name in py2c.ordered_dag(depends) if name in code] 
    122     functions = py2c.translate(ordered_code, constants) 
     128    functions, warnings = py2c.translate(ordered_code, constants) 
    123129    snippets.extend(functions) 
    124130 
     
    127133    info.c_code = "".join(snippets) 
    128134    info.Iq = info.Iqac = info.Iqabc = info.Iqxy = info.form_volume = None 
     135 
     136    return warnings 
     137 
Note: See TracChangeset for help on using the changeset viewer.