Skip to content

Commit

Permalink
added ignore for division in test_demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Carow authored and Kyle Carow committed Jul 5, 2023
1 parent 4ffaeff commit 0aca668
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/fastsim/tests/test_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ def test_run_simdrive(self):
False,
msg=f"Exception (Rust: False): {ex}"
)
speedup = py_dt / ru_dt
with np.errstate(divide='ignore'):
speedup = py_dt / ru_dt
if VERBOSE:
print(f"Rust provides a {speedup:.5g}x speedup")
self.assertTrue(
Expand Down

0 comments on commit 0aca668

Please sign in to comment.