Skip to content

Commit

Permalink
remove np.round in assert_almost equal
Browse files Browse the repository at this point in the history
  • Loading branch information
eoydvin committed Dec 5, 2023
1 parent 19d4a30 commit e1613f3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pycomlink/tests/test_wet_dry_mlp.py
Expand Up @@ -3,8 +3,12 @@
from pycomlink.processing.wet_dry.mlp import mlp_wet_dry

class Testmlppred(unittest.TestCase):
"""
This runs the same tests as test_wet_dry_cnn.py but with different
content in truth_raw.
"""

def test_mlppred(self):
# generate random array
trsl_channel_1 = np.arange(0, 60 * 8).astype(float)
trsl_channel_2 = np.arange(0, 60 * 8).astype(float)

Expand Down Expand Up @@ -63,6 +67,4 @@ def test_mlppred(self):
)

np.testing.assert_almost_equal(pred[280:293], truth)
np.testing.assert_almost_equal(
np.round(pred_raw, decimals=7)[280:293], truth_raw
)
np.testing.assert_almost_equal(pred_raw[280:293], truth_raw, decimal=7)

0 comments on commit e1613f3

Please sign in to comment.