Scientific Python

Z MetaCentrum
Přejít na: navigace, hledání


ScientificPython is a collection of Python modules that are useful for scientific computing. In this collection you will find modules that cover basic geometry (vectors, tensors, transformations, vector and tensor fields), quaternions, automatic derivatives, (linear) interpolation, polynomials, elementary statistics, nonlinear least-squares fits, unit calculations, Fortran-compatible text formatting, 3D visualization via VRML, and two Tk widgets for simple line plots and 3D wireframe models. There are also interfaces to the netCDF library (portable structured binary files), to MPI (Message Passing Interface, message-based parallel programming), and to BSPlib (Bulk Synchronous Parallel programming).


Program is currently available in version 2.9.0 with different compilations. Available modules:


Version py2.6 differs from py2.6-old by compilation on Deb7 (instead of Deb6) and with support of NetCDF. Versions py2.6-mpi and py2.6-old support parallel run.


Load module example:

module add scientificpython-py2.6

"-py-2.x" is determining Python version with which is module build. Module "load" automatically all others required files.

Notice: This application supports parallel computing (MPI, OpenMP) which can have weird consequences. For more details about parallel computing visit the page How to compute/Parallelization.

Example of running

skirit$ module add scientificpython-py2.6
skirit$ mpirun -mca btl ^gm -np 2 mpipython -V
Python 2.6.2

By option "-mca btl ^gm", warnings about unavailable myrinet (at machine without myrinet) will be switched off.


On-line manual is available

Program administrator