Metadata-Version: 2.2
Name: conan-exoplanet
Version: 3.3.4
Summary: COde for exoplaNet ANalysis
Author-email: Babatunde Akinsanmi <tunde.akinsanmi@unige.ch>, Monika Lendl <monika.lendl@unige.ch>
Maintainer-email: Babatunde Akinsanmi <tunde.akinsanmi@unige.ch>
Project-URL: Homepage, https://github.com/titans-ge/CONAN
Project-URL: Repository, https://github.com/titans-ge/CONAN
Project-URL: Documentation, https://conan-exoplanet.readthedocs.io/en/latest/
Project-URL: Changelog, https://github.com/titans-ge/CONAN/blob/main/change_log.rst
Project-URL: Issues, https://github.com/titans-ge/CONAN/issues
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy
Requires-Dist: chainconsumer==1.1.2
Requires-Dist: scipy
Requires-Dist: pandas
Requires-Dist: lmfit
Requires-Dist: dynesty
Requires-Dist: astropy
Requires-Dist: astroquery
Requires-Dist: celerite
Requires-Dist: corner
Requires-Dist: lightkurve
Requires-Dist: dill
Requires-Dist: dace_query
Requires-Dist: matplotlib
Requires-Dist: emcee
Requires-Dist: george
Requires-Dist: ldtk==1.7.0
Requires-Dist: tqdm
Requires-Dist: spleaf
Requires-Dist: numba
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: batman-package; extra == "test"
Requires-Dist: radvel; extra == "test"

[![Python package](https://github.com/titans-ge/CONAN/actions/workflows/python-package.yml/badge.svg)](https://github.com/titans-ge/CONAN/actions/workflows/python-package.yml)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/conan-exoplanet)
[![Upload Python Package](https://github.com/titans-ge/CONAN/actions/workflows/python-publish-pypi.yml/badge.svg)](https://github.com/titans-ge/CONAN/actions/workflows/python-publish-pypi.yml)
![PyPI - Version](https://img.shields.io/pypi/v/conan-exoplanet)


# CONAN
**CO**de for exopla**N**et **AN**alysis: A flexible bayesian framework for modeling heterogeneous exoplanet data

### Installation
To avoid requirement conflicts with other packages, it is better to create a new environment (or clone a current environment) to install CONAN


To create a new environment:
```bash
conda create -n conan_env python=3.10
```
then
```
conda activate conan_env
```

CONAN can be installed using different methods: 

- (1) Installing from PyPI:
    ```
    pip install conan-exoplanet
    ```
or

- (2) Downloading the source files from github: 
    ```
    git clone https://github.com/titans-ge/CONAN.git
    cd CONAN 
    ```

    then running
    ```
    pip install .
    ```

or 

- (3) directly using pip to install from github
    ```
    pip install git+https://github.com/titans-ge/CONAN.git#egg=CONAN
    ```
    Note that a folder 'src' is created where the CONAN source files are downloaded to before installation.


If having troubles compiling the fortran code used for the transit model, set `NO_FORTRAN=True` in terminal before pip installing. This uses a python implementation of the fortran code (which is ~30X slower)

```
export NO_FORTRAN=True
pip install git+https://github.com/titans-ge/CONAN.git#egg=CONAN
```

-------------------------
See recent changes in [change_log.rst](https://github.com/titans-ge/CONAN/blob/main/change_log.rst)


### Fit from config file 
Fit can be launched from a config file within `python` or from the `command line`

- Within `python`
    ```
    from CONAN import fit_configfile
    result = fit_configfile("input_config.dat", out_folder="output")
    ```
- from `command line`: 
    ```
    conanfit path/to/config_file output_folder 
    ```

    to see commandline help use:
    ``` 
    conanfit -h  
    ```
