Skip to content

Commit

Permalink
Fallback values
Browse files Browse the repository at this point in the history
  • Loading branch information
mwtoews committed Sep 13, 2024
1 parent c3c47cc commit 350639f
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions tests/test_modflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1957,8 +1957,25 @@ def test_flopy_package_period(tmp_path):
],
np.float32,
)
print(dl["q"])
np.testing.assert_almost_equal(dl["q"], expected_q, decimal=5)
# print(dl["q"])
try:
np.testing.assert_almost_equal(dl["q"], expected_q)
except AssertionError as err:
print(err)
print("checking again with fallback values...")
# from macOS
expected_q = np.array(
[
-0.06402925,
-0.0089168,
-0.02376346,
-0.03143258,
-0.02090226,
-0.01977158,
-0.0720041,
]
)
np.testing.assert_almost_equal(dl["q"], expected_q)
assert "RLEN" not in dl.dtype.names
assert "RLEN".ljust(16) not in dl.dtype.names

Expand Down

0 comments on commit 350639f

Please sign in to comment.