Skip to main content

octopuspy

Build Status Test Coverage

octopuspy is a Python package that allows for the manipulation and processing of files generated by the Octopus DFT scientific program. This package was created with the intent of using with the effmass package.

Installation

octopuspy can be installed from PyPI:

pip install octopuspy

Or download the source code and install:

git clone https://github.com/afatt/octopuspy.git
cd octopuspy
python3 setup.py install

How To Use

Required Octopus files: bandstructure, info, results.out(typically out.log), eigenvalues, and total-dos-efermi.dat

API

bandstructure file includes: number of kpoints, number of bands, energies:

band_data = Bandstructure(filepath='./GaAs_HSE06', name='GaAs_HSE06_04092021')

info file includes: direct lattice vector, reciprocal lattice vector, and number of ions:

info_data = Info(filepath='./GaAs_HSE06')

results.out file includes: kpoint weights. results.out is obtained by redirecting the stdout to a new file named results.out when running Octopus.Octopus > results.out. More explanation found on the Octopus wiki here

results_out = Results(filepath='./GaAs_HSE06', band_data.num_kpoints)

Scripts

The octopuspy package includes the script octo2vasp.py for converting the bandstructure, info, results.out, eigenvalues files into VASP PROCAR and OUTCAR files.⚠️ The PROCAR and OUTCAR files generated are not true VASP files, they contain only the minimum data required to use in the effmass package.

Copy your Octopus files: bandstructure, info, results.out, and eigenvalues into a new folder anywhere inside the octopuspy package and run:

cd scripts
python3 octo2vasp.py --name name_of_semiconductor

The octo2vasp.py script will write the PROCAR, OUTCAR, and a bandstructure_plot.png to the gen_vasp folder inside the octopuspy package.

Garbage in equals garbage out and testing this package produced a lot of garbage. Included with this package are Octopus settings that helped to achieve results matching the literature anotated_example_inp. The inp file is also included with each set of /test_data for reference. More information about input settings can be found on the Octopus wiki here

Testing

Unittests are included with this package and can be run using:

python3 -m unittest discover

Metadata

Release files for octopuspy 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for octopuspy 1.0.3
File Size Uploaded Provenance Actions
octopuspy-1.0.3.tar.gz 12.3 kB Without provenance Details for octopuspy-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for octopuspy 1.0.3
File Interpreter ABI Platform Actions
octopuspy-1.0.3-py3-none-any.whl Python 3 none any Details for octopuspy-1.0.3-py3-none-any.whl

Total release size: 29.5 kB

Release files / octopuspy-1.0.3.tar.gz

Download URL octopuspy-1.0.3.tar.gz
Size 12.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7635335d8c2939dedf569bfaa2619416fc170a3154f9a39f5fc5e5c75839b128
BLAKE2b-256 checksum
How to use checksums
984e9a4a8a81378101e5790353a8191b22248ec275217acf8b25766f113fbb6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.5

Release files / octopuspy-1.0.3-py3-none-any.whl

Download URL octopuspy-1.0.3-py3-none-any.whl
Size 17.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8046a870b5cfa36a97209d737925b0625a2d4a8cd6e9ed66e9e5a92b2fcb0d47
BLAKE2b-256 checksum
How to use checksums
217c5e46a59c3aaaf31187a44adfbaa075bc7013b05011d2cc26053ccd3fa155
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.5

Security for octopuspy 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files No provenance

1.0.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page