Skip to content

Commit

Permalink
Corrects documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
luizfelippesr committed Jul 14, 2018
1 parent cbcb3a7 commit ea9062d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
9 changes: 6 additions & 3 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ A quick tour through the functionality and a description of the features and usa
`tutorial <http://nbviewer.jupyter.org/url/www.mas.ncl.ac.uk/~nlfsr/galmag/galmag_tutorial.ipynb>`_
jupyter notebook.

Code documentation
------------------

.. toctree::
:maxdepth: 4

Code documentation <modules.rst>

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

2 changes: 1 addition & 1 deletion galmag/B_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ class B_field(object):
`set_field_component` method. Alternatively, the custom component can be
added during initialization as an extra keyword
(i.e. B_field.set_field_component(name, component) is equivalent to
B_field(..., name=component).
B_field(..., name=component).
Parameters
----------
Expand Down
7 changes: 4 additions & 3 deletions galmag/disk_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,13 +323,14 @@ def regularize(r, Om, S, r_reg, Om_reg, k=4):
applying an exponential cutoff on Omega to prevent it.
.. math::
\Omega(r) = \exp\left[-(r_\\xi/r)^k\right]\left[\tilde\Omega(r)-\Omega_\\xi\right] + \Omega_\\xi\,,
\Omega(r) = \exp\left[-(r_\\xi/r)^k\\right]\left[ \\tilde\Omega(r)-\Omega_\\xi\\right] + \Omega_\\xi\,,
and
.. math::
S(r) = \e^{-(r_\\xi/r)^k}\left\{k\left(\frac{r_\\xi}{r}\right)^k\left[\tilde\Omega(r)
-\Omega_\\xi\right] +\tilde S\right\}
S(r) = e^{-(r_\\xi/r)^k}\left\{k\left(\\frac{r_\\xi}{r}\\right)^k\\left[\\tilde\Omega(r)
-\Omega_\\xi \\right] +\\tilde S \\right\}
Parameters
----------
Expand Down

0 comments on commit ea9062d

Please sign in to comment.