core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change
on this file since e9dc7df was
bfdfb23,
checked in by piotr, 9 years ago
|
PK's code review for gen_so.py + local implementation of tgamma for compilers who don't support this method
|
-
Property mode set to
100644
|
File size:
603 bytes
|
Rev | Line | |
---|
[e1454ab] | 1 | # Script to compile all C/C++ models |
---|
| 2 | # Part of the build process, referenced from setup.py |
---|
| 3 | import sys, os |
---|
| 4 | |
---|
| 5 | def main(): |
---|
| 6 | sasmodels = os.path.dirname(os.path.realpath(__file__)) |
---|
| 7 | sys.path.insert(0, sasmodels) |
---|
| 8 | from sasmodels import generate, core |
---|
| 9 | |
---|
| 10 | # Convert ../sasmodels/models/name.py to name |
---|
[bfdfb23] | 11 | for model_name in core.list_models(): |
---|
[e1454ab] | 12 | # Choose only relevant python files |
---|
[bfdfb23] | 13 | # model_info = core.load_model_info(model_name) |
---|
[e1454ab] | 14 | # Run the conversion but don't delete the .so |
---|
[bfdfb23] | 15 | model = core.precompile_dll(model_name) |
---|
[e1454ab] | 16 | |
---|
| 17 | if __name__ == "__main__": |
---|
| 18 | main() |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | |
---|
Note: See
TracBrowser
for help on using the repository browser.