source: sasview/sansmodels/src/sans/models/c_models/wrapping.py @ 0d86fecb

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 0d86fecb was 9ce41c6, checked in by Gervaise Alina <gervyh@…>, 15 years ago

wrote unittest for all model untested , haven' test critial point error handling

  • Property mode set to 100644
File size: 591 bytes
RevLine 
[9ce41c6]1import sys
2import os
3import os.path
4from WrapperGenerator import WrapperGenerator
5
6
7root= os.path.dirname(os.getcwd())
8
9dir = os.path.join(root, "c_extensions")
10#print "dir", dir
11list= os.listdir(dir)
12nModels=0
13for item in list:
14    toks = os.path.splitext(os.path.basename(item))
15    if toks[1]=='.h':
16        nModels += 1
17        name = toks[0]
18        app = WrapperGenerator(os.path.join('..','c_extensions',name+".h"))
19        app.read()
20        app.write_c_wrapper()
21        app.write_python_wrapper()
22        print app
23print "Number total of models is %s"%nModels
Note: See TracBrowser for help on using the repository browser.