Skip to content

Commit

Permalink
corrects ray energy test
Browse files Browse the repository at this point in the history
  • Loading branch information
fakufaku committed Apr 23, 2024
1 parent 19a8efa commit c971e1f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyroomacoustics/tests/tests_libroom/test_ray_energy.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,9 @@ def test_square_room(self):
histogram_rt_poly = np.array(h_poly[0])[: len(histogram_gt)]
histogram_rt_cube = np.array(h_cube[0])[: len(histogram_gt)]

self.assertTrue(np.allclose(histogram_rt_poly, histogram_gt))
self.assertTrue(np.allclose(histogram_rt_cube, histogram_gt))
# print(abs(histogram_rt_poly - histogram_gt).max())
self.assertTrue(np.allclose(histogram_rt_poly, histogram_gt, atol=1e-6))
self.assertTrue(np.allclose(histogram_rt_cube, histogram_gt, atol=1e-6))


if __name__ == "__main__":
Expand Down

0 comments on commit c971e1f

Please sign in to comment.