Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: test_uzf_negative_iuzfopt #2236

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions autotest/test_uzf.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,15 +647,12 @@ def test_uzf_negative_iuzfopt(function_tmpdir):
"uzf_neg.nam", version="mfnwt", model_ws=function_tmpdir
)

pet = ml2.uzf.pet.array
extpd = ml2.uzf.pet.array

assert (
np.max(pet) == np.min(pet) and np.max(pet) != 0.1
), "Read error for iuzfopt less than 0"
assert (
np.max(extpd) == np.min(extpd) and np.max(extpd) != 0.2
), "Read error for iuzfopt less than 0"
np.testing.assert_array_equal(
ml2.uzf.pet.array, np.full((2, 1, 10, 10), 0.1, np.float32)
)
np.testing.assert_array_equal(
ml2.uzf.extdp.array, np.full((2, 1, 10, 10), 0.2, np.float32)
)


def test_optionsblock_auxillary_typo():
Expand Down
Loading