-
Notifications
You must be signed in to change notification settings - Fork 7
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
Should all properties be equal? #15
Comments
I also vote to have [[3.5, 0.0, 0.0], [0.0, 3.5, 0.0], [0.0, 0.0, 3.5]] Same for other well-known global properties: positions, pbc, symbols. |
An elegant solution may be to have |
From here, the only advantage of having a And I agree that we should have direct access to the properties, i.e. |
Currently, the
StructureData
is completely defined as a list of properties (as explained here):I understand the appeal of this, and maybe it's the way to go. Part of me is still wondering if all properties should be equal, i.e. if some properties should receive special treatment (
cell
,pbc
,positions
, ...). Thinking of @mikibonacci's question here, I'd prefer to still be able to access thecell
asstructure.cell
, not as:which then outputs a
Cell
object:If I want to look at the cell, I'd just want to have
structure.cell
return a list of list ornumpy
array. I don't want to have to deal with theCell
object and then figure out how to get the cell vectors from this.That said, other tools like
pymatgen
and ASE also have their own "cell" variants (Structure
->Lattice
;Atoms
->Cell
). And I can see howCell.value
lets you get what you desire. So maybe I'm just ranting for no reason here. Will think about it some more as I'm dogfooding.EDIT: I think I may have managed to derail the conversation from my original point immediately in the same post. I insta-"Mr. Scope creeped" myself. 😅
The text was updated successfully, but these errors were encountered: