Skip to content

test: add MD ensemble tests and si_diamond_cubic fixture#150

Merged
yanghan234 merged 1 commit intomainfrom
fix/issue-60-nvt-nose-hoover
Apr 21, 2026
Merged

test: add MD ensemble tests and si_diamond_cubic fixture#150
yanghan234 merged 1 commit intomainfrom
fix/issue-60-nvt-nose-hoover

Conversation

@yanghan234
Copy link
Copy Markdown
Collaborator

Summary

Adds test coverage for the MolecularDynamics class, verifying that both supported ensembles (NVT_BERENDSEN and NVT_NOSE_HOOVER) initialize and run correctly.

Changes

  • Added tests/applications/test_moldyn.py with 5 tests covering both NVT ensembles (initialization, running, and unsupported ensemble error handling)
  • Added si_diamond_cubic fixture to tests/conftest.py — needed because ASE's Melchionna NPT requires a triangular cell matrix

Add FutureWarning to MolecularDynamics class, add si_diamond_cubic
fixture, and add tests for both NVT ensembles.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@yanghan234 yanghan234 force-pushed the fix/issue-60-nvt-nose-hoover branch from d90d140 to 8af18db Compare April 21, 2026 16:28
@yanghan234 yanghan234 merged commit ea3b7fa into main Apr 21, 2026
7 checks passed
@yanghan234 yanghan234 deleted the fix/issue-60-nvt-nose-hoover branch April 21, 2026 16:30
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.

1 participant