|
|
|
## 0. Importing the modules
|
|
|
|
DART can be readily used through python because SWIG has been used to generate wrappers. More specifically, SWIG produces a shared library `_modulew.[so|pyd]` and a python module `modulew.py`. Additionaly, the repository is organized such that the folder `module` automatically imports the modules it depends on. Consequently, users only need to import the required modules, as they would do for any package written in pure python.
|
|
|
|
DART can be readily used through python because SWIG has been used to generate wrappers. More specifically, SWIG produces a shared library `_modulew.[so|pyd]` and a python module `modulew.py`. Additionally, the repository is organized such that the folder `module` automatically imports the modules it depends on. Consequently, users only need to import the required modules, as they would do for any package written in pure python.
|
|
|
|
|
|
|
|
**External modules**
|
|
|
|
`math` or `numpy` modules contain useful mathematics constant/functions. Since `math` is a default module of python while `numpy` needs to be installed, this documentation will use `math`.
|
| ... | ... | |
| ... | ... | |