From a7828435aacfe2605860a7055fc58f0ad9eb115e Mon Sep 17 00:00:00 2001 From: Ariana Barzinpour Date: Mon, 5 Dec 2022 23:17:08 +0000 Subject: [PATCH] fix tests --- cubedash/_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cubedash/_utils.py b/cubedash/_utils.py index c862c4440..5aed6a6ed 100644 --- a/cubedash/_utils.py +++ b/cubedash/_utils.py @@ -879,7 +879,7 @@ def dataset_shape(ds: Dataset) -> Tuple[Optional[Polygon], bool]: def bbox_as_geom(dataset): """Get dataset bounds as to Geometry object projected to target CRS""" - return geometry.box(*dataset.bounds, crs=CRS(dataset.crs)).to_crs(CRS(_TARGET_CRS)) + return geometry.box(*dataset.bounds, crs=dataset.crs).to_crs(CRS(_TARGET_CRS)) # ######################### WARNING ############################### #