Skip to content

Commit

Permalink
fix(coordinates): Bounds test
Browse files Browse the repository at this point in the history
  • Loading branch information
devsjc committed Jan 17, 2025
1 parent 21783fd commit d301a9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nwp_consumer/internal/entities/coordinates.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ def crop(
" and both must sit between 180 and -180 degrees.",
))

if (south < self.latitude[0] or north > self.latitude[-1]
if (north > self.latitude[0] or south < self.latitude[-1]
or west < self.longitude[0] or east > self.longitude[-1]):
return Failure(ValueError(
"Cannot crop coordinates to a region outside the bounds of the map. "
Expand Down

0 comments on commit d301a9f

Please sign in to comment.