Skip to content

Commit

Permalink
doc: Update installation.RST
Browse files Browse the repository at this point in the history
  • Loading branch information
lavakyan committed Mar 5, 2021
1 parent 6d6504f commit 2639d44
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
1 change: 1 addition & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
'sphinx.ext.mathjax',
'sphinx.ext.viewcode',
'sphinx.ext.githubpages',
'sphinx.ext.autosectionlabel' # for in-text links to captions
]

# Add any paths that contain templates here, relative to this directory.
Expand Down
24 changes: 15 additions & 9 deletions doc/source/installation.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@



# Installation
Installation
============


## Source code
Source code
-----------


Source code of Python wrapper is available on GitHub <https://github.com/lavakyan/mstm-spectrum>.
Expand All @@ -13,10 +15,11 @@ Stable version published on PyPi <https://pypi.org/project/mstm-studio/>.
The source code of MSTM is not included and should be obtained from <https://scattport.org/index.php/light-scattering-software/multiple-particle-scattering/468-mstm>.
MSTM studio can be run without MSTM binary, but with restricted functionality.

For non-spherical particles (currently available only spheroids) the ScatterPy library is used (See [Binding with ScatterPy](#binding-with-scatterpy) for installation details).
For non-spherical particles (currently available only spheroids) the ScatterPy library is used (See :ref:`Binding with ScatterPy`).


## Linux installation
Linux installation
------------------


Install from PyPi:
Expand All @@ -37,7 +40,8 @@ Running GUI with
May be required to explicitely specify python version, i.e. use ``pip3`` and ``python3`` in above commands.


### Binding with MSTM
Binding with MSTM
^^^^^^^^^^^^^^^^^

MSTM-studio will search for ``mstm.x`` binary in ``~/bin`` directory.

Expand All @@ -53,8 +57,8 @@ This can be altered by setting of `MSTM_BIN` environment variable, i.e. in bash:
This is serial compilation, for parallel the file ``mpidefs-serial.f90`` should be replaced. Consult the MSTM website for details.


## Windows installation

Windows installation
--------------------

The tested way is using Anaconda Python distribution <https://www.anaconda.com/>.

Expand All @@ -64,7 +68,8 @@ The tested way is using Anaconda Python distribution <https://www.anaconda.com/>
or check python scripting by typing ``import mstm_studio`` in python console.


### Binding with MSTM
Binding with MSTM
^^^^^^^^^^^^^^^^^

4. Obtain the MSTM binary. Put it to some folder.
5. Setup environmental variable ``MSTM_BIN`` to point on the binary.
Expand All @@ -86,7 +91,8 @@ The tested way is using Anaconda Python distribution <https://www.anaconda.com/>
The last command (``PAUSE``) is put to prevent console windows from closing after program is ended.


## Binding with ScatterPy
Binding with ScatterPy
----------------------

For calculation of extinction spectra of isolated non-sphericla particle ScatterPy can be used. This library is available on github <https://github.com/TCvanLeth/ScatterPy> and PiPy repository.

Expand Down

0 comments on commit 2639d44

Please sign in to comment.