Skip to content

Commit

Permalink
assert passes on my pc
Browse files Browse the repository at this point in the history
  • Loading branch information
fzimmermann89 committed Jan 20, 2025
1 parent 6b08e95 commit 0716b42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/notebooks/direct_reconstruction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,8 @@
"outputs": [],
"source": [
"# If the assert statement did not raise an exception, the results are equal.\n",
"assert torch.allclose(img.data, img_manual.data)\n",
"assert torch.allclose(img.data, img_more_manual.data)"
"assert torch.testing.assert_close(img.data, img_manual.data)\n",
"assert torch.testing.assert_close(img.data, img_more_manual.data)"
]
}
],
Expand Down
4 changes: 2 additions & 2 deletions examples/scripts/direct_reconstruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,5 +169,5 @@

# %%
# If the assert statement did not raise an exception, the results are equal.
assert torch.allclose(img.data, img_manual.data)
assert torch.allclose(img.data, img_more_manual.data)
assert torch.testing.assert_close(img.data, img_manual.data)
assert torch.testing.assert_close(img.data, img_more_manual.data)

0 comments on commit 0716b42

Please sign in to comment.