From 9653a7e073384f1e43d5d0108fadb71236ef9f03 Mon Sep 17 00:00:00 2001 From: James Fulton Date: Wed, 2 Apr 2025 16:48:14 +0000 Subject: [PATCH] add attr check --- tests/test_app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_app.py b/tests/test_app.py index c763ed7..7de39d2 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -44,3 +44,6 @@ def test_app(sat_5_data, tmp_path, test_t0): # Make sure all of the predictions are finite assert np.isfinite(ds_y_hat.sat_pred).all() + + # Make sure the area attribute has been copied across + assert "area" in ds_y_hat.sat_pred.attrs