Chapter 4. PyAIMS

AIMS in Python

API

Libraries

  • libpyaims

Main features

See the sphinx documentation

Required environment variables

  • BRAINVISA_SHARE
  • PYTHONPATH

Commandlines

Pyaims commandlines are python scripts, so they can be called either from a shell, from a python script or a python interpreter shell (including IPython). At the moment there are few commandlines. They have the carto prefix.

  • cartoLinearComb.py performs various simple mathematical operations on volumes. Operations are specified using a formula which is interpreted by Python, so it allows some flexibility: for instance I1 + (I2*2.3 - I3 ) * I3 / 2. cartoLinearComb will replace AimsLinearComb.
  • cartoSetMinf.py allows to edit the .minf meta-header file of a data file (volume, mesh, etc).
  • cartoGraphTransform applies a transformation to a graph (to its buckets)

Tutorial and examples

See the programming part of Aims tutorial.

See the examples in the following order: