File: formula.rst

package info (click to toggle)
python-ase 3.26.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,484 kB
  • sloc: python: 148,112; xml: 2,728; makefile: 110; javascript: 47
file content (19 lines) | stat: -rw-r--r-- 462 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.. module:: ase.formula

Chemical formula type
=====================

The :class:`~Formula` type collects all formula manipulation functionality
in one place (see examples below).

The following string formats are supported:

.. csv-table::
   :file: formats.csv
   :header-rows: 1

.. autoclass:: Formula
    :members:
    :member-order: bysource
    :special-members: __format__, __contains__, __getitem__,
       __eq__, __divmod__, __add__, __mul__, __len__