Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aurora/area.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down