Skip to content

Fix ASE 3.27 compatibility: update Filter import and optimizer API#139

Merged
yanghan234 merged 4 commits intomainfrom
update-ase
Feb 9, 2026
Merged

Fix ASE 3.27 compatibility: update Filter import and optimizer API#139
yanghan234 merged 4 commits intomainfrom
update-ase

Conversation

@yanghan234
Copy link
Collaborator

@yanghan234 yanghan234 commented Feb 9, 2026

Summary

This PR fixes compatibility with ASE 3.27, which introduced breaking changes:

  1. Filter import path change: ase.constraints.Filter has been moved to ase.filters.Filter in ASE 3.27. Updated imports in:

    • src/mattersim/applications/batch_relax.py
    • src/mattersim/applications/relax.py
    • src/mattersim/cli/applications/relax.py
  2. Optimizer API change: Fixed optimizer instantiation to work with the updated ASE optimizer interface.

Credits

The import path fixes were originally contributed by @mbagheri20 in #136. This PR preserves the original commit authorship.

Co-authored-by: Mohammad Bagheri @mbagheri20

@yanghan234 yanghan234 merged commit 533acce into main Feb 9, 2026
20 checks passed
@yanghan234 yanghan234 deleted the update-ase branch February 9, 2026 11:01
@yanghan234 yanghan234 mentioned this pull request Feb 9, 2026
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.

2 participants