Skip to content

Commit

Permalink
Updates saved reference simulation images
Browse files Browse the repository at this point in the history
An update in python packages likely caused the numerical differences.
All tests pass.
  • Loading branch information
gschlafly committed Jul 23, 2024
1 parent 07fe4b5 commit b1da992
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[pytest]
markers =
slow: marks tests as slow (deselect with '-m "not slow"')
testpaths = tests
Binary file modified tests/test_data/precomputed_images_shell_small_7_18_18_16_9.pt
Binary file not shown.
Binary file modified tests/test_data/precomputed_images_sphere2_11_30_30_16_11.pt
Binary file not shown.
9 changes: 8 additions & 1 deletion tests/test_simulation_results.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
"""Tests for the simulation results."""
"""Tests for the simulation results.
Images to compare against are generated and saved with:
images = run_simulation("shell_small", [7, 18, 18], 16, 9)
filename = generate_filename("shell_small", [7, 18, 18], 16, 9)
save_images(images, filename)
"""

import pytest
import torch
Expand Down

0 comments on commit b1da992

Please sign in to comment.