https://github.com/amkrajewski/pqam_rmsadtandoc2023

Lightweight fork of Tandoc's 2023 RMSAD model for HEAs for deployment compatible with ULTERA Database

https://github.com/amkrajewski/pqam_rmsadtandoc2023

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.4%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Lightweight fork of Tandoc's 2023 RMSAD model for HEAs for deployment compatible with ULTERA Database

Basic Info
  • Host: GitHub
  • Owner: amkrajewski
  • License: lgpl-3.0
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 89.8 KB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Fork of tandocca/Lattice-Distortion
Created almost 3 years ago · Last pushed about 2 years ago
Metadata Files
Readme License

README.md

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

Owner

  • Name: Adam Krajewski
  • Login: amkrajewski
  • Kind: user
  • Location: University Park, PA, USA
  • Company: Phases Research Lab

GitHub Events

Total
Last Year

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 12 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 7
  • Total maintainers: 1
pypi.org: pqam-rmsadtandoc2023

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

  • Versions: 7
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 12 Last month
Rankings
Dependent packages count: 7.5%
Forks count: 30.2%
Average: 36.6%
Stargazers count: 39.1%
Dependent repos count: 69.7%
Maintainers (1)
Last synced: 10 months ago

Dependencies

.github/workflows/publishPyPI.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
  • pypa/gh-action-pypi-publish 27b31702a0e7fc50959f5ad993c78deac1bdfc29 composite
.github/workflows/runtimeTesting.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
pyproject.toml pypi
  • pymatgen >=2022.1.9