Skip to content

Commit

Permalink
fixed the error, updated the test_inertia file with exact same string…
Browse files Browse the repository at this point in the history
… as the MOI functions.plot. Error should be resolved.
  • Loading branch information
brittyscience committed Feb 21, 2025
1 parent 85103a9 commit 2de9a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_analysis/test_inertia.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def test_plot_moi_one_frame(moi_functions):
# Simulate a single frame of inertia tensor data
moi_functions.moments_of_inertia = np.array([[1.0, 2.0, 3.0]])
result = moi_functions.plot_moi()
assert "Only one frame in trajectory, no plot generated." in result
assert "Only one frame in the trajectory, no plot generated." in result


@patch("mdcrow.tools.base_tools.analysis_tools.inertia.plt.savefig")
Expand Down

0 comments on commit 2de9a91

Please sign in to comment.