Getting started
===============
Installation
------------
MIDAS is available from `PyPI `_,
so can be easily installed using `pip `_ as follows:
.. code-block:: bash
pip install midas-fusion
If pip is not available, you can clone from the GitHub `source repository `_.
Structure of a MIDAS analysis
-----------------------------
The high-level structure of a MIDAS analysis can be broken down as:
* Create a :ref:`DiagnosticModel ` object for each diagnostic which is to be included in the
analysis.
* Specify the prior distribution (or its components) using classes from the
:ref:`midas.priors ` module (or implement your own using the provided base-class.
* Build the parametrisation for the posterior distribution by calling the
``PlasmaState.build_posterior()`` function.
* Use the functions in the :ref:`midas.posterior ` module to evaluate the posterior
distribution, allowing for MAP estimation or sampling.
In subsequent pages we will cover each of these steps in more detail.
Jupyter notebook examples
-------------------------
Annotated example code is available as a jupyter notebook in our
`soft X-ray emission toy example `_.
Additional example notebooks will be added as development progresses!