-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide categorized example structures. (#1019)
[x] Provide categorized example structures, and only the respective examples are shown when the button is clicked. [x] The example catalog is extensible by the plugins. [x] Remove the "Primitive cell" from everywhere, as done below, as we should always ONLY provide the primitive cell): [x] For gold, replace the current one with its primitive cell. [x] For Cobalt, remove it and replace with Nickel FCC.
- Loading branch information
1 parent
d4c495e
commit 802bca8
Showing
13 changed files
with
110 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
data_image0 | ||
_chemical_formula_structural Ni | ||
_chemical_formula_sum "Ni1" | ||
_cell_length_a 2.48902 | ||
_cell_length_b 2.48902 | ||
_cell_length_c 2.48902 | ||
_cell_angle_alpha 60 | ||
_cell_angle_beta 60 | ||
_cell_angle_gamma 60 | ||
|
||
_space_group_name_H-M_alt "P 1" | ||
_space_group_IT_number 1 | ||
|
||
loop_ | ||
_space_group_symop_operation_xyz | ||
'x, y, z' | ||
|
||
loop_ | ||
_atom_site_type_symbol | ||
_atom_site_label | ||
_atom_site_symmetry_multiplicity | ||
_atom_site_fract_x | ||
_atom_site_fract_y | ||
_atom_site_fract_z | ||
_atom_site_occupancy | ||
Ni Ni1 1.0 0.00000 0.00000 0.00000 1.0000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
10 changes: 10 additions & 0 deletions
10
src/aiidalab_qe/plugins/xas/structure_examples/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import pathlib | ||
|
||
file_path = pathlib.Path(__file__).parent | ||
|
||
structure_examples = { | ||
"title": "XAS examples", | ||
"structures": [ | ||
("Lithium carbonate", file_path / "Li2CO3.cif"), | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions
10
src/aiidalab_qe/plugins/xps/structure_examples/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import pathlib | ||
|
||
file_path = pathlib.Path(__file__).parent | ||
structure_examples = { | ||
"title": "XPS examples", | ||
"structures": [ | ||
("Phenylacetylene molecule", file_path / "Phenylacetylene.xyz"), | ||
("ETFA molecule", file_path / "ETFA.xyz"), | ||
], | ||
} |