Welcome to FEMAG Tools’s documentation!

Femagtools is an Open-Source Python-API for FEMAG offering following features:

  • run Femag with a FSL file anywhere: locally (single and multi-core), remote (ZMQ), HT Condor, Cloud (Amazon AWS, Google Cloud)
  • read BCH/BATCH and MC/MCV files
  • create FSL files from model and calculation templates and/or user specific FSL
  • calculate machine characteristics by using analytic machine models
  • execute parameter studies and multi-objective optimization

The package is hosted on github: <https://github.com/SEMAFORInformatik/femagtools/>`_. Contributions are highly welcome.


Femagtools can be installed on any 2.7 or 3.x Python distribution with Numpy, Scipy and Pip:

$ pip install femagtools

Or with Anaconda:

$ conda install -c semafor femagtools

Prerequisite: a fairly recent FEMAG version (see http://www.profemag.ch) must be found in one of the directories listed in your PATH variable.

If a proxy is needed:

$ pip --proxy http://proxy.hell:3128 install femagtools

For Anaconda you can setup the environment variables HTTP_PROXY and HTTPS_PROXY or the file .condarc:

  http: http://user:pass@corp.com:8080
  https: https://user:pass@corp.com:8080

For further information: <https://conda.io/docs/user-guide/configuration>_.

Indices and tables