Replies: 1 comment
-
|
Hi @shipinqin thanks for reporting. I believe both should work but looks like there's a bug (to fold sites into the cell when |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Supercells created with pymatgen seems to always fold sites into the unit cell, which may not be ideal as folding sites back into unit cell is fairly simple, but unfolding them may not be so straightforward at times. Is there any plan to change this default behavior in future versions?
I found two simple ways (maybe there is more?) to create supercells in pymatgen:
pymatgen.core.IStructure.__mul__function. It always returns a Structure withto_unit_cell=True.pymatgen.core.Structure.make_supercell. This function comes with an option to changeto_unit_cell. However, since the supercell in this function is created by calling the__mul__function above, settingto_unit_cell=Falsewill not behave as expected.Beta Was this translation helpful? Give feedback.
All reactions