From 9404e3f79199198104b2ef2ee820d938231f96bd Mon Sep 17 00:00:00 2001 From: zmoon Date: Mon, 18 Nov 2024 17:16:35 -0600 Subject: [PATCH] Update test --- tests/test_remap.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/test_remap.py b/tests/test_remap.py index fd63347..a37ea73 100644 --- a/tests/test_remap.py +++ b/tests/test_remap.py @@ -105,12 +105,10 @@ def test_combine_da_da(): assert float(new.longitude.max()) == pytest.approx(0.9) assert float(new.latitude.min()) == pytest.approx(0.1) assert float(new.latitude.max()) == pytest.approx(0.9) - assert (obs.longitude.values == x).all(), "preserved" - assert (new.latitude.isel(x=0).values == obs.latitude.values).all() - # FIXME - assert not (new.longitude.isel(y=0).values == obs.longitude.values).all() - assert (new.longitude.isel(y=0).values == x_).all() + assert (obs.longitude.values == x).all(), "preserved" + assert (new.latitude.isel(x=0).values == obs.latitude.values).all(), "same as target" + assert (new.longitude.isel(y=0).values == obs.longitude.values).all(), "same as target" # Use orthogonal selection to get track a = new.data.values[:, new.y, new.x]