Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
test missing passes
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankrb committed Mar 11, 2024
1 parent e830768 commit ae0ec9e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/create/test_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
for name in NAMES
if name
not in [
"missing",
"perturbations",
]
]
Expand Down Expand Up @@ -62,7 +61,11 @@ def compare_datasets(a, b):
assert (a.dates == b.dates).all(), (a.dates, b.dates)
for a_, b_ in zip(a.variables, b.variables):
assert a_ == b_, (a, b)
assert a.missing == b.missing, "Missing are different"

for i_date, date in zip(range(a.shape[0]), a.dates):
if i_date in a.missing:
continue
for i_param in range(a.shape[1]):
param = a.variables[i_param]
assert param == b.variables[i_param], (
Expand Down

0 comments on commit ae0ec9e

Please sign in to comment.