Skip to content
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

add test for workchain #472

Merged
merged 23 commits into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,15 @@ jobs:

runs-on: ubuntu-latest
timeout-minutes: 30

services:
postgres:
image: postgres:12
unkcpz marked this conversation as resolved.
Show resolved Hide resolved
rabbitmq:
image: rabbitmq:latest
ports:
- 5672:5672

steps:

- name: Check out app
Expand Down
8 changes: 0 additions & 8 deletions miscellaneous/structures/SiO2.xyz

This file was deleted.

1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ dev =
[options.package_data]
aiidalab_qe.app.parameters = qeapp.yaml
aiidalab_qe.app.static = *
aiidalab_qe.app.structure.examples = *

[options.entry_points]
aiidalab_qe.properties =
Expand Down
15 changes: 9 additions & 6 deletions src/aiidalab_qe/app/structure/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Authors: AiiDAlab team
"""
import os
import pathlib
import warnings

import aiida
Expand All @@ -27,13 +29,14 @@

# The Examples list of (name, file) tuple curretly passed to
# StructureExamplesWidget.
file_path = pathlib.Path(__file__).parent.resolve()
Examples = [
("Silicon (diamond)", "miscellaneous/structures/Si.xyz"),
("Silicon oxide", "miscellaneous/structures/SiO2.xyz"),
("Diamond", "miscellaneous/structures/diamond.cif"),
("Gallium arsenide", "miscellaneous/structures/GaAs.xyz"),
("Gold (fcc)", "miscellaneous/structures/Au.cif"),
("Cobalt (hcp)", "miscellaneous/structures/Co.cif"),
("Silicon (diamond)", os.path.join(file_path, "examples/Si.xyz")),
unkcpz marked this conversation as resolved.
Show resolved Hide resolved
("Silicon oxide", os.path.join(file_path, "examples/SiO2.xyz")),
("Diamond", os.path.join(file_path, "examples/diamond.cif")),
("Gallium arsenide", os.path.join(file_path, "examples/GaAs.xyz")),
("Gold (fcc)", os.path.join(file_path, "examples/Au.cif")),
("Cobalt (hcp)", os.path.join(file_path, "examples/Co.cif")),
]


Expand Down
8 changes: 8 additions & 0 deletions src/aiidalab_qe/app/structure/examples/SiO2.xyz
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
6
Lattice="4.1801 0.0 0.0 0.0 4.1801 0.0 0.0 0.0 2.6678" Properties=species:S:1:pos:R:3:tags:I:1 spacegroup="P 42/m n m" unit_cell=conventional pbc="T T T"
Si 0.00000000 0.00000000 0.00000000 0
Si 2.09005000 2.09005000 1.33390000 0
O 1.28203667 1.28203667 0.00000000 1
O 2.89806333 2.89806333 0.00000000 1
O 3.37208667 0.80801333 1.33390000 1
O 0.80801333 3.37208667 1.33390000 1
Empty file.
Loading