Skip to main content

AiiDA plugin for running and parsing Octopus calculations

Project description

AiiDA Plugin for Octopus

This repository contains an AiiDA plugin for running Octopus calculations and parsing the retrieved results back into AiiDA data nodes. This is a first version and only supports running serial ground-state calculations, with parsing of convergence and forces.

Development

The dockerfile uses AiiDA's docker image as the base layer:

docker pull aiidateam/aiida-core-with-services:latest

which automatically sets up the postgres database. One can check the docker logs or run verdi status to get the status of the services. AiiDA has some documentation on developing in docker here. The development environment containing AiiDA, octopus, Postopus and this plugin can be built with docker compose:

docker compose build
# Or for the older version of compose
docker-compose-v1 build

and interactively run with:

docker compose run --rm app
# Or for the older version of compose
docker-compose-v1 run --rm app

After initialising the container, mount a local development version of Postopus:

# Install postopus from the mounted directory
pip install -e /workspace/postopus/.

ensuring your .env is configured correctly. If the main release of Postopus contains all the necessary functionality, one can alternatively skip mounting and installing - the octopus AiiDA plugin will install it as a dependency.

Finally, install this project:

# Install the octopus AiiDA plugin. 
pip install -e .
pip install -e .[tests]

and run the tests in the container (from /workspace/aiida-plugin) with:

pytest

If a test is not written with pytest, then it should be run through verdi:

verdi run path/to/launch.py  

Release

Build distributions locally with:

pip install -e .[release]
python -m build
python -m twine check dist/*

Upload to TestPyPI or PyPI with:

python -m twine upload --repository testpypi dist/*
# or
python -m twine upload dist/*

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

aiida_octopus-0.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file aiida_octopus-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: aiida_octopus-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for aiida_octopus-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3141bccad56d7e6e6a051e454fb57b1af9d98694be43ebf12dc24e904c8788e2
MD5 8e3484bb324150a9ea0fa51e4aad8b23
BLAKE2b-256 a93517a3533bb4060489536801a4e58226e39a1ac690e4fde74b619a9c0cfb93

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