Skip to content

Commit

Permalink
doc: indents for code-blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
lavakyan committed Mar 5, 2021
1 parent 561364c commit 60f3b6e
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions doc/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ This can be altered by setting of `MSTM_BIN` environment variable, i.e. in bash:

.. Note:: MSTM can be compiled with gfortran as::

gfortran mpidefs-serial.f90 mstm-intrinsics-v3.0.f90 mstm-modules-v3.0.f90 mstm-main-v3.0.f90 -O2 -o mstm.x
gfortran mpidefs-serial.f90 mstm-intrinsics-v3.0.f90 mstm-modules-v3.0.f90 mstm-main-v3.0.f90 -O2 -o mstm.x

This is serial compilation, for parallel the file ``mpidefs-serial.f90`` should be replaced. Consult the MSTM website for details.

Expand Down Expand Up @@ -82,11 +82,12 @@ Binding with MSTM
The easist way is to type ``echo %PATH%`` in Anaconda Promt, and use the output in your script.
Example of GUI running script is ::
@ECHO OFF
PATH=C:\ProgramData\Anaconda3;C:\ProgramData\Anaconda3\Library\mingw-w64\bin;C:\ProgramData\Anaconda3\Library\usr\bin;C:\ProgramData\Anaconda3\Library\bin;C:\ProgramData\Anaconda3\Scripts;C:\ProgramData\Anaconda3\bin;C:\ProgramData\Anaconda3\condabin;%PATH%
set MSTM_BIN="C:\Users\L\Desktop\mstm_studio old\mstm-spectrum\mstm.exe"
python.exe -m mstm_studio
PAUSE
.. code-block:: cmd
@ECHO OFF
PATH=C:\ProgramData\Anaconda3;C:\ProgramData\Anaconda3\Library\mingw-w64\bin;C:\ProgramData\Anaconda3\Library\usr\bin;C:\ProgramData\Anaconda3\Library\bin;C:\ProgramData\Anaconda3\Scripts;C:\ProgramData\Anaconda3\bin;C:\ProgramData\Anaconda3\condabin;%PATH%
set MSTM_BIN="C:\Users\L\Desktop\mstm_studio old\mstm-spectrum\mstm.exe"
python.exe -m mstm_studio
PAUSE
The last command (``PAUSE``) is put to prevent console windows from closing after program is ended.

Expand All @@ -98,7 +99,7 @@ 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.

Installation from PyPi: ``pip install mstm_studio``
Installation from PyPi: ``pip install scatterpy`` or ``pip install scatterpy --user``


### ScatterPy without Numba
Expand All @@ -108,8 +109,9 @@ ScatterPy requires Numba library for speeding up the calculation. However, it is
1. Download scatterpy source code
2. Edit file ``scatterpy/special.py``:
Remove line
.. code-block:: python
``import numba as nb``
import numba as nb
and add lines:

Expand Down

0 comments on commit 60f3b6e

Please sign in to comment.