Changeset 7a40b08 in sasmodels


Ignore:
Timestamp:
Dec 4, 2017 10:49:08 AM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
Children:
59ee4db
Parents:
50b5464
Message:

rearrange autoc to allow py2c translation to do whole program analysis

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/autoc.py

    r50b5464 r7a40b08  
    132132        [code[name] for name in ordered_dag(depends) if name in code], 
    133133        constants) 
     134    snippets.append(functions) 
     135    #print("source", info.source) 
     136    print("\n".join(snippets)) 
     137    #return 
     138    raise RuntimeError("not yet converted...") 
    134139 
    135140    # update model info 
    136141    info.source = unique_libs 
    137     info.c_code = "\n".join(snippets) +  functions 
     142    info.c_code = "\n".join(snippets) 
    138143    info.Iq = info.Iqxy = info.form_volume = None 
    139  
    140     print("source", info.source) 
    141     print(info.c_code) 
    142  
    143     raise RuntimeError("not yet converted...") 
    144144 
    145145 
Note: See TracChangeset for help on using the changeset viewer.