Skip to content

Use dftkit for DFT converters - #286

Merged
Wentzell merged 2 commits into
unstablefrom
DEV_DFTKIT
Feb 3, 2026
Merged

Use dftkit for DFT converters#286
Wentzell merged 2 commits into
unstablefrom
DEV_DFTKIT

Conversation

@Wentzell

@Wentzell Wentzell commented Dec 16, 2025

Copy link
Copy Markdown
Member

Summary

  • Add triqs_dftkit as a CPM dependency to provide converter functionality
  • Re-export converters from dftkit for backward compatibility (Wien2k, VASP, Elk, Wannier90, Hk)
  • Remove duplicate code now provided by dftkit: all converter implementations, Fortran dmftproj code, and associated tests/data files
  • Tests now reference dftkit's test data via environment variable

This significantly reduces code duplication and centralizes converter maintenance in triqs_dftkit.

Test plan

  • All 30 tests pass locally
  • CI passes on GitHub

- Use CPM to fetch dftkit for converter functionality
- Re-export converters from dftkit for backward compatibility
- Update tests to use dftkit reference data
- Remove Fortran language requirement (dmftproj now in dftkit)

Co-Authored-By: Claude <noreply@anthropic.com>
@Wentzell
Wentzell requested a review from the-hampel December 16, 2025 22:29
- Remove dmftproj Fortran component
- Remove converter Python modules
- Remove converter tests and test data

These are now provided by the triqs_dftkit package.

Co-Authored-By: Claude <noreply@anthropic.com>

@the-hampel the-hampel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Wentzell ,

I think this looks good to me. I tried both the new dftkit repo alone and this branch. I think the changes in the __init__.py module of the converters should make this fully backward compatible. I did not see any missing files or files that did not move. From my side this has green light to merge.

@Wentzell
Wentzell merged commit 18f63a6 into unstable Feb 3, 2026
4 of 5 checks passed
@Wentzell
Wentzell deleted the DEV_DFTKIT branch February 12, 2026 22:47
the-hampel added a commit that referenced this pull request May 26, 2026
…287)

After PR #286 moved all converters to triqs_dftkit, the Sphinx build
failed because autosummary tried to recursively import the now-missing
triqs_dft_tools.converters.* submodules.

- Remove `converters` from the recursive autosummary in documentation.rst
- Add new converters_reference.rst page linking to dftkit docs with a
  backward-compatible import table
- Add dftkit to intersphinx_mapping so :py:mod:/:py:class: refs resolve
- Exclude stale _python_api/triqs_dft_tools.converters* files via
  exclude_patterns to prevent leftover generated files from re-triggering
  the import errors on incremental builds
- Update :py:mod: cross-references in guide pages to point to the
  correct triqs_dftkit.* module paths
- Fix all converter import statements in guide/tutorial .rst files and
  .py scripts: replace `from triqs_dft_tools.converters.xxx import *`
  (submodule no longer exists) with `from triqs_dft_tools.converters
  import XxxConverter`

Closes #287
the-hampel added a commit that referenced this pull request May 27, 2026
…287)

After PR #286 moved all converters to triqs_dftkit, the Sphinx build
failed because autosummary tried to recursively import the now-missing
triqs_dft_tools.converters.* submodules.

- Remove `converters` from the recursive autosummary in documentation.rst
- Add new converters_reference.rst page linking to dftkit docs with a
  backward-compatible import table
- Add dftkit to intersphinx_mapping so :py:mod:/:py:class: refs resolve
- Exclude stale _python_api/triqs_dft_tools.converters* files via
  exclude_patterns to prevent leftover generated files from re-triggering
  the import errors on incremental builds
- Update :py:mod: cross-references in guide pages to point to the
  correct triqs_dftkit.* module paths
- Fix all converter import statements in guide/tutorial .rst files and
  .py scripts: replace `from triqs_dft_tools.converters.xxx import *`
  (submodule no longer exists) with `from triqs_dft_tools.converters
  import XxxConverter`

Closes #287
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants