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

Move workflows inside the aiidalab_ispg package #108

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
.ipynb_checkpoints/*
.vscode
__pycache__/
build/
~*
11 changes: 3 additions & 8 deletions aiidalab_ispg/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,18 @@
from aiidalab_ispg.parameters import DEFAULT_PARAMETERS
from aiidalab_ispg.widgets import ResourceSelectionWidget
from aiidalab_ispg.widgets import QMSelectionWidget, ExcitedStateMethod
from aiidalab_ispg.spectrum import EnergyUnit, Spectrum, SpectrumWidget

from .utils import get_formula, calc_boltzmann_weights, AUtoKJ

try:
from aiidalab_atmospec_workchain import (
AtmospecWorkChain,
OrcaWignerSpectrumWorkChain,
)
except ImportError:
print("ERROR: Could not find aiidalab_atmospec_workchain module!")

try:
OrcaBaseWorkChain = WorkflowFactory("orca.base")
except MissingEntryPointError:
print("ERROR: Could not find aiida-orca plugin!")

from aiidalab_ispg.spectrum import EnergyUnit, Spectrum, SpectrumWidget
AtmospecWorkChain = WorkflowFactory("atmospec.atmospec")
OrcaWignerSpectrumWorkChain = WorkflowFactory("atmospec.orca_opt")

StructureData = DataFactory("core.structure")
TrajectoryData = DataFactory("core.array.trajectory")
Expand Down
2 changes: 2 additions & 0 deletions atmospec_workflows/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .atmospec import AtmospecWorkChain
from .atmospec import OrcaWignerSpectrumWorkChain
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
OrcaCalculation = CalculationFactory("orca.orca")
OrcaBaseWorkChain = WorkflowFactory("orca.base")

__all__ = ["AtmospecWorkChain" "OrcaWignerSpectrumWorkChain"]

# Meta WorkChain for combining all inputs from a dynamic namespace into List.
# Used to combine outputs from several subworkflows into one output.
Expand Down Expand Up @@ -397,6 +398,3 @@ def collect(self):
}
output = run(ConcatStructuresToTrajectory, structures=relaxed_structures)
self.out("relaxed_structures", output["trajectory"])


__version__ = "0.1-alpha"
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
U_TO_AMU = 1.0 / 5.4857990943e-4 # conversion from g/mol to amu
ANG_TO_BOHR = 1.0 / 0.529177211 # 1.889725989 # conversion from Angstrom to bohr

# TODO: Create a separate Wigner package and publish it on PyPI


class Wigner:
def __init__(
Expand Down
9 changes: 8 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,22 @@ python_requires = >=3.8
# and publish a separate package to PyPi.
install_requires =
rdkit
aiida-core>=2.1
aiidalab-widgets-base~=2.0.0b0
aiida-orca @ git+https://github.com/danielhollas/aiida-orca.git@atmospec
aiidalab_atmospec_workchain @ file:///home/jovyan/apps/aiidalab-ispg/workflows/

[options.extras_require]
dev =
pre-commit>=2.10.1
test = file: requirements-test.txt

[options.entry_points]
aiida.workflows =
atmospec.atmospec = atmospec_workflows:AtmospecWorkChain
atmospec.orca_opt = atmospec_workflows:OrcaWignerSpectrumWorkChain
aiida.calculations =
atmospec.generate_wigner_structures = atmospec_workflows:pick_wigner_structure

[flake8]
ignore =
# Line length handled by black.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion workflows/.gitignore

This file was deleted.

26 changes: 0 additions & 26 deletions workflows/README.md

This file was deleted.

Empty file removed workflows/pyproject.toml
Empty file.
32 changes: 0 additions & 32 deletions workflows/setup.cfg

This file was deleted.