Skip to content

WIP: Simple ase interface#60

Draft
pmrv wants to merge 16 commits intomainfrom
calculator
Draft

WIP: Simple ase interface#60
pmrv wants to merge 16 commits intomainfrom
calculator

Conversation

@pmrv
Copy link
Copy Markdown
Contributor

@pmrv pmrv commented Nov 28, 2025

It works, but it cannot be configured yet.

See #34

It works, but it cannot be configured yet.
@github-actions
Copy link
Copy Markdown

Binder 👈 Launch a binder notebook on branch pyiron/sphinx_parser/calculator

@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 28, 2025

Codecov Report

❌ Patch coverage is 30.30303% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.19%. Comparing base (d127a0b) to head (7a8bb26).

Files with missing lines Patch % Lines
sphinx_parser/calculator.py 0.00% 23 Missing ⚠️
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.
📢 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.

@jan-janssen
Copy link
Copy Markdown
Member

As a reference the ASE team worked on this some time back https://gitlab.com/ase/ase/-/merge_requests/2657

@pmrv
Copy link
Copy Markdown
Contributor Author

pmrv commented Nov 28, 2025

Yeah, I snooped around in there, but as you expected it's much simpler with the parser and newer ASE infrastructure.

@pmrv
Copy link
Copy Markdown
Contributor Author

pmrv commented Nov 30, 2025

I also found the calculator implemented by FLEUR. Seems like this can be a good template for a "modern" ase calculator too.

Copy link
Copy Markdown
Member

@samwaseda samwaseda left a comment

Choose a reason for hiding this comment

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

Nice! Thanks!

@samwaseda samwaseda linked an issue Nov 30, 2025 that may be closed by this pull request
@stale
Copy link
Copy Markdown

stale Bot commented Feb 12, 2026

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.

@stale stale Bot added the stale label Feb 12, 2026
@samwaseda samwaseda requested a review from Copilot March 19, 2026 10:18
@stale stale Bot removed the stale label Mar 19, 2026
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

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 SphinxDft ASE calculator that writes an input.sx file from an ase.Atoms.
  • Added result parsing from a SPHInX stdout log via SphinxLogParser, exposing energy and forces through self.results.

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

Comment thread sphinx_parser/calculator.py Outdated
Comment thread sphinx_parser/calculator.py Outdated
Comment thread sphinx_parser/calculator.py Outdated
Comment thread sphinx_parser/calculator.py Outdated
Comment thread sphinx_parser/calculator.py Outdated
Comment thread sphinx_parser/calculator.py Outdated
Comment thread sphinx_parser/calculator.py Outdated
Comment thread sphinx_parser/calculator.py Outdated
pmrv and others added 2 commits March 19, 2026 16:01
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>
Comment thread sphinx_parser/calculator.py Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Marvin Poul <ponder@creshal.de>
Comment thread sphinx_parser/calculator.py Outdated
@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented Apr 20, 2026

Not up to standards ⛔

🔴 Issues 5 minor

Alerts:
⚠ 5 issues (≤ 0 issues of at least minor severity)

Results:
5 new issues

Category Results
Documentation 5 minor

View in Codacy

🟢 Metrics 10 complexity · 0 duplication

Metric Results
Complexity 10
Duplication 0

View in Codacy

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.

pmrv and others added 3 commits April 20, 2026 16:06
…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>
Comment thread sphinx_parser/calculator.py Outdated
pmrv and others added 3 commits April 21, 2026 13:48
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Add injectable potentials to allow per-element PAW path and potType override
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.

[Feature] ASE compatible Calculator

4 participants