Skip to content

Commit

Permalink
TST/FIX: Do difference ourselves rather than numpy to avoid datatype …
Browse files Browse the repository at this point in the history
…case
  • Loading branch information
greglucas committed Jun 22, 2024
1 parent 300c8b1 commit 1be5352
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 1be5352

Please sign in to comment.