Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
0a9fd72
Add TDEP input generation for NVT post-processing
junwen94 Apr 15, 2026
924aea7
Update anharmonic phonons tutorial
junwen94 Apr 15, 2026
6ddf932
Adjust anharmonic phonons tutorial for docs build
junwen94 Apr 16, 2026
724965f
Trigger GitHub Actions
junwen94 Apr 16, 2026
42e9fab
Document TDEP processing module in API docs
junwen94 Apr 16, 2026
3e49adc
Add phonon dispersion figure to anharmonic phonons tutorial
junwen94 Apr 16, 2026
e7f9e18
Adjust tutorial figure size
junwen94 Apr 16, 2026
301e64c
Address review comments for TDEP input generation
junwen94 Apr 21, 2026
162f442
Apply suggestions from code review
alinelena May 15, 2026
80f6725
Merge branch 'stfc:main' into dev/tdep
junwen94 May 22, 2026
ef1fc3d
Address review feedback: TDEP integration polish + executable tutorial
junwen94 May 26, 2026
e7e0a9a
Install gnuplot-nox in docs CI and add diagnostic ls in TDEP cell
junwen94 May 26, 2026
f1bdc15
Switch TDEP cell to %%bash with set -ex for CI diagnostics
junwen94 May 26, 2026
252fb76
Fix gnuplot script filename: TDEP --pdf writes .gnuplot_pdf
junwen94 May 26, 2026
b0e1ebd
Re-trigger CI
junwen94 May 26, 2026
932e800
Merge remote-tracking branch 'upstream/main' into dev/tdep
junwen94 Oct 9, 2026
26f4bd1
Fix TDEP input generation from MD outputs
junwen94 Oct 12, 2026
48d0b60
Validate TDEP settings before running MD
junwen94 Oct 14, 2026
4ac63a1
Test TDEP input generation and run TDEP on the outputs
junwen94 Oct 14, 2026
08d20a4
Build TDEP in the CI tests job instead of the docs job
junwen94 Oct 14, 2026
9c5c476
Document TDEP input generation and update the tutorials
junwen94 Oct 14, 2026
947b60c
Build TDEP for the tutorials in the release docs job
junwen94 Oct 14, 2026
db5595e
Describe further TDEP calculations in the docs
junwen94 Oct 14, 2026
252b683
Log the TDEP output directory with forward slashes
junwen94 Oct 14, 2026
b22339f
Use isclose and allclose in the TDEP cell checks
junwen94 Oct 28, 2026
014afa7
Check the TDEP supercell positions match the MD structure
junwen94 Oct 28, 2026
71d5968
Read TDEP statistics by label and validate inputs in a helper
junwen94 Oct 28, 2026
0beabe9
Skip frames saved during a temperature ramp in TDEP inputs
junwen94 Oct 28, 2026
c8fab56
Clone TDEP at the pinned commit and reword doc comments
junwen94 Oct 28, 2026
8cacfea
Note in the developer guide that the tutorials run TDEP
junwen94 Oct 29, 2026
9dfd7f0
Move TDEP supercell atoms exactly onto images of the unit-cell atoms
junwen94 Oct 29, 2026
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
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,50 @@ jobs:
echo "PLUMED_KERNEL=${{ steps.plumed.outputs.plumed_prefix }}/lib/libplumedKernel.so" >> $GITHUB_ENV
fi

- name: Install TDEP build dependencies
id: tdep-deps
continue-on-error: true
Comment thread
ElliottKasoar marked this conversation as resolved.
Resolved
timeout-minutes: 10
run: |
sudo apt-get update
sudo apt-get install -y \
gfortran \
libblas-dev \
liblapack-dev \
libhdf5-dev \
libhdf5-serial-dev \
libhdf5-openmpi-dev \
openmpi-bin \
libopenmpi-dev \
libfftw3-dev \
libscalapack-openmpi-dev

- name: Build TDEP
id: tdep
if: steps.tdep-deps.outcome == 'success'
Comment thread
ElliottKasoar marked this conversation as resolved.
Resolved
continue-on-error: true
Comment thread
oerc0122 marked this conversation as resolved.
Resolved
timeout-minutes: 15
env:
# Pinned, as tests/test_tdep.py checks reference values from this commit
TDEP_COMMIT: 6ccdf13ced49aa067a92f9c9b03a2a202bc361b5
working-directory: ${{ runner.temp }}
run: |
# Clone outside the workspace, so pytest does not collect TDEP's own tests
git clone --revision="$TDEP_COMMIT" --depth=1 https://github.com/tdep-developers/tdep.git
cd tdep
# Production (-O3) settings from TDEP's own CI
cp .github/important_settings.x86_64 important_settings
bash build_things.sh --nthreads_make 4
test -x bin/extract_forceconstants && test -x bin/phonon_dispersion_relations
Comment thread
oerc0122 marked this conversation as resolved.
Resolved

- name: Add TDEP to PATH based on build success
run: |
if [ "${{ steps.tdep.outcome }}" = "success" ]; then
echo "$RUNNER_TEMP/tdep/bin" >> $GITHUB_PATH
else
echo "::warning title=TDEP not installed::TDEP tests will be skipped"
fi

- name: Download extra models
run: |
python3 tests/models/extra_models.py tests/models/extra
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/publish-on-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,49 @@ jobs:
- name: Install dependencies
run: uv sync --extra mace --extra orb --extra chgnet

- name: Install TDEP build dependencies
Comment thread
ElliottKasoar marked this conversation as resolved.
Resolved
id: tdep-deps
continue-on-error: true
timeout-minutes: 10
run: |
sudo apt-get update
sudo apt-get install -y \
gfortran \
libblas-dev \
liblapack-dev \
libhdf5-dev \
libhdf5-serial-dev \
libhdf5-openmpi-dev \
openmpi-bin \
libopenmpi-dev \
libfftw3-dev \
libscalapack-openmpi-dev

- name: Build TDEP
id: tdep
if: steps.tdep-deps.outcome == 'success'
continue-on-error: true
timeout-minutes: 15
env:
# The same commit as in ci.yml
TDEP_COMMIT: 6ccdf13ced49aa067a92f9c9b03a2a202bc361b5
working-directory: ${{ runner.temp }}
run: |
git clone --revision="$TDEP_COMMIT" --depth=1 https://github.com/tdep-developers/tdep.git
cd tdep
# Production (-O3) settings from TDEP's own CI
cp .github/important_settings.x86_64 important_settings
bash build_things.sh --nthreads_make 4
test -x bin/extract_forceconstants && test -x bin/phonon_dispersion_relations

- name: Add TDEP to PATH based on build success
run: |
if [ "${{ steps.tdep.outcome }}" = "success" ]; then
echo "$RUNNER_TEMP/tdep/bin" >> $GITHUB_PATH
else
echo "::warning title=TDEP not installed::TDEP steps in the tutorials will be skipped"
fi

- name: Build docs with tutorials
run: cd docs && uv run make all

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ Current and planned features include:
- [x] Nudged Elastic Band
- [x] Phonons
- Phonopy
- Temperature Dependent Effective Potentials (TDEP) input generation
- [x] Equation of State
- [x] Training ML potentials
- MACE
Expand Down
10 changes: 10 additions & 0 deletions docs/source/apidoc/janus_core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,16 @@ janus\_core.processing.post\_process module
:undoc-members:
:show-inheritance:

janus\_core.processing.tdep module
----------------------------------

.. automodule:: janus_core.processing.tdep
:members:
:special-members:
:private-members:
:undoc-members:
:show-inheritance:

janus\_core.processing.symmetry module
--------------------------------------

Expand Down
7 changes: 7 additions & 0 deletions docs/source/developer_guide/get_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,13 @@ These are tested before ``janus-core`` is published to PyPI, but can be tested l
cd docs
make clean; make tutorials

The anharmonic phonons tutorials also run `TDEP <https://tdep-developers.github.io/tdep/>`_,
which is not a Python package and must be built separately, as described in
:doc:`Installation </user_guide/installation>`.
If TDEP's programs are not found on ``PATH``, the TDEP steps in these notebooks are skipped,
so the other cells still run but TDEP's results are not shown.
The PyPI release workflow builds TDEP before running the tutorials.


Continuous integration
++++++++++++++++++++++
Expand Down
8 changes: 7 additions & 1 deletion docs/source/examples/full/nvt-csvr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ equil_steps: 100
minimize: True
minimize_every: 50
minimize_kwargs:
filter_class: null # keep the cell fixed, as required by tdep_compute
opt_kwargs:
maxstep: 0.1
rescale_velocities: True
Expand All @@ -21,6 +22,11 @@ rescale_every: 50

post_process_kwargs:
rdf_compute: True
tdep_compute: True
tdep_unit_cell_file: "tests/data/NaCl-primitive.extxyz"
tdep_supercell_file: "tests/data/NaCl.cif"
tdep_output_dir: "nvt-csvr-tdep-inputs"

correlation_kwargs:
vaf:
a: Velocity
Expand Down Expand Up @@ -51,7 +57,7 @@ stats_file: nvt-csvr-stats.dat
stats_every: 100
traj_file: nvt-csvr-traj.extxyz
traj_append: False
traj_start: 10
traj_start: 100 # save frames only after the 90-step heating ramp
traj_every: 100

file_prefix: NaCl
Expand Down
7 changes: 6 additions & 1 deletion docs/source/examples/full/nvt-nh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ rescale_every: 50

post_process_kwargs:
rdf_compute: True
tdep_compute: True
tdep_unit_cell_file: "tests/data/NaCl-primitive.extxyz"
tdep_supercell_file: "tests/data/NaCl.cif"
tdep_output_dir: "nvt-nh-tdep-inputs"

correlation_kwargs:
vaf:
a: Velocity
Expand Down Expand Up @@ -52,7 +57,7 @@ stats_file: nvt-nh-stats.dat
stats_every: 100
traj_file: nvt-nh-traj.extxyz
traj_append: False
traj_start: 10
traj_start: 100 # save frames only after the 90-step heating ramp
traj_every: 100

file_prefix: NaCl
Expand Down
8 changes: 7 additions & 1 deletion docs/source/examples/full/nvt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ equil_steps: 100
minimize: True
minimize_every: 50
minimize_kwargs:
filter_class: null # keep the cell fixed, as required by tdep_compute
opt_kwargs:
maxstep: 0.1
rescale_velocities: True
Expand All @@ -21,6 +22,11 @@ rescale_every: 50

post_process_kwargs:
rdf_compute: True
tdep_compute: True
tdep_unit_cell_file: "tests/data/NaCl-primitive.extxyz"
tdep_supercell_file: "tests/data/NaCl.cif"
tdep_output_dir: "nvt-tdep-inputs"

correlation_kwargs:
vaf:
a: Velocity
Expand Down Expand Up @@ -53,7 +59,7 @@ stats_file: nvt-stats.dat
stats_every: 100
traj_file: nvt-traj.extxyz
traj_append: False
traj_start: 10
traj_start: 100 # save frames only after the 90-step heating ramp
traj_every: 100

file_prefix: NaCl
Expand Down
Loading
Loading