Exabyte-io / materials-designer

A standalone React.js/Redux based web application for the design and visualization of atomistic materials structures. Used at Mat3ra.com and can be deployed in standalone mode.
https://mat3ra-materials-designer.netlify.app/
Other
10 stars 11 forks source link

JARVIS to ESSE converter #165

Open timurbazhirov opened 9 months ago

timurbazhirov commented 9 months ago

Per https://github.com/Exabyte-io/esse/issues/282#issue-2024460390 for more info

timurbazhirov commented 7 months ago

Implemented the ability to parse material structure using JARVIS DB Entry data in https://github.com/Exabyte-io/express/pull/139.

Successful tests run: https://github.com/Exabyte-io/express/actions/runs/7649919161/job/20845144224?pr=139

The usage pattern is:

import json
from express import ExPrESS

with open("./JVASP-677.json") as f:
    jarvis_db_entry = f.read()

kwargs = {
    "structure_string": jarvis_db_entry,
    "structure_format": "jarvis-db-entry"
}

express_ = ExPrESS("structure", **kwargs)
print json.dumps(express_.property("material"), indent=4)

The format for the db entries is taken from https://figshare.com/articles/dataset/Monolayer_data_for_heterostructure/22344571 assuming it is format of the array element.

timurbazhirov commented 7 months ago

Done:

knc6 commented 7 months ago
knc6 commented 7 months ago