Skip to content

indica-mcf/Indica

Repository files navigation

InDiCA

Documentation Status tests linting codecov

InDiCA (Integrated DiagnostiC Analysis) is a tool which allows to perform and combine the analysis of a large number of different diagnostics from Magnetic Confined Fusion (MCF) plasma devices. It will consist of a library of functions to analyse different diagnostic systems under a common framework, and a set of workflows to combine these measurements.

Currently under active development are workflows for the calculation of the plasma composition following the methodologies explained in M. Sertoli et al., J. Plasma Phys. (2019), vol. 85, 905850504, and for constrining the shape of the kinetic profiles given LOS and volume integrated measurements only. Diagnostic forward models presently under development are: SXR and bolometer cameras, passive spectrometers, interferometers and magnetic measurements.

The overall design work has been completed and the general functionality implemented, but the library is still under active development. In addition to the (rapidly changing) code, this repository holds the documentation for this project, which can be found on ReadTheDocs, which is also still (rapidly) changing.

Install

  1. Make sure pip is up-to-date:

    • pip install --upgrade pip
  2. Create a virtual environment with python 3.9 and activate it, e.g. using conda:

    • set_global_conda
    • conda create --name ENV_NAME python=3.9
    • conda activate ENV_NAME
  3. Install poetry and environment dependencies:

    • pip install poetry==1.1.15
    • poetry update
  4. For mdsplus building and installation:

    • cp -r /usr/local/mdsplus/mdsobjects/python mdsPython
    • cd mdsPython
    • python setup.py build
    • python setup.py install
    • cd ../
    • rm -r mdsPython

License

InDiCA is distributed under the GNU General Public License version 3 or, at your option, any later version.