From 1be535246d808035d47e35f0a3cedc9493800965 Mon Sep 17 00:00:00 2001 From: Greg Lucas Date: Sat, 22 Jun 2024 07:20:12 -0600 Subject: [PATCH] TST/FIX: Do difference ourselves rather than numpy to avoid datatype case --- lib/cartopy/crs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cartopy/crs.py b/lib/cartopy/crs.py index a39703e87..c24415167 100644 --- a/lib/cartopy/crs.py +++ b/lib/cartopy/crs.py @@ -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