Skip to main content

Heavy weight plotting tools for ab initio solid-state calculations

Project description

Documentation Status Pypi Repository Build Status JOSS Paper Zenodo Repository

Sumo is a Python toolkit for plotting and analysis of ab initio solid-state calculation data, built on existing Python packages from the solid-state chemistry/physics community. It is hoped that these command-line tools will bring some of the benefits of these libraries to a wider user-base while providing publication-ready plotting (powered by Matplotlib.)

The main features include:

  1. An extensive framework for generating high-symmetry k-point paths.

    • Crystallographic spacegroups are determined using Spglib.

    • Conventional crystallographic paths are built in as well as interfaces to the SeeK-path and Pymatgen implementations.

  2. Plotting scripts for electronic and phonon band structures, density of states, and optical absorption diagrams.

    • VASP calculations are imported using Pymatgen.

    • The Phonopy framework is supported for phonon band structures.

  3. Analysis scripts to calculate parabolic and non-parabolic band effective masses.

    • Curve fitting is performed using Scipy.

The code currently only supports VASP calculations, however, we would like to add support for additional solid-state codes in future releases. Code contributions to interface with these packages are welcome.

Sumo is free to use, however, we ask that you cite the code if you use it in your research. See the “contributing” section for information about reporting bugs and getting involved.

Usage

Sumo is intended to be used via the command-line, however, a fully-documented python API is also provided. A manual, including tutorials and API documentation, is available online. Additionally, the built-in help (-h) option for each command provides a summary of the available options.

A guide to using each command can be found on the Tutorial page.

For a preview of the functionality of sumo, see the Gallery.

Currently, the scripts provided are:

  • sumo-kgen: For generating VASP KPOINTS files along high-symmetry k-point paths.

  • sumo-bandplot: For plotting publication-ready electronic band structure diagrams.

  • sumo-dosplot: For plotting publication-ready electronic density of states diagrams.

  • sumo-optplot: For plotting publication-ready optical absorption diagrams.

  • sumo-phonon-bandplot: For plotting publication-ready phonon band structure diagrams.

  • sumo-bandstats: For calculating electron and hole effective masses from a band structure.

Information on how to tweak the style of sumo plots is provided on the Customising Sumo Plots page.

Installation

Sumo is a Python 3 package and requires a typical scientific Python stack; we recommend using your main package manager if possible (e.g. apt, Homebrew), or Anaconda to install Python 3 with setuptools. It is a good idea to also use this package manager to install Numpy and Matplotlib, as building them with setuptools can be troublesome. Sumo can then be installed using the Python package manager “Pip”, which will automatically setup other Python packages as required:

pip3 install --user sumo

If this is your first entry to the scientific Python ecosystem, be aware that the full stack including Scipy with need several hundred MB of disk space.

Developer installation

Regular users can skip this section!

Sumo can also be installed from a copy of the source repository (https://github.com/smtg-ucl/sumo); this will be preferred for development work or if using experimental code branches.

To clone the project from Github and make a local installation:

git clone https://github.com/smtg-ucl/sumo.git
cd sumo
pip3 install --user -e .

The -e and --user options are recommended: Instead of copying files, with -e pip will create links to the source folder so that that tweaks to the code will be immediately reflected on the PATH. The --user flag installs to a directory in your home folder (usually under the hidden directory ~/.local), preventing interference with your root Python installation.

Tests

From a developer installation, the unit tests can be run (from the root directory of the project) using:

python3 -m unittest discover tests

Automatic testing is run on the master branch of Sumo and proposed features at https://travis-ci.org/SMTG-UCL/sumo .

Documentation

To build the documentation from the project files, install sumo with extra Sphinx dependencies before compiling with make:

pip3 install --user .[docs]
cd docs
make html

The user guide can then be explored from docs/build/html/index.html.

License

Sumo is made available under the MIT License.

Detailed requirements

Sumo is currently compatible with Python 3.5+ and relies on a number of open-source python packages, specifically:

Contributing

Bugs reports and feature requests

There are probably still some bugs. If you think you’ve found one, please report it on the Issue Tracker. This is also the place to propose ideas for new features or ask questions about the design of Sumo. Poor documentation is considered a bug, but please be as specific as possible when asking for improvements.

Code contributions

We welcome your help in improving and extending the package with your own contributions. This is managed through Github pull requests; for external contributions we prefer the “fork and pull” workflow while core developers use branches in the main repository:

  1. First open an Issue to discuss the proposed contribution. This discussion might include how the changes fit Sumo’s scope and a general technical approach.

  2. Make your own project fork and implement the changes there. Please keep your code style compliant with PEP8.

  3. Open a pull request to merge the changes into the main project. A more detailed discussion can take place there before the changes are accepted.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sumo-1.1.1.tar.gz (62.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sumo-1.1.1-py2.py3-none-any.whl (85.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file sumo-1.1.1.tar.gz.

File metadata

  • Download URL: sumo-1.1.1.tar.gz
  • Upload date:
  • Size: 62.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.0 CPython/3.6.5

File hashes

Hashes for sumo-1.1.1.tar.gz
Algorithm Hash digest
SHA256 7e10abf807972c154b4d7cab5693d52d481f98382fb7ef50f993a976b259cf0c
MD5 b8f77993e193e7792f08ed5ea81af2d7
BLAKE2b-256 e9bbf15c12c32aeeffc00acb7dde6f1eff9015b7c26dbafffe839aa0fb8da2a2

See more details on using hashes here.

File details

Details for the file sumo-1.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: sumo-1.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 85.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.0 CPython/3.6.5

File hashes

Hashes for sumo-1.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 aa64eaf68828d594a02e625b43b1eaabb991f466c6426eff49dbf45c3e6815d3
MD5 8e6a83351850e1551f8c61346a6f452c
BLAKE2b-256 e83cd55799ede5cf099cf3e0e5405e2f5af19ee8dc2777f8845d0f4d8758b70d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page