From 24d44ca429e9b13e6ef5c4abfb3125a184d713cf Mon Sep 17 00:00:00 2001 From: Apoorva Singh Date: Thu, 20 Nov 2025 11:57:02 +0530 Subject: [PATCH] Fix small mistake in area.py --- aurora/area.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aurora/area.py b/aurora/area.py index 3abeef71..1319912e 100644 --- a/aurora/area.py +++ b/aurora/area.py @@ -111,7 +111,7 @@ def compute_patch_areas(lat: torch.Tensor, lon: torch.Tensor) -> torch.Tensor: """ if not (lat.dim() == lon.dim() == 2): raise ValueError("`lat` and `lon` must both be matrices.") - if lat.shape != lat.shape: + if lat.shape != lon.shape: raise ValueError("`lat` and `lon` must have the same shape.") # Check that the latitude matrix is decreasing in the appropriate way.