Skip to content

Conversation

@Praagnya
Copy link
Contributor

Summary

  • Implemented SimState.wrap_positions property using ts.transforms.pbc_wrap_batched to properly wrap atomic positions according to periodic boundary conditions.

  • Added test_wrap_positions_property to verify the property correctly handles both PBC=True and PBC=False cases.

Checklist

Before a pull request can be merged, the following items must be checked:

  • Doc strings have been added in the Google docstring format.
  • Run ruff on your code.
  • Tests have been added for any new functionality or bug fixes.

Resolves #343

Copy link
Collaborator

@thomasloux thomasloux left a comment

Choose a reason for hiding this comment

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

I would even remove the test

@Praagnya Praagnya closed this Nov 22, 2025
@Praagnya Praagnya force-pushed the 343-implement-simstate-wrap_positions branch from 1196109 to 9b8394a Compare November 22, 2025 04:49
@Praagnya Praagnya deleted the 343-implement-simstate-wrap_positions branch November 22, 2025 04:51
@Praagnya Praagnya restored the 343-implement-simstate-wrap_positions branch November 22, 2025 05:01
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.

Implement SimState.wrap_positions

2 participants