Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
zmoon committed Nov 18, 2024
1 parent ca1880b commit 9404e3f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/test_remap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 9404e3f

Please sign in to comment.