-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #348 from libAtoms/err_calc_stress_virial_voigt
Convert virial/stress to Voigt-6 when computing error table
- Loading branch information
Showing
5 changed files
with
65 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,10 +14,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [ "3.9" ] | ||
python-version: [ "3.10" ] | ||
max-parallel: 5 | ||
env: | ||
coverage-on-version: "3.9" | ||
coverage-on-version: "3.10" | ||
use-mpi: True | ||
PIP_CONSTRAINT: pip_constraint.txt | ||
defaults: | ||
|
@@ -42,13 +42,15 @@ jobs: | |
run: | | ||
echo "numpy<2" >> $PIP_CONSTRAINT | ||
python3 -m pip install wheel setuptools numpy scipy click matplotlib pyyaml spglib rdkit==2024.3.3 flake8 pytest pytest-cov requests | ||
python3 -c "import numpy; print('numpy version', numpy.__version__)" | ||
- name: Install latest ASE from pypi | ||
run: | | ||
echo PIP_CONSTRAINT $PIP_CONSTRAINT | ||
python3 -m pip install ase | ||
echo -n "ASE VERSION " | ||
python3 -c "import ase; print(ase.__file__, ase.__version__)" | ||
python3 -c "import numpy; print('numpy version', numpy.__version__)" | ||
- name: Install intel-oneapi-mkl for phono3py | ||
run: | | ||
|
@@ -61,6 +63,7 @@ jobs: | |
sudo apt update | ||
sudo apt install intel-oneapi-mkl | ||
sudo apt install intel-oneapi-mkl-devel | ||
python3 -c "import numpy; print('numpy version', numpy.__version__)" | ||
- name: Install phono3py from source | ||
run: | | ||
|
@@ -90,16 +93,22 @@ jobs: | |
cd phono3py | ||
python3 -m pip install -e . -vvv | ||
cd .. | ||
python3 -c "import numpy; print('numpy version', numpy.__version__)" | ||
- name: Install Quippy from PyPI | ||
run: python3 -m pip install quippy-ase | ||
run: | | ||
python3 -m pip install quippy-ase | ||
python3 -c "import numpy; print('numpy version', numpy.__version__)" | ||
- name: Install xTB (before things that need pandas like MACE and wfl, since it will break pandas-numpy compatibility by downgrading numpy) | ||
run: | | ||
# force compatible numpy version | ||
conda install 'numpy<2' | ||
conda install -c conda-forge xtb-python | ||
python3 -m pip install typing-extensions | ||
# install pandas now to encourage compatible numpy version after conda regressed it | ||
python3 -m pip install pandas | ||
python3 -c "import numpy; print('numpy version', numpy.__version__)" | ||
- name: MACE | ||
run: | | ||
|
@@ -136,9 +145,11 @@ jobs: | |
fi | ||
echo "found torch version ${torch_version}+cpu, installing" | ||
python3 -m pip install torch==${torch_version}+cpu -f https://download.pytorch.org/whl/torch_stable.html | ||
python3 -c "import numpy; print('numpy version', numpy.__version__)" | ||
echo "installing mace" | ||
python3 -m pip install git+https://github.com/ACEsuit/mace.git@main | ||
python3 -c "import mace; print(mace.__file__)" | ||
python3 -c "import mace; print('mace file', mace.__file__)" | ||
python3 -c "import numpy; print('numpy version', numpy.__version__)" | ||
- name: Julia and ace fit | ||
run: | | ||
|
@@ -148,19 +159,24 @@ jobs: | |
# note that this hardwires a particular compatible ACE1pack version | ||
echo 'using Pkg; pkg"registry add https://github.com/JuliaRegistries/General"; pkg"registry add https://github.com/JuliaMolSim/MolSim.git"; pkg"add [email protected], ACE1, JuLIP, IPFitting, ASE"' > ace1pack_install.jl | ||
${PWD}/julia-1.8.1/bin/julia ace1pack_install.jl | ||
python3 -c "import numpy; print('numpy version', numpy.__version__)" | ||
- name: Install wfl (expyre and universalSOAP are dependencies) | ||
run: python3 -m pip install . | ||
run: | | ||
python3 -m pip install . | ||
python3 -c "import numpy; print('numpy version', numpy.__version__)" | ||
- name: Install Quantum Espresso | ||
run: | | ||
sudo apt-get install --no-install-recommends quantum-espresso | ||
python3 -c "import numpy; print('numpy version', numpy.__version__)" | ||
- name: Install MOPAC | ||
run: | | ||
wget http://openmopac.net/mopac-22.1.1-linux.tar.gz | ||
wget https://github.com/openmopac/mopac/releases/download/v22.1.1/mopac-22.1.1-linux.tar.gz | ||
tar -xzvf mopac-22.1.1-linux.tar.gz | ||
echo $GITHUB_WORKSPACE/mopac-22.1.1-linux/bin >> $GITHUB_PATH | ||
python3 -c "import numpy; print('numpy version', numpy.__version__)" | ||
- name: Install buildcell | ||
run: | | ||
|
@@ -172,6 +188,7 @@ jobs: | |
mkdir -p $HOME/bin | ||
cp src/buildcell/src/buildcell $HOME/bin/ | ||
cd .. | ||
python3 -c "import numpy; print('numpy version', numpy.__version__)" | ||
- name: Add buildcell to system path | ||
run: | | ||
|
@@ -183,6 +200,7 @@ jobs: | |
# this can eaily be turned off if needed | ||
conda install -c conda-forge mpi4py openmpi pytest-mpi | ||
python3 -m pip install mpipool | ||
python3 -c "import numpy; print('numpy version', numpy.__version__)" | ||
- name: Install and configure slurm and ExPyRe | ||
run: | | ||
|
@@ -206,6 +224,7 @@ jobs: | |
sinfo -s --long | ||
mkdir $HOME/.expyre | ||
cp .github/workflows_assets/config.json $HOME/.expyre | ||
python3 -c "import numpy; print('numpy version', numpy.__version__)" | ||
- name: Set up pw.x for running in wfl | ||
run: | | ||
|
@@ -221,6 +240,7 @@ jobs: | |
echo 'post-espresso $HOME/.config/ase/config.ini' | ||
cat $HOME/.config/ase/config.ini | ||
python3 -c "import numpy; print('numpy version', numpy.__version__)" | ||
- name: Lint with flake8 | ||
run: | | ||
|
@@ -234,6 +254,8 @@ jobs: | |
run: | | ||
rm -rf $HOME/pytest_plain | ||
mkdir $HOME/pytest_plain | ||
# attempt to work around mkl/numpy issue | ||
export MKL_THREADING_LAYER=GNU | ||
# | ||
export EXPYRE_PYTEST_SYSTEMS=github | ||
export WFL_PYTEST_BUILDCELL=$HOME/bin/buildcell | ||
|
@@ -247,6 +269,8 @@ jobs: | |
run: | | ||
rm -rf $HOME/pytest_cov | ||
mkdir $HOME/pytest_cov | ||
# attempt to work around mkl/numpy issue | ||
export MKL_THREADING_LAYER=GNU | ||
# | ||
export EXPYRE_PYTEST_SYSTEMS=github | ||
export WFL_PYTEST_BUILDCELL=$HOME/bin/buildcell | ||
|
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