Skip to main content

PyQAlloy-compatible Model for RMSAD prediction based on Tandoc 2023 (https://doi.org/10.1038/s41524-023-00993-x)

Project description

Lattice-Distortion

Release: PyPI

Compatible with: PyPI - Python Version

Tests: small runtime test

License: License: LGPL v3

This Fork

This small repository is a lightweight fork version of the original one by Tandoc. It is only slightly modified to fit automated pipelines of the ULTERA Database (ultera.org) infrastrcutre, which expects model.py script with predict(comp: pymatgen.Composition) and predict(comp: str) function returning an ordered array of output numbers or a labeled dictionary of them.

Output Order: [rmsad_Tandoc2023]

Output Meaning (all based on 10.1038/s41524-023-00993-x):

  • rmsad_Tandoc2023 - Root Mean Squared Atomic Displacement in the units of Angstrom

Install and Use

There are no dependencies beyond a fairly recent pymatgen (>=2022.1.9). You need to simply

pip install pqam-rmsadtandoc2023

and you should be good to go! Then you can run it on your compositions in Python like

from pqam-rmsadtandoc2023 import predict

print(predict('Mo25 Nb25 Hf50'))
print(predict('MoNbHf'))
print(predict('Mo33.3 Nb33.3 Hf33.3'))

or from command line like

python -c "import pqam_rmsadtandoc2023 as m;print(m.predict('Mo25 Nb25 Hf50'));print(m.predict('MoNbHf'));print(m.predict('Mo33.3 Nb33.3 Hf33.3'))"

Original README by Tandoc

This repository contains relevant code and data for "Mining lattice distortion, strength, and intrinsic ductility of refractory high-entropy alloys using physics-informed >statistical learning" by Christopher Tandoc, Yong-Jie Hu, Liang Qi, and Peter K. Liaw to be published in npj Computational Materials

RMSAD_tool.py is a linux command line script written in python that takes a chemical composition in the form of a text string and prints the lattice distortion in angstroms.

example usgage: ./RMSAD_tool.py Ti0.5V0.5

-This script uses pymatgen (https://pymatgen.org/) to process the input string and is thus a requirement for the script to work. Depending on the version of pymatgen you have >installed, lines 3 and 380 may need to be modified (https://matsci.org/t/python-problem-with-pymatgen/35720) -numpy (https://numpy.org/) is also a dependency -This tool is currently only able to make predictions for compositions containing Ti,Zr,Hf,V,Nb,Ta,Mo,W,Re,Ru and will return an error if any other elements are present in >the input -B2 and elemental feature data are defined in dictionaries at the beginning of the code

training.ipynb and training_data.csv contains code and data to reproduce the rmsad model training that was performed in the paper -jupyter notebook is needed to open training.ipynb, dependencies are numpy, pymatgen, matplotlib (https://matplotlib.org/), pandas (https://pandas.pydata.org/), and >sklearn(https://scikit-learn.org/stable/)

Miscellaneous

Last maintenance check: January 22nd, 2024

Project details


Download files

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

Source Distribution

pqam_rmsadtandoc2023-0.1.4.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

pqam_rmsadtandoc2023-0.1.4-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file pqam_rmsadtandoc2023-0.1.4.tar.gz.

File metadata

  • Download URL: pqam_rmsadtandoc2023-0.1.4.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for pqam_rmsadtandoc2023-0.1.4.tar.gz
Algorithm Hash digest
SHA256 599369bd9e7cab4da09e0f32749d77060cf02fe33c6c89f95d1c21b1c1e3f64d
MD5 872ff7070f7aad1b073dec757f42f32f
BLAKE2b-256 467f3bc8eeccf82d31a57f41ff33b294950eb12c068195ae97f0cfe013a4c9cb

See more details on using hashes here.

File details

Details for the file pqam_rmsadtandoc2023-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for pqam_rmsadtandoc2023-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 54d2ee91d0c02e9aacf963081fbebadebe35341a251b9e756c81429bedb48e70
MD5 204d1d08af7c0b714bfc239743b8be6b
BLAKE2b-256 69451c72a07db31ec4f854d38ae4ebe14a5b35d5304dcdaf7d22c7b72164cf0c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page