Conversation
It works, but it cannot be configured yet.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #60 +/- ##
==========================================
- Coverage 88.54% 86.19% -2.36%
==========================================
Files 8 9 +1
Lines 812 840 +28
==========================================
+ Hits 719 724 +5
- Misses 93 116 +23 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
As a reference the ASE team worked on this some time back https://gitlab.com/ase/ase/-/merge_requests/2657 |
|
Yeah, I snooped around in there, but as you expected it's much simpler with the parser and newer ASE infrastructure. |
|
I also found the calculator implemented by FLEUR. Seems like this can be a good template for a "modern" ase calculator too. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
There was a problem hiding this comment.
Pull request overview
This PR introduces an ASE FileIOCalculator implementation for running SPHInX DFT calculations via sphinx_parser, aiming to support ASE’s calculate() flow for energies and forces (Issue #34).
Changes:
- Added a new
SphinxDftASE calculator that writes aninput.sxfile from anase.Atoms. - Added result parsing from a SPHInX stdout log via
SphinxLogParser, exposingenergyandforcesthroughself.results.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: Marvin Poul <ponder@creshal.de>
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| Documentation | 5 minor |
🟢 Metrics 10 complexity · 0 duplication
Metric Results Complexity 10 Duplication 0
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
…verride
Adds an optional `potentials: dict[str, {potential, potType}]` parameter
to `get_paw_from_structure`, `get_paw_from_chemical_symbols`,
`set_base_parameters`, and `SphinxDft.__init__`. Elements absent from the
dict fall back to the existing `get_potential_path` / AtomPAW default.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Add injectable potentials to allow per-element PAW path and potType override
It works, but it cannot be configured yet.
See #34