Skip to content

Support counter-poise calculations in Python API#128

Merged
awvwgk merged 3 commits intodftd3:mainfrom
awvwgk:gcp-py
Apr 10, 2025
Merged

Support counter-poise calculations in Python API#128
awvwgk merged 3 commits intodftd3:mainfrom
awvwgk:gcp-py

Conversation

@awvwgk
Copy link
Copy Markdown
Member

@awvwgk awvwgk commented Dec 1, 2024

Closes #122

@awvwgk awvwgk added the python related to the Python API label Dec 1, 2024
@codecov
Copy link
Copy Markdown

codecov bot commented Dec 1, 2024

Codecov Report

Attention: Patch coverage is 89.68254% with 13 lines in your changes missing coverage. Please review.

Project coverage is 66.34%. Comparing base (0649c1f) to head (3e47329).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
python/dftd3/library.py 92.50% 6 Missing ⚠️
python/dftd3/interface.py 86.11% 5 Missing ⚠️
src/dftd3/output.f90 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #128      +/-   ##
==========================================
- Coverage   66.53%   66.34%   -0.19%     
==========================================
  Files          33       33              
  Lines        4686     4627      -59     
  Branches     1663     1608      -55     
==========================================
- Hits         3118     3070      -48     
  Misses        637      637              
+ Partials      931      920      -11     

☔ 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 added this to the v1.3.0 milestone Dec 1, 2024
@awvwgk awvwgk requested a review from Copilot April 10, 2025 10:45
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.

Copilot reviewed 6 out of 9 changed files in this pull request and generated no comments.

Files not reviewed (3)
  • python/dftd3/meson.build: Language not supported
  • src/dftd3/gcp.f90: Language not supported
  • src/dftd3/output.f90: Language not supported
Comments suppressed due to low confidence (1)

python/dftd3/interface.py:532

  • Consider initializing the energy variable as a one-element array (e.g. np.array([0.0])) to ensure a contiguous memory block for the underlying CFFI pointer conversion in get_counterpoise.
_energy = np.array(0.0)

@awvwgk awvwgk merged commit bd59f81 into dftd3:main Apr 10, 2025
25 checks passed
@awvwgk awvwgk deleted the gcp-py branch April 10, 2025 10:48
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.

Enable Python API for counter-poise corrections

2 participants