Skip to content

Allow modifying cutoff values from ASE calculator#154

Merged
awvwgk merged 5 commits intomainfrom
ase-cutoff
Feb 11, 2026
Merged

Allow modifying cutoff values from ASE calculator#154
awvwgk merged 5 commits intomainfrom
ase-cutoff

Conversation

@awvwgk
Copy link
Copy Markdown
Member

@awvwgk awvwgk commented Aug 25, 2025

Related to #151

@awvwgk awvwgk added the python related to the Python API label Aug 25, 2025
@codecov
Copy link
Copy Markdown

codecov bot commented Aug 25, 2025

Codecov Report

❌ Patch coverage is 75.00000% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.75%. Comparing base (128c4f3) to head (ac0b1d6).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
python/dftd3/ase.py 75.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #154      +/-   ##
==========================================
+ Coverage   63.46%   68.75%   +5.29%     
==========================================
  Files          26       34       +8     
  Lines        4075     5800    +1725     
  Branches     1612     2353     +741     
==========================================
+ Hits         2586     3988    +1402     
- Misses        567      763     +196     
- Partials      922     1049     +127     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@awvwgk awvwgk requested a review from Copilot February 11, 2026 07:54
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds support for overriding DFTD3 realspace cutoff distances through the Python ASE calculator, to help reconcile dispersion energies across interfaces (related to #151).

Changes:

  • Document and introduce a new realspace_cutoff keyword for the ASE calculator.
  • Pass user-provided cutoff values through to the underlying DispersionModel.set_realspace_cutoff(...).
  • Improve Python exception chaining (raise ... from e) for easier debugging.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread python/dftd3/ase.py
Comment thread python/dftd3/ase.py
Comment thread python/dftd3/ase.py
@awvwgk
Copy link
Copy Markdown
Member Author

awvwgk commented Feb 11, 2026

@copilot open a new pull request to apply changes based on the comments in this thread

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 11, 2026

@awvwgk I've opened a new pull request, #167, to work on those changes. Once the pull request is ready, I'll request review from you.

Co-authored-by: awvwgk <28669218+awvwgk@users.noreply.github.com>
@awvwgk awvwgk merged commit 5391f03 into main Feb 11, 2026
48 checks passed
@awvwgk awvwgk deleted the ase-cutoff branch February 11, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python related to the Python API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants