Catalog PyPI
Back to packageRELEASE DETAILS

3.0.0

PyPI

aiida-ase

The official AiiDA plugin for ASE.

aiidaaseworkflows
Published4 Oct 2023
Direct dependencies12
Transitive dependenciesNot calculated

README

Version 3.0.0 documentation

aiida-ase

AiiDA plugin for ASE

Installation

  1. From PyPI
pip install aiida-ase
  1. From this repository (useful for development):
git clone https://github.com/aiidateam/aiida-ase
pip install -e aiida-ase

Usage

The main goal of this plugin is to be a wrap around for ASE.

To make it easy to setup the calculation generate a builder as follows

AseCalculation = CalculationFactory('ase.ase')
builder = AseCalculation.get_builder()

The main parameters for the builder that need to be specified are:

  1. Code
from aiida.orm import load_code
code = load_code('your-code-here@your-computer-here')
builder.code = code

NOTE: If using GPAW, there are two possibilities to set up the calculator a. Specify the Python executable with specific module loaded for GPAW b. Specify directly the GPAW executable. In this case a CMDLINE parameter will be needed (see below).

  1. Structure
builder.structure = structure
  1. k-points data
kpoints = KpointsData()
kpoints.set_kpoints_mesh([2,2,2])  # choose the right mesh here
builder.kpoints = kpoints
  1. Parameters

An example parameter set for GPAW is shown here in parts. See the examples folder for specific examples for other functionality (will be constantly updated).

Define a calculator for a PW calculation with GPAW. Here the name of the calculator is set to GPAW, args is the equivalent of arguments passed into the calculator used in ASE. Note that the @function functionality enables passing arguments to a function inside the calculators. In this example the equivalent ASE command is PW(300). Other arguments such as convergence and occupations can be added.

calculator = {
    'name': 'gpaw',
    'args': {
    'mode': {
        '@function': 'PW',
        'args': {'ecut': 300}
    },
    'convergence': {
        'energy': 1e-9
    },
    'occupations': {
        'name': 'fermi-dirac',
        'width':0.05
    }
}

Add here tags that will be written as atoms.get_xyz(), so for example the first item will be atoms.get_temperature().

atoms_getters = [
    'temperature',
    ['forces', {'apply_constraint': True}],
    ['masses', {}],
]

Some addition utility functions are:

  1. pre_lines: list of lines to added to the start of the python file
  2. post_lines: list of lines to added to the end of the python file
  3. extra_imports: list of extra imports as separated strings, for example ["numpy", "array"] will lead to from numpy import array

Note about choosing a code

  1. If using GPAW it is possible to run parallel calculations using /path/to/execut/gpaw python run_gpaw.py. Set up the code through AiiDA by adding in the gpaw executable. The add the python tag using the command line option
settings = {'CMDLINE': ['python']}
builder.settings = orm.Dict(settings)
  1. If the code you are interested in is present in this plugin registry it might make more sense to use that https://aiidateam.github.io/aiida-registry/

Documentation

The documentation for this package can be found on Read the Docs at http://aiida-ase.readthedocs.io/en/latest/

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 12

Native requirements
12 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
aiida-core
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
aiida-core~=2.0runtime
ase
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
aseruntime
sphinx
Environment
{
  "extras": "",
  "marker": "extra == \"docs\"",
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
sphinx ; extra == "docs"runtime
sphinx-autoapi
Environment
{
  "extras": "",
  "marker": "extra == \"docs\"",
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
sphinx-autoapi ; extra == "docs"runtime
sphinx-book-theme
Environment
{
  "extras": "",
  "marker": "extra == \"docs\"",
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
sphinx-book-theme ; extra == "docs"runtime
sphinx-click
Environment
{
  "extras": "",
  "marker": "extra == \"docs\"",
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
sphinx-click ; extra == "docs"runtime
sphinx-copybutton
Environment
{
  "extras": "",
  "marker": "extra == \"docs\"",
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
sphinx-copybutton ; extra == "docs"runtime
pre-commit
Environment
{
  "extras": "",
  "marker": "extra == \"pre-commit\"",
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
pre-commit ; extra == "pre-commit"runtime
pylint
Environment
{
  "extras": "",
  "marker": "extra == \"pre-commit\"",
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
pylint ; extra == "pre-commit"runtime
pgtest
Environment
{
  "extras": "",
  "marker": "extra == \"tests\"",
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
pgtest ; extra == "tests"runtime
pytest
Environment
{
  "extras": "",
  "marker": "extra == \"tests\"",
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
pytest ; extra == "tests"runtime
pytest-regressions
Environment
{
  "extras": "",
  "marker": "extra == \"tests\"",
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
pytest-regressions ; extra == "tests"runtime

Distribution files

2 collected
aiida_ase-3.0.0-py3-none-any.whl

bdist_wheel · 14.85 KB · Python py3

Source file
aiida_ase-3.0.0.tar.gz

sdist · 15.15 KB · Python source

Source file

Repository

PENDING
aiidaplugins/aiida-ase

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 10:56 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:b1523ec4d89d0e35da13ed0a53d61c8ee702002f67f61bb8bda83c4c9fa8676c

Other collected versions

View all collected versions →