Go to file
gmatteo bb4ca846b2 Playing with fireworks 2014-09-20 02:53:00 +02:00
abipy Playing with fireworks 2014-09-20 02:53:00 +02:00
dev_scripts cleanup 2014-09-18 18:58:38 +02:00
docs Use IPython.sphinxext 2014-09-14 16:43:59 +02:00
tutorials Update scheduler.yml 2014-05-21 15:41:31 -04:00
.gitignore More unit tests 2014-09-19 04:04:07 +02:00
.pycheckrc Import abipy package from abinit source tree. 2013-06-26 15:35:22 +02:00
.travis.yml Try with miniconda 2014-07-21 03:00:47 +02:00
CHANGELOG Import abipy package from abinit source tree. 2013-06-26 15:35:22 +02:00
INSTALL Import abipy package from abinit source tree. 2013-06-26 15:35:22 +02:00
LICENSE Rationalize doc files 2013-06-26 16:47:14 +02:00
MANIFEST.in Add support for cython extensions in setup.py 2013-11-01 03:28:56 +01:00
README-tests.rst First version of sigresviewer (WX Gui) 2013-07-19 22:52:45 +02:00
README.rst Added PyDispatcher as a dependency in README.rst 2014-05-28 19:06:43 -04:00
TODO.rst Benchmark for MPI-FFT 2014-05-27 05:28:30 +02:00
circle.yml Playing with fireworks 2014-09-20 02:53:00 +02:00
requirements.txt Playing with fireworks 2014-09-20 02:53:00 +02:00
setup.cfg cleanup 2014-09-20 02:31:09 +02:00
setup.py cleanup 2014-09-20 02:31:09 +02:00
tox.ini Import abipy package from abinit source tree. 2013-06-26 15:35:22 +02:00

README.rst

**Official docs:** http://pythonhosted.org/abipy/

Abipy is an open-source library for analyzing the results produced by ABINIT (http://www.abinit.org), 
an open-source program for the ab-initio calculation of the physical properties of materials 
within Density Functional Theory (DFT).
Abipy is written in Python and is designed with the philosophy that you should be able to create 
simple plots with just a few commands.
Check out the the list of plotting scripts available in the 
`examples/plot <http://pythonhosted.org/abipy/examples/plot/index.html>`_ directory.

Abipy is free to use. However, we also welcome your help to improve this library by making your own contributions.  
These contributions can be in the form of additional tools or modules you develop, or even simple things 
such as bug reports. 
Please report any bugs and issues at abipy's `Github page <https://github.com/gmatteo/abipy>`_. 

Getting abipy
=============

Stable version
--------------

The version at the Python Package Index (PyPI) is always the latest stable
release that will be hopefully, be relatively bug-free. 
The easiest way to install abipy is to use easy_install or pip, as follows::

    easy_install abipy

or::

    pip install abipy


**Note**: You may need to install pymatgen before installing abipy as abipy depends on pymatgen 
Besides, abipy required additional dependencies such as netcdf4 and wxpython for the graphical interface.
Users who want to use the graphical interface are suggested to install the required python packages (wxpython)
through one of the following python distributions::

    https://www.enthought.com/products/canopy/


Developmental version
---------------------

The developmental version is at the abipy's `Github repo <https://github.com/gmatteo/abipy>`_. 
The Github version include test files for complete unit testing. 
After cloning the source, you can type::

    python setup.py install

or to install the package in developmental mode::

    python setup.py develop

To run the suite of unittests, make sure you have nose installed and then just type::

    nosetests

in the abipy root directory.


Requirements
============

All required dependencies should be automatically taken care of if you install abipy using easy_install or pip. 
Otherwise, these packages should be available on `PyPI <http://pypi.python.org>`_.

  1. Python 2.7 required (Python 3.0+ not supported) 

  2. pymatgen 2.8.7+

  3. numpy 

  4. matplotlib 1.1+

  5. scipy 0.10+

  6. netCDF4

  7. pyYaml 3.1.0+

The following packages are much easier to install with easy_install:

  #. pyYaml
  #. pyCifRW
  #. pyhull
  #. PyDispatcher

for netcdf4 and hdf see http://www.unidata.ucar.edu/software/netcdf/docs/build_default.html


Optional dependencies
---------------------

Optional libraries that are required if you need certain features:

1. wxPython - For the GUI 
2. wxmplot

Installing wxPython
-------------------

Mac users can download the

Linux users:
    TODO

The directory `abipy.gui.demos` contains demos that can be used to test the installation 
(run the script `runall.py` to have an overview of the different graphical interfaces).


Using abipy
===========

Basic usage
-----------

Here are some quick examples of the core capabilities and objects.
For a more detailed list of the features, look at the 
`example page http://pythonhosted.org/abipy/examples/index.html`_ of the 
official documentation.

.. code-block:: pycon

    >>> from abipy import abilab
    >>>

The above example illustrates only the most basic capabilities of abipy.

.. note:: Examples

    A good way to explore the functionality of abipy is to look at examples.
    We have created a `Github wiki page <https://github.com/gmatteo/abipy/wiki>`_ 
    to allow users to share their Github gists (essentially mini git repos of scripts)
    performing various kinds of functions with abipy. 
    Please feel free to check them out and we welcome your contributions as well!

Advanced Usage
--------------

Users are strongly encouraged to explore the detailed `api docs <http://pythonhosted.org/abipy/api/index.html>`_.

License
=======

Abipy is released under the GNU GPL License. The terms of the license are as follows::

    abipy is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
    the Free Software Foundation, either version 2.1 of the License, or
    (at your option) any later version.

    abipy is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License along with abipy.  
    If not, see <http://www.gnu.org/licenses/>.