<commit_before>OPEN
====

Tools for exoplanet detection.


Dependencies
------------

OPEN depends on the following Python packages:

   * [Numpy](http://www.numpy.org/), [matplotlib](http://matplotlib.org/), [IPython](http://ipython.org/), [Scipy](http://scipy.org/)

Different versions of these packages should not be causing problems. Nevertheless, OPEN is being developed with Numpy 1.9.1, Matplotlib 1.4.2, IPython 2.2.0 and Scipy 0.14.0 and so these versions are the ones officially supported. Please [file an issue](https://github.com/j-faria/OPEN/issues) if you notice any problems with older versions.

OPEN also depends on a fairly recent version of the [GNU Compiler Collection](https://gcc.gnu.org/) to compile Fortran routines and Python extensions. An easy way to obtain all the compiler/library dependencies [Note: only for 64-bit systems] is to use the [MESA SDK](http://www.astro.wisc.edu/~townsend/static.php?ref=mesasdk) and specify the path to `gfortran` during installation (see below).
 
 
   * Other non-Python packages

Quickstart
----------

The easiest way to download OPEN is by using `git`. Open a terminal and run

    git clone --recursive <EMAIL>:j-faria/OPEN.git

which will create a directory `OPEN` containing the code (and the MultiNest submodule). Currently there is no other way to obtain the MultiNest submodule. This is a [known issue](https://github.com/j-faria/OPEN/issues/6).

To install OPEN, go into the directory you just created and type

    $ [cd OPEN]
    $ python scons/scons.py



Implementation details
----------------------

At its core, OPEN is just an IPython shell enhanced with a few custom magic functions. 
You might be familiar with magic functions, things like ```%cd```, ```%run``` or ```%timeit```. These can
often be called without the leading '%' from within IPython and offer a convenient way <commit_msg>Upda<commit_after>OPEN
====

Tools for exoplanet detection.


Dependencies
------------

OPEN depends on the following Python packages:

   * [Numpy](http://www.numpy.org/), [matplotlib](http://matplotlib.org/), [IPython](http://ipython.org/), [Scipy](http://scipy.org/)

Different versions of these packages should not be causing problems. Nevertheless, OPEN is being developed with Numpy 1.9.1, Matplotlib 1.4.2, IPython 2.2.0 and Scipy 0.14.0 and so these versions are the ones officially supported. Please [file an issue](https://github.com/j-faria/OPEN/issues) if you notice any problems with older versions.

OPEN also depends on a fairly recent version of the [GNU Compiler Collection](https://gcc.gnu.org/) to compile Fortran routines and Python extensions. An easy way to obtain all the compiler/library dependencies [Note: only for 64-bit systems] is to use the [MESA SDK](http://www.astro.wisc.edu/~townsend/static.php?ref=mesasdk) and specify the path to `gfortran` during installation (see below).


Quickstart
----------

The easiest way to download OPEN is by using `git`. Open a terminal and run

    git clone --recursive <EMAIL>:j-faria/OPEN.git

which will create a directory `OPEN` containing the code (and the MultiNest submodule). Currently there is no other way to obtain the MultiNest submodule. This is a [known issue](https://github.com/j-faria/OPEN/issues/6).

To install OPEN, go into the directory you just created and type

    $ [cd OPEN]
    $ python scons/scons.py

or, if you are using `gfortran` from the MESA SDK,

    $ python scons/scons.py --gfortran=/path/to/mesasdk/bin/gfortran

Troubleshooting
---------------

If the build succeds without errors but when you run `python open.py` you get the error
  
    ImportError: /home/joao/OPEN/OPEN/ext/gp.so: undefined symbol: dpotrf_

you need to install LAPACK as a shared library (for example: `apt-get install liblapack-dev`) and re-build OPEN with the command

    $ python scons/scons.py --gp-with-lapack




Implementation details
----------------------

At its core, OPEN is just an IPython shell enhanced with a few custom magic functions. 
You might be familiar with magic functions, things like ```%cd```, ```%run``` or ```%timeit```. These can
often be called without the leading '%' from within IPython and offer a convenient way 
{'fraction_non_alphanumeric': 0.12095238095238095, 'fraction_numerical': 0.007619047619047619, 'mean_word_length': 3.636865342163355, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1386093', 'n_tokens_mistral': 1263, 'n_tokens_neox': 1199, 'n_words': 511}