Skip to content

Commit 4ccd1fa

Browse files
authored
Merge pull request #173 from Shikamaru-Nara1729/nit-fix
Fix small mistake in area.py
2 parents 90457ca + 24d44ca commit 4ccd1fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aurora/area.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def compute_patch_areas(lat: torch.Tensor, lon: torch.Tensor) -> torch.Tensor:
111111
"""
112112
if not (lat.dim() == lon.dim() == 2):
113113
raise ValueError("`lat` and `lon` must both be matrices.")
114-
if lat.shape != lat.shape:
114+
if lat.shape != lon.shape:
115115
raise ValueError("`lat` and `lon` must have the same shape.")
116116

117117
# Check that the latitude matrix is decreasing in the appropriate way.

0 commit comments

Comments
 (0)