Skip to main content

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 (with extra checks) 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 corresponding to the machine-readible definition under outputDefinition.json.

Chemical Space: ["Ti", "Zr", "Hf", "V", "Nb", "Ta", "Mo", "W", "Re", "Ru"]

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

Metadata

Release files for pqam-rmsadtandoc2023 0.1.6

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

Source distribution (sdist)

Source distribution for pqam-rmsadtandoc2023 0.1.6
File Size Uploaded Provenance
pqam_rmsadtandoc2023-0.1.6.tar.gz 10.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pqam-rmsadtandoc2023 0.1.6
File Interpreter ABI Platform
pqam_rmsadtandoc2023-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 19.9 kB

Release files / pqam_rmsadtandoc2023-0.1.6.tar.gz

Download URL pqam_rmsadtandoc2023-0.1.6.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f2106025070092b2877c6f872fb748321d7c68d51dbb06e1119c21efb4a47dd3
BLAKE2b-256 checksum
How to use checksums
014bd3fcd597b84a330c84b00d3e8f6cb962f27efec378dc9267d227c2a1d80a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.9.19

Release files / pqam_rmsadtandoc2023-0.1.6-py3-none-any.whl

Download URL pqam_rmsadtandoc2023-0.1.6-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
308318f57ab8ee678a744c7736964e360289f64d19b3ca117687b97224743dba
BLAKE2b-256 checksum
How to use checksums
459e3618156458a6bc2284c6dfd49a3dac31e87c35d1748d4818b000ebacb76a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.9.19

Security for pqam-rmsadtandoc2023 0.1.6

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.

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