Skip to content

Commit

Permalink
Merge pull request #2403 from greglucas/tst-crs-bbox-offset
Browse files Browse the repository at this point in the history
TST/FIX: Do difference ourselves rather than numpy to avoid datatype cast
  • Loading branch information
rcomer authored Jun 22, 2024
2 parents 1cadc5e + 1be5352 commit 0889d0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cartopy/crs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,7 @@ def _bbox_and_offset(self, other_plate_carree):
bbox = [[lon_lower_bound_0, lon_lower_bound_1],
[lon_lower_bound_1, lon_lower_bound_0]]

bbox[1][1] += np.diff(self.x_limits)[0]
bbox[1][1] += self.x_limits[1] - self.x_limits[0]

return bbox, lon_0_offset

Expand Down

0 comments on commit 0889d0e

Please sign in to comment.