Comments (4)
Request the structure
and use the Structure.to("POSCAR")
method would be my advice.
The structure
is the direct output from our calculations, whereas the cif
has gone via CifWriter
and (depending on the specific CIF requested and symmetry precision) may be in a different crystallographic setting.
from workshop.
Thank you for your advice! According to your advice, the code was rewrite as:
with MPRester() as mpr:
material = mpr.get_data('Ir')
for item in material:
if item['formation_energy_per_atom'] == 0.0:
print(item['material_id']) # result is 'mp-101'
struc = mpr.get_structure_by_material_id(item['material_id'])
struc.to(fmt='poscar', filename='POSCAR')
(I'm not sure how to request the structure
from Materials Project, and after reading the api docs I think I may use get_structure_by_material_id
)
And it's seems that the method get_structure_by_material_id
still got the one single atom Ir structure, which is still different from the POSCAR file downloaded from the Materials Project (four Ir atoms structure) (see pic below)
To summary, the structure I got using MPRester()
and get
methods is not the same with the POSCAR file from the website (see pic below) for this specific case Ir (mp101). But I want to get the structure that was used by the MP teams, which is the four Ir atoms structure.
Any advice? Did I use the wrong way requested the wrong structure
? How could we get the POSCAR file (or the structure that could produce the same POSCAR) that your team used? Any clue would be appreciated!
from workshop.
I would ask this on matsci.org. This repo gets very little direct views outside of organizing and running the workshop.
from workshop.
I would ask this on matsci.org. This repo gets very little direct views outside of organizing and running the workshop.
Thanks for your suggestion.
from workshop.
Related Issues (18)
- schedule HOT 1
- 2021 Automated DFT Lesson Updates HOT 6
- 2021 Basic Python Lesson Updates HOT 1
- 2021 Advanced MongoDB Lesson Comments HOT 5
- Intro to pymatgen comments HOT 1
- 2021 Materials Project API
- 2021 Advanced Python Lesson Comments HOT 1
- 2021 Materials Project Website Comments HOT 1
- 2021 Reaction Networks / Exploring New Systems Comments HOT 2
- 2021 Intro to MongoDB HOT 1
- 2021 Matminer/Machine Learning Comments HOT 1
- DB_FILE not needed anymore
- Fireworks not rendering graph in workflow view HOT 2
- enumlib
- mp_rester.query() is deprecated HOT 2
- We should probably not be teaching from personal forks of existing libraries. HOT 11
- Can I upload the video in youtube to Chinese video platform? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from workshop.