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

Allow some tolerance in test comparison #219

Merged
merged 2 commits 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
4 changes: 2 additions & 2 deletions tests/forward_pass/test_forward_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ def test_fwp_single_ts_vs_multi_ts_input_files():

with xr.open_dataset(sf) as s_res, xr.open_dataset(mf) as m_res:
for feat in model.meta['hr_out_features']:
assert np.array_equal(s_res[feat].values,
m_res[feat].values)
assert np.allclose(s_res[feat].values,
m_res[feat].values)


def test_fwp_spatial_only():
Expand Down
Loading