:tocdepth: 1
Installation
============
The **oimodeler** package can be installed directly using the pip install command:
.. code-block:: console
$ pip install git+https://github.com/oimodeler/oimodeler
.. warning::
The examples and their dedicated data are not installed via pip. They are available for manual
download on the `GitHub `_ archive.
Alternatively, we recommend installing the full **oimodeler** package (including examples and data)
by cloning the `GitHub repository `_:
.. code-block:: console
$ git clone https://github.com/oimodeler/oimodeler
$ cd oimodeler/
and installing it as a non-editable package:
.. code-block:: console
$ pip install .
Or as an editable (development) install:
.. code-block:: console
$ pip install -e .
Dependencies
------------
The **oimodeler** package requires the following dependencies:
- `numpy `_
- `scipy `_
- `matplotlib `_
- `astropy `_
- `astroquery `_
- `emcee `_
- `corner `_
- `tqdm `_
- `pyFFTW `_ (optional)
- `dynesty `_ (optional)
For development, the following optional packages might be useful:
- `pytest `_
- `pytest-cov `_
- `sphinx `_
- `sphinx-autobuild `_
- `sphinx-autodoc-typehints `_
- `sphinx_rtd_theme `_
- `numpydoc `_
Except for development dependencies, these packages are automatically installed if missing when
installing **oimodeler** via pip.
Checking Installation
---------------------
To check if **oimodeler** is properly installed, run the :ref:`getting_started` guide or try some
examples from the :ref:`notebooks` section.