Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OmniXAS for Lightshow #280

Merged
merged 1 commit into from
Nov 20, 2024
Merged

Conversation

shubharajkharel
Copy link
Contributor

Omnixas Integration in Lightshow

Description

Self-contained modules to predcit site-XAS pymatgen structures using Omnixas models.

Models

Input

  • Input is pymatgen Structure object. Useful I/O methods for pymatgen structures are documented in pyamtgen documentation which includes from_file, from_id, from_sites, from_spacegroup, from_str.

Supported File Formats

  • use from_file to load CIF, POSCAR, CONTCAR, CHGCAR, LOCPOT, vasprun.xml, CSSR, Netcdf and pymatgen's JSON-serialized structures.

Usage

import matplotlib.pyplot as plt
material_structure_file = "mp-1005792/POSCAR"
strucutre = PymatgenStructure.from_file(material_structure_file)
spectrum = XASModel(element="Cu", type="FEFF").predict(strucutre, 8)
plt.plot(spectrum)

@matthewcarbone matthewcarbone merged commit cb81dda into AI-multimodal:master Nov 20, 2024
4 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants