Skip to content

Batched pairfunction cleanup#488

Merged
CompRhys merged 19 commits intomainfrom
batched-pairfunction-cleanup
Mar 5, 2026
Merged

Batched pairfunction cleanup#488
CompRhys merged 19 commits intomainfrom
batched-pairfunction-cleanup

Conversation

@CompRhys
Copy link
Member

@CompRhys CompRhys commented Mar 3, 2026

Replace all the old classical pair potential backends with general backend, make this differentiable to enable diff_sim.py to work.

@CompRhys CompRhys changed the base branch from main to batched-pairfunction March 3, 2026 02:26
@CompRhys CompRhys added the breaking Breaking changes label Mar 3, 2026
Base automatically changed from batched-pairfunction to main March 3, 2026 03:45
@CompRhys CompRhys requested a review from abhijeetgangan March 3, 2026 04:13
@CompRhys
Copy link
Member Author

CompRhys commented Mar 3, 2026

The PR was looking so clean until these tests broke. They all use LJ models and have numerical consistency issues. Not sure what the bug might be :(

CompRhys added 2 commits March 5, 2026 09:15
…se to break symmetry without needing "noisier model" bump noise a lot on base model, do not limit tests to CPU
@CompRhys CompRhys requested a review from orionarcher March 5, 2026 14:17
Copy link
Collaborator

@orionarcher orionarcher left a comment

Choose a reason for hiding this comment

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

Very nice change. Love the amount of code deleted.

I'd favor adding more documentation explaining the new pair potential structure / design. In the pair_potential.py module header or in the headers or class descriptions of the models themselves.

The amount of deleted testing in the pair potentials worries me slightly. In theory it'd be nice if most of the tests passed as is. I will trust that the lost test coverage has been replaced by the newly added tests.

@CompRhys CompRhys merged commit 84986c1 into main Mar 5, 2026
@CompRhys CompRhys deleted the batched-pairfunction-cleanup branch March 5, 2026 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Breaking changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants