Report the xTB toolchain in thermo doctor - #71
Merged
Conversation
Extend the setup check to the xTB engines: the native `xtb` binary (for `--engine xtb-cli`, resolved via $XTB_COMMAND or PATH) and the `tblite` package (for `--engine xtb`). Both are optional -- a DFTB+-only user is unaffected: they are shown as informational and do not change the doctor exit code, which still fails only on a missing required DFTB+ backend.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #71 +/- ##
==========================================
+ Coverage 96.66% 96.68% +0.02%
==========================================
Files 24 24
Lines 1527 1538 +11
==========================================
+ Hits 1476 1487 +11
Misses 51 51
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
galjos
added a commit
that referenced
this pull request
Jul 6, 2026
`environment.yml` already installed DFTB+ but predates the xTB engines (#68, #70). Add the xTB backends so `conda env create -f environment.yml` provisions **every** calculation engine in one command. ```yaml dependencies: - python>=3.12 - dftbplus # DFTB+ engine: `dftb+` and `modes` - xtb # native xtb binary, for --engine xtb-cli - tblite-python # GFN-xTB via tblite, for --engine xtb - pip - pip: - "-e .[test,lint]" ``` After `conda env create -f environment.yml && conda activate thermoscreening`, `thermo doctor` reports every backend as found (pairs with #71). README updated to say the env covers all backends. Verified the three backends resolve on conda-forge (dftbplus-25.1 nompi, xtb-6.6.1, tblite-python-0.3.0); YAML validated. This is the "installable through the project" follow-up: the compiled backends (DFTB+/modes/xtb/tblite) can't be pip-installed, so the conda env is how the project bundles them, while `thermo setup-dftb` handles the Slater-Koster and GBSA parameter files.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to the xtb engines (#68, #70):
thermo doctoronly checked the DFTB+ toolchain. Now it also reports the xTB backends, sodoctorreflects all three engines.What it reports
xtb— the native binary for--engine xtb-cli(resolved via$XTB_COMMAND, then PATH).tblite— the Python package for--engine xtb.When missing, the detail line gives the fix:
Design: optional, so DFTB+-only users are unaffected
(optional)and do not change the doctor exit code — it still fails only on a missing required DFTB+ backend (dftb+/modes/DFTB_PREFIX/C-C.skf).Diagnosticgains anoptionalflag;run_doctorfilters optional items from the pass/fail decision.This is a small step toward the "helpful doctor" idea — the detail now includes the exact
conda installcommand for whatever's missing.Note
This was originally committed onto the #70 branch, but #70 merged before its CI picked up the extra commit — so it's re-based here as its own PR off the current main. Offline suite: 252 passed / 11 skipped.