From 0f579a813a129f7ad1a053edfc4f0380369477b1 Mon Sep 17 00:00:00 2001 From: Wei Ji <23487320+weiji14@users.noreply.github.com> Date: Fri, 22 Nov 2024 14:46:11 +1300 Subject: [PATCH 1/3] Fix doctest on pygmt.datasets.tile_map.load_tile_map in ci_tests_legacy Use rio.crs.to_string() to get the 'EPSG:3857' string representation that should make the test compatible with rasterio 1.4.2 or older. --- pygmt/datasets/tile_map.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygmt/datasets/tile_map.py b/pygmt/datasets/tile_map.py index 2ca2022bfc6..0c9f1b6271d 100644 --- a/pygmt/datasets/tile_map.py +++ b/pygmt/datasets/tile_map.py @@ -125,8 +125,8 @@ def load_tile_map( spatial_ref int... 0 >>> # CRS is set only if rioxarray is available >>> if hasattr(raster, "rio"): - ... raster.rio.crs - CRS.from_wkt(...) + ... raster.rio.crs.to_string() + 'EPSG:3857' """ if not _HAS_CONTEXTILY: msg = ( From 1bb9936221be4499f190144be99a3b5bfb016eb6 Mon Sep 17 00:00:00 2001 From: Wei Ji <23487320+weiji14@users.noreply.github.com> Date: Thu, 21 Nov 2024 14:29:04 +1300 Subject: [PATCH 2/3] Temporarily enable ci_tests_legacy.yaml --- .github/workflows/ci_tests_legacy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_tests_legacy.yaml b/.github/workflows/ci_tests_legacy.yaml index 47d8a6ee887..ec7f7524fb1 100644 --- a/.github/workflows/ci_tests_legacy.yaml +++ b/.github/workflows/ci_tests_legacy.yaml @@ -12,7 +12,7 @@ on: # push: # branches: [ main ] # Uncomment the 'pull_request' line below to trigger the workflow in PR - # pull_request: + pull_request: # types: [ready_for_review] # paths: # - 'pygmt/**' From 85432e46cda5dc0397483798611cb4d6099e659d Mon Sep 17 00:00:00 2001 From: Wei Ji <23487320+weiji14@users.noreply.github.com> Date: Fri, 22 Nov 2024 15:19:29 +1300 Subject: [PATCH 3/3] Revert "Temporarily enable ci_tests_legacy.yaml" This reverts commit 1bb9936221be4499f190144be99a3b5bfb016eb6. Co-authored-by: Dongdong Tian --- .github/workflows/ci_tests_legacy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_tests_legacy.yaml b/.github/workflows/ci_tests_legacy.yaml index ec7f7524fb1..47d8a6ee887 100644 --- a/.github/workflows/ci_tests_legacy.yaml +++ b/.github/workflows/ci_tests_legacy.yaml @@ -12,7 +12,7 @@ on: # push: # branches: [ main ] # Uncomment the 'pull_request' line below to trigger the workflow in PR - pull_request: + # pull_request: # types: [ready_for_review] # paths: # - 'pygmt/**'