Skip to content

Commit

Permalink
doc updates.
Browse files Browse the repository at this point in the history
Former-commit-id: 261023787fad33334de1f722043546e0e32abf60 [formerly 92d4281]
Former-commit-id: ed8034b049654f67f1062fc0203ee16676ec5aba
  • Loading branch information
shyuep committed Sep 12, 2014
1 parent 2e530b4 commit 8127526
Show file tree
Hide file tree
Showing 10 changed files with 318 additions and 72 deletions.
22 changes: 22 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
Change log
==========

v3.0.0
------
* Pymatgen is now completely Python 2.7 and Python 3.x compatible!
* Spglib and pyhull have been updated to support Python 3.x.
* Completely rewritten pure python cifio module (courtesy of William Davidson
Richards) removed dependency on PyCIFRW, which has been causing many issues
with installation.
* Structure and Molecule now supports a very convenient to() and from_str and
from_file functionality. Instead of trying to load the appropriate parser,
you can output and read from the appropriate formats directly. See example
usage.
* ~50% speedup to LinearAssignment code.
* Continuous integration and contribution guidelines now include Python 3.
* **Backwards incompatible changes**
* matgenie.py has now been renamed simply "pmg" for brevity.
* All deprecated methods in pymatgen 2.x have been removed. E.g.,
pymatgen.core.structure_modifier is no longer available.
* Pymatgen classes now uses the as_dict() method protocol implemented in the
Monty package. The to_dict property is now deprecated and will be removed
in pymatgen v3.1.
* Update main docs page examples with the new Structure to, from formats.

v2.10.6
-------
* Bug fix for np1.9 incompatibility. Now works.
Expand Down
128 changes: 106 additions & 22 deletions docs/_static/Basic functionality.html

Large diffs are not rendered by default.

139 changes: 120 additions & 19 deletions docs/_static/Molecule.html

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions docs/change_log.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
Change log
==========

v3.0.0
------
* Pymatgen is now completely Python 2.7 and Python 3.x compatible!
* Spglib and pyhull have been updated to support Python 3.x.
* Completely rewritten pure python cifio module (courtesy of William Davidson
Richards) removed dependency on PyCIFRW, which has been causing many issues
with installation.
* Structure and Molecule now supports a very convenient to() and from_str and
from_file functionality. Instead of trying to load the appropriate parser,
you can output and read from the appropriate formats directly. See example
usage.
* ~50% speedup to LinearAssignment code.
* Continuous integration and contribution guidelines now include Python 3.
* **Backwards incompatible changes**
* matgenie.py has now been renamed simply "pmg" for brevity.
* All deprecated methods in pymatgen 2.x have been removed. E.g.,
pymatgen.core.structure_modifier is no longer available.
* Pymatgen classes now uses the as_dict() method protocol implemented in the
Monty package. The to_dict property is now deprecated and will be removed
in pymatgen v3.1.
* Update main docs page examples with the new Structure to, from formats.

v2.10.6
-------
* Bug fix for np1.9 incompatibility. Now works.
Expand Down
9 changes: 7 additions & 2 deletions docs/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,17 @@ following must be satisfied for your contributions to be accepted into pymatgen.
We allow a few exceptions when they are well-justified (e.g., Element's
atomic number is given a variable name of capital Z, in line with accepted
scientific convention), but generally, PEP 8 must be observed.
3. **Documentation** required for all modules, classes and methods. In
3. **Python 3**. All code should seamless work with Python 2.7 and Python 3.x.
Please read Python's official guidelines on how to write Python 3.x
compatible code, including the usage of the "six" package. It is recommended
that you install the "python-modernize" package and run it before submitting
any pull requests.
4. **Documentation** required for all modules, classes and methods. In
particular, the method docstrings should make clear the arguments expected
and the return values. For complex algorithms (e.g., an Ewald summation), a
summary of the alogirthm should be provided, and preferably with a link to a
publication outlining the method in detail.
4. **IDE**. We highly recommend the use of Eclipse + PyDev or PyCharm. You
5. **IDE**. We highly recommend the use of Eclipse + PyDev or PyCharm. You
should also set up pylint and pep8 and turn those on within the Eclipse
PyDev setup. This will warn of any issues with coding styles.

Expand Down
26 changes: 13 additions & 13 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@ API documentation
For detailed documentation of all modules and classes, please refer to the
:doc:`API docs </modules>`.

matgenie.py - Command line tool
-------------------------------
pmg - Command line tool
-----------------------

To demonstrate the capabilities of pymatgen and to make it easy for users to
quickly use the functionality, pymatgen comes with a set of useful scripts
Expand All @@ -347,46 +347,46 @@ installed to your path by default when you install pymatgen through the
typical installation routes.

Here, we will discuss the most versatile of these scripts, known as
matgenie.py. The typical usage of matgenie.py is::
pmg. The typical usage of pmg is::

matgenie.py {analyze, plotdos, plotchgint, convert, symm, view, compare} additional_arguments
pmg {analyze, plotdos, plotchgint, convert, symm, view, compare} additional_arguments

At any time, you can use ``"matgenie.py --help"`` or ``"matgenie.py subcommand
At any time, you can use ``"pmg --help"`` or ``"pmg subcommand
--help"`` to bring up a useful help message on how to use these subcommands.
Here are a few examples of typical usages::

#Parses all vasp runs in a directory and display the basic energy
#information. Saves the data in a file called vasp_data.gz for subsequent
#reuse.

matgenie.py analyze .
pmg analyze .

#Plot the dos from the vasprun.xml file.

matgenie.py plotdos vasprun.xml
pmg plotdos vasprun.xml

#Convert between file formats. The script attempts to intelligently
#determine the file type. Input file types supported include CIF,
#vasprun.xml, POSCAR, CSSR. You can force the script to assume certain file
#types by specifying additional arguments. See matgenie.py convert -h.
#types by specifying additional arguments. See pmg convert -h.

matgenie.py convert input_filename output_filename.
pmg convert input_filename output_filename.

#Obtain spacegroup information.

matgenie.py symm -s filename1 filename2
pmg symm -s filename1 filename2

#Visualize a structure. Requires VTK to be installed.

matgenie.py view filename
pmg view filename

#Compare two structures for similarity

matgenie.py compare filename1 filename2
pmg compare filename1 filename2

#Generate a POTCAR with symbols Li_sv O and the PBE functional

matgenie.py generate --potcar Li_sv O --functional PBE
pmg generate --potcar Li_sv O --functional PBE

ipmg - A Custom ipython shell
-----------------------------
Expand Down
28 changes: 21 additions & 7 deletions docs/latest_changes.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
Change log
==========

v2.10.6
-------
* Bug fix for np1.9 incompatibility. Now works.
* Use wheel for pymatgen deployments.
* matgenie.py is now renamed to pmg for faster CLI usage.
* Improvements to KPOINTS automatic generation.
* Simpler and faster Structure.get_all_neighbors
v3.0.0
------
* Pymatgen is now completely Python 2.7 and Python 3.x compatible!
* Spglib and pyhull have been updated to support Python 3.x.
* Completely rewritten pure python cifio module (courtesy of William Davidson
Richards) removed dependency on PyCIFRW, which has been causing many issues
with installation.
* Structure and Molecule now supports a very convenient to() and from_str and
from_file functionality. Instead of trying to load the appropriate parser,
you can output and read from the appropriate formats directly. See example
usage.
* ~50% speedup to LinearAssignment code.
* Continuous integration and contribution guidelines now include Python 3.
* **Backwards incompatible changes**
* matgenie.py has now been renamed simply "pmg" for brevity.
* All deprecated methods in pymatgen 2.x have been removed. E.g.,
pymatgen.core.structure_modifier is no longer available.
* Pymatgen classes now uses the as_dict() method protocol implemented in the
Monty package. The to_dict property is now deprecated and will be removed
in pymatgen v3.1.
* Update main docs page examples with the new Structure to, from formats.
6 changes: 6 additions & 0 deletions docs/pymatgen.analysis.pourbaix.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
pymatgen.analysis.pourbaix package
==================================

Subpackages
-----------

.. toctree::


Submodules
----------

Expand Down
8 changes: 0 additions & 8 deletions docs/pymatgen.core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,6 @@ pymatgen.core.structure module
:undoc-members:
:show-inheritance:

pymatgen.core.structure_modifier module
---------------------------------------

.. automodule:: pymatgen.core.structure_modifier
:members:
:undoc-members:
:show-inheritance:

pymatgen.core.surface module
----------------------------

Expand Down
2 changes: 1 addition & 1 deletion pymatgen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"Sai Jayaraman", "Michael Kocher", "Dan Gunter",
"Shreyas Cholia", "Vincent L Chevrier",
"Rickard Armiento"])
__date__ = "Sep 10 2014"
__date__ = "Sep 12 2014"
__version__ = "3.0.0"

#Useful aliases for commonly used objects and modules.
Expand Down

0 comments on commit 8127526

Please sign in to comment.