Skip to content

Commit

Permalink
Fix typo in user_guide (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
superstar54 authored Jul 19, 2024
1 parent 2b51e99 commit 6871ac5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/docs/source/user_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ Then, you can access the properties directly:

```python=
print("immutable pbc: ",structure.pbc)
print("mutable pbc: ",structure.pbc)
print("mutable pbc: ",mutable_structure.pbc)
print("immutable cell: ",structure.cell)
print("mutable cell: ",structure.cell)
print("mutable cell: ",mutable_structure.cell)
print("immutable sites: ",structure.sites)
print("mutable sites: ",structure.sites)
print("mutable sites: ",mutable_structure.sites)
```

the expected output is:
Expand Down Expand Up @@ -113,7 +113,7 @@ If we already have an ASE Atoms or a Pymatgen Structure object, we can use the `
from ase.build import bulk
atoms = bulk('Cu', 'fcc', a=3.6)
atoms.set_initial_charges([1,])
atoms.set_tags(["2"])
atoms.set_tags([2])
mutable_structure = StructureDataMutable.from_ase(atoms)
structure = StructureData.from_ase(atoms)
Expand Down Expand Up @@ -186,7 +186,7 @@ from aiida import orm
structure = orm.load_node(<StructureData pk>)
mutable_structure = structure.to_mutable_structuredata()
mutable_structure.set_charges([1,0])
mutable_structure.set_charges([1, 0])
mutable_structure.set_kind_names(['Si2','Si1'])
new_structure = mutable_structure.to_structuredata()
Expand Down

0 comments on commit 6871ac5

Please sign in to comment.