Update README.md
Browse files
README.md
CHANGED
|
@@ -11,6 +11,24 @@ In this study, we present the Crystal Generative framework based on the Wyckoff
|
|
| 11 |
|
| 12 |
All templates with 3-4 asymmetric units generated in our work are available as open-source resources on the datasets CGWGAN.
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
## Contact Information:
|
| 15 |
|
| 16 |
Mr. SU Tianhao
|
|
|
|
| 11 |
|
| 12 |
All templates with 3-4 asymmetric units generated in our work are available as open-source resources on the datasets CGWGAN.
|
| 13 |
|
| 14 |
+
## Python Implementation
|
| 15 |
+
|
| 16 |
+
```
|
| 17 |
+
from ase.db import connect
|
| 18 |
+
|
| 19 |
+
database = connect('open.db')
|
| 20 |
+
entry_id = 1 # the crystal index
|
| 21 |
+
atoms = database.get_atoms(id=_id)
|
| 22 |
+
|
| 23 |
+
# chemical symbols
|
| 24 |
+
symbols = atoms.get_chemical_symbols()
|
| 25 |
+
# volume
|
| 26 |
+
latt_vol = atoms.get_volume()
|
| 27 |
+
# fractional positions
|
| 28 |
+
positions = atoms.get_scaled_positions()
|
| 29 |
+
# etc ...
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
## Contact Information:
|
| 33 |
|
| 34 |
Mr. SU Tianhao
|