Skip to content

Commit

Permalink
Update net1_unit_test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariosmsk committed Apr 16, 2024
1 parent a38c16a commit 1d392ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions epyt/tests/net1_unit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def testStepByStepAnalysis(self):
9.452347598503036e-07, 9.28221894076609e-07, 9.084721628771827e-07, 2.416368471024177,
2.4073945733540967,
2.3857323225219194])
np.testing.assert_array_almost_equal(velocity, v_desired, err_msg="Wrong Velocity output")
np.testing.assert_array_almost_equal(velocity, v_desired, decimal=3, err_msg="Wrong Velocity output")
h_desired = np.array(
[19.117018607743262, 18.784557106294415, 18.575821630530413, 18.350323106559813, 18.247536420722895,
18.125096976393024, 18.12282340051479, 18.099494697653654, 17.95951292501252, 17.843745116056084,
Expand All @@ -202,9 +202,9 @@ def testStepByStepAnalysis(self):
2.637534635141492e-11,
2.5352164811920375e-11, 20.08353269330769, 19.945617762391066,
19.61450487894149])
np.testing.assert_array_almost_equal(head_loss, h_desired, err_msg="Wrong HeadLoss output")
np.testing.assert_array_almost_equal(head_loss, h_desired, decimal=3, err_msg="Wrong HeadLoss output")
f_desired = [np.array(1866.17578125), np.array(1848.58117676), np.array(1837.46105957)]
np.testing.assert_array_almost_equal(flow[0:3], f_desired, err_msg="Wrong Flows output")
np.testing.assert_array_almost_equal(flow[0:3], f_desired, decimal=3, err_msg="Wrong Flows output")

""" ------------------------------------------------------------------------- """

Expand Down

0 comments on commit 1d392ce

Please sign in to comment.