Changeset 2badeca in sasmodels


Ignore:
Timestamp:
Dec 12, 2017 2:43:41 PM (7 years ago)
Author:
Omer Eisenberg <omereis@…>
Children:
937afef
Parents:
e8918e8
Message:

compilation works from autoc.py

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • .gitignore

    rc26897a r2badeca  
    88*.so 
    99*.obj 
     10*.o 
    1011/doc/_build/ 
    1112/doc/api/ 
     
    1920/.pydevproject 
    2021/.idea 
     22.vscode 
     23xlate.c 
    2124/sasmodels.egg-info/ 
    2225/example/Fit_*/ 
  • sasmodels/autoc.py

    r71c5f4d r2badeca  
    132132        [code[name] for name in ordered_dag(depends) if name in code], 
    133133        constants) 
     134    snippets.clear() 
    134135    snippets.append(functions) 
    135136    #print("source", info.source) 
    136137    print("\n".join(snippets)) 
     138    try: 
     139        c_text = "\n".join(snippets) 
     140        translated = open ("_autoc.c", "a+") 
     141        translated.write (c_text) 
     142        translated.close() 
     143    except Exception as excp: 
     144        strErr = "Error:\n" + str(excp.args) 
     145        print(strErr) 
    137146    #return 
    138147#    raise RuntimeError("not yet converted...") 
  • sasmodels/py2c.py

    r71c5f4d r2badeca  
    11621162        print ("Error:\n" + str(excp.args)) 
    11631163    print("...Done") 
     1164#            "program": "${workspaceRoot}/ -m sascomp.generate", 
Note: See TracChangeset for help on using the changeset viewer.