Skip to content

Commit 1bba833

Browse files
Change assert_equal to assert_almost_equal
1 parent 28a70f2 commit 1bba833

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/tests/pt/test_dp_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def test_dp_test_padding_atoms(self) -> None:
203203
input_dict_padding["coord"], (0, 0, 0, padding_atoms, 0, 0), value=0
204204
)
205205
result_padding = trainer.model(**input_dict_padding)
206-
np.testing.assert_equal(
206+
np.testing.assert_almost_equal(
207207
to_numpy_array(result[trainer.model.get_var_name()])[0],
208208
to_numpy_array(result_padding[trainer.model.get_var_name()])[0],
209209
)

0 commit comments

Comments
 (0)