Skip to content

Commit

Permalink
fix test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Ragzouken committed Oct 7, 2024
1 parent af35db1 commit 6177db3
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions python-libraries/nanover-omni/tests/test_ase.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,16 @@ def test_dynamics_interaction(example_ase):
"""
Test that example dynamics responds to interactions.
"""

with OmniRunner.with_basic_server(example_ase, port=0) as runner:
runner.app_server.imd.insert_interaction(
"interaction.0",
ParticleInteraction(
position=(0.0, 0.0, 10.0),
particles=[0],
interaction_type="constant",
),
)
runner.next()
runner.pause()
for _ in range(30):
example_ase.advance_by_one_step()
example_ase.app_server.imd.insert_interaction(
"interaction.0",
ParticleInteraction(
position=(0.0, 0.0, 10.0),
particles=[0],
interaction_type="constant",
),
)
for _ in range(30):
example_ase.advance_by_one_step()

positions = example_ase.atoms.get_positions()
(x, y, z) = positions[0]
Expand Down

0 comments on commit 6177db3

Please sign in to comment.