Skip to content

Commit

Permalink
fixed arg to numpy allclose
Browse files Browse the repository at this point in the history
  • Loading branch information
iskandr committed Mar 13, 2024
1 parent 44e8402 commit 0060655
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_netmhc_stabpan.py
Expand Up @@ -10,7 +10,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import numpy as np
from numpy.testing import assert_allclose
from mhctools import NetMHCstabpan


Expand Down Expand Up @@ -57,6 +57,6 @@ def test_netmhc_stabpan_accuracy():
for i, (expected, actual) in enumerate(zip(web_server_predictions, stability_predictions)):
# Check to make sure that the stability predictions are within 0.01 of the webserver values.
# This could be the result of different versions of dependencies or the nature of the ANN itself.
np.testing.assert_allclose(expected, actual, atol=0.01, error_msg="Peptide %d: expected %f but got %f" % (i, expected, actual))
assert_allclose(expected, actual, atol=0.01, err_msg="Peptide %d: expected %f but got %f" % (i, expected, actual))


0 comments on commit 0060655

Please sign in to comment.