Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Python package to setup, process and analyse solid-state defect calculations with VASP
doped
is a Python software for the generation, pre-/post-processing and analysis of defect supercell calculations, implementing the defect simulation workflow in an efficient, reproducible, user-friendly yet powerful and fully-customisable manner.
Tutorials showing the code functionality and usage are provided on the docs site, and an overview of the key advances of the package is given in the JOSS paper.
All features and functionality are fully-customisable:
VASP
& other DFT/force-field codes).Python
Interface: Fully-customisable, modular Python
API. Plug-and-play w/ShakeNBreak
– defect structure-searching, easyunfold
– band unfolding, CarrierCapture.jl
/nonrad
– non-radiative recombination etc.
(a) Optimal supercell generation comparison. (b) Charge state estimation comparison. Example (c) Kumagai-Oba (eFNV) finite-size correction plot, (d) defect formation energy diagram, (e) chemical potential / stability region, (f) Fermi level vs. annealing temperature, (g) defect/carrier concentrations vs. annealing temperature and (h) Fermi level / carrier concentration heatmap plots from doped
. Automated plots of (i,j) single-particle eigenvalues and (k) site
displacements from DFT supercell calculations. See the JOSS paper for more details.
pip install doped # install doped and dependencies
conda install -c conda-forge spglib # bundle C libraries with spglib
Note that either conda install -c conda-forge spglib
or
pip install git+https://github.com/spglib/spglib --config-settings=cmake.define.SPGLIB_SHARED_LIBS=OFF
should be used after pip install doped
, which ensures that the correct C libraries are bundled with
spglib
, to prevent unnecessary warnings.
Alternatively if desired, doped
can also be installed from conda
with:
conda install -c conda-forge doped
pip install pydefect # pydefect not available on conda, so needs to be installed with pip or otherwise, if using the eFNV correction
If you haven't done so already, you will need to set up your VASP POTCAR
files and Materials Project
API with pymatgen
using the .pmgrc.yaml
file, in order for doped
to automatically generate VASP input files for defect calculations and determine competing phases for chemical potentials.
See the docs Installation page for details on this.
If you use doped
in your research, please cite:
ShakeNBreak
As shown in the doped
tutorials, it is highly recommended to use the ShakeNBreak
approach when calculating point defects in solids, to ensure you have identified the groundstate structures of your defects. As detailed in the theory paper, skipping this step can result in drastically incorrect formation energies, transition levels, carrier capture (basically any property associated with defects). This approach is followed in the doped example notebook, with a more in-depth explanation and tutorial given on the ShakeNBreak website.
doped
, so fardoped
(née DefectsWithTheBoys
#iykyk) has benefitted from feedback from many users, in particular
members of the Scanlon and Walsh research groups who have used / are using it in their work. Direct contributors are listed in the Contributors
sidebar above; including Seán Kavanagh, Alex Squires, Adair Nicolson, Irea Mosquera-Lois, Alex Ganose, Bonan Zhu, Katarina Brlec, Sabrine Hachmioune and Savya Aggarwal.
doped
was originally based on the excellent PyCDT
(no longer maintained), but transformed and morphed over time as more and more functionality was added. After breaking changes in pymatgen
, the package was entirely refactored and rewritten, to work with the new
pymatgen-analysis-defects
package.
FAQs
Python package to setup, process and analyse solid-state defect calculations with VASP
We found that doped demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.