Skip to content

Commit

Permalink
update: start arrays in basis from 0
Browse files Browse the repository at this point in the history
  • Loading branch information
VsevolodX committed Feb 20, 2024
1 parent cba5311 commit 07dc368
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions express/parsers/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ def basis(self):
"""
return {
"units": "crystal",
"elements": [{"id": i + 1, "value": v.species_string} for i, v in enumerate(self.structure.sites)],
"coordinates": [{"id": i + 1, "value": v.frac_coords.tolist()} for i, v in enumerate(self.structure.sites)],
"elements": [{"id": i, "value": v.species_string} for i, v in enumerate(self.structure.sites)],
"coordinates": [{"id": i, "value": v.frac_coords.tolist()} for i, v in enumerate(self.structure.sites)],
}

def space_group_symbol(self):
Expand Down

0 comments on commit 07dc368

Please sign in to comment.