Basic structure of Monte Python - GitHub Pages

Basic structure of Monte Python

Benjamin Audren

E?cole Polytechnique F?ed?erale de Lausanne

14/05/2014

BA (EPFL)

Basics of MP

14/05/2014 1 / 37

1 Code Structure 2 Important Modules in (some) detail 3 Usage 4 Practice with Monte Python

BA (EPFL)

Basics of MP

14/05/2014 2 / 37

Outline

Code Structure

1 Code Structure Wrapper Flow

2 Important Modules in (some) detail

3 Usage

4 Practice with Monte Python

BA (EPFL)

Basics of MP

14/05/2014 3 / 37

Code Structure Wrapper

classy - wrapper around class

Cython language to interface Python with C can be used to speed up a bottleneck in Python or. . . to wrap an existing C code and call it from Python as a normal function

BA (EPFL)

Basics of MP

14/05/2014 4 / 37

Code Structure Wrapper

classy - wrapper around class

Cython language to interface Python with C can be used to speed up a bottleneck in Python or. . . to wrap an existing C code and call it from Python as a normal function

Classy classy.pyx wraps class modules and some functions (only the ones needed from within Monte Python). uses a dictionary in place of the .ini file to give parameters (file content) if no arguments are specified, class default values will be used.

BA (EPFL)

Basics of MP

14/05/2014 4 / 37

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download