Skip to content

Commit 484ecc0

Browse files
committed
Merge branch 'main' into alias-system
2 parents d5a671a + a92d9d0 commit 484ecc0

File tree

12 files changed

+20
-18
lines changed

12 files changed

+20
-18
lines changed

.github/workflows/benchmarks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787

8888
# Run the benchmark tests
8989
- name: Run benchmarks
90-
uses: CodSpeedHQ/action@v3.1.0
90+
uses: CodSpeedHQ/action@v3.2.0
9191
with:
9292
# 'bash -el -c' is needed to use the custom shell.
9393
# See https://github.com/CodSpeedHQ/action/issues/65.

.github/workflows/ci_docs.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,9 @@ jobs:
101101
netCDF4
102102
packaging
103103
contextily
104-
geopandas<1.0
104+
geopandas
105105
ipython
106106
pyarrow
107-
rasterio<1.4.3
108107
rioxarray
109108
make
110109
pip

.github/workflows/ci_doctests.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ jobs:
6161
geopandas
6262
ipython
6363
pyarrow
64-
rasterio<1.4.3
6564
rioxarray
6665
make
6766
pip

.github/workflows/ci_tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ jobs:
7373
numpy-version: '1.24'
7474
pandas-version: '=2.0'
7575
xarray-version: '=2023.04'
76-
optional-packages: ' contextily geopandas<1 ipython pyarrow rasterio<1.4.3 rioxarray sphinx-gallery'
76+
optional-packages: ' contextily geopandas<1 ipython pyarrow rioxarray sphinx-gallery'
7777
# Python 3.12 + core packages (latest versions) + optional packages
7878
- python-version: '3.12'
7979
numpy-version: '2.1'
8080
pandas-version: ''
8181
xarray-version: ''
82-
optional-packages: ' contextily geopandas>=1.0 ipython pyarrow rasterio<1.4.3 rioxarray sphinx-gallery'
82+
optional-packages: ' contextily geopandas>=1.0 ipython pyarrow rioxarray sphinx-gallery'
8383
# Python 3.11 + core packages (Linux only)
8484
- os: 'ubuntu-latest'
8585
python-version: '3.11'

.github/workflows/ci_tests_dev.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ jobs:
152152
python -m pip install --pre --prefer-binary \
153153
--extra-index https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
154154
numpy pandas xarray netCDF4 packaging \
155-
build contextily dvc geopandas ipython pyarrow 'rasterio<1.4.3' rioxarray \
155+
build contextily dvc geopandas ipython pyarrow rioxarray \
156156
pytest pytest-cov pytest-doctestplus pytest-mpl pytest-rerunfailures \
157157
sphinx-gallery
158158

.github/workflows/ci_tests_legacy.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ jobs:
7171
geopandas
7272
ipython
7373
pyarrow
74-
rasterio<1.4.3
7574
rioxarray
7675
sphinx-gallery
7776
make

ci/requirements/docs.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@ dependencies:
1414
- packaging
1515
# Optional dependencies
1616
- contextily
17-
- geopandas<1.0
17+
- geopandas
1818
- ipython
1919
- pyarrow
20-
- rasterio<1.4.3
2120
- rioxarray
2221
# Development dependencies (general)
2322
- make

pygmt/clib/session.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,9 @@ def print_func(file_pointer, message): # noqa: ARG001
400400
self._print_callback = print_func
401401

402402
padding = self["GMT_PAD_DEFAULT"]
403-
session_type = self["GMT_SESSION_EXTERNAL"]
403+
# GMT_SESSION_EXTERNAL: GMT is called by an external wrapper.
404+
# GMT_SESSION_NOGDALCLOSE: Do not call GDALDestroyDriverManager when using GDAL.
405+
session_type = self["GMT_SESSION_EXTERNAL"] + self["GMT_SESSION_NOGDALCLOSE"]
404406
session = c_create_session(name.encode(), padding, session_type, print_func)
405407

406408
if session is None:

pygmt/helpers/decorators.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -456,18 +456,22 @@ def fmt_docstring(module_func):
456456
Select map :doc:`projection </projections/index>`.
457457
<BLANKLINE>
458458
**Aliases:**
459+
.. hlist::
460+
:columns: 3
459461
<BLANKLINE>
460-
- J = projection
461-
- R = region
462+
- J = projection
463+
- R = region
462464
<BLANKLINE>
463465
""" # noqa: D410,D411
464466
filler_text = {}
465467

466468
if hasattr(module_func, "aliases"):
467469
aliases = ["**Aliases:**\n"]
470+
aliases.append(".. hlist::")
471+
aliases.append(" :columns: 3\n")
468472
for arg in sorted(module_func.aliases):
469473
alias = module_func.aliases[arg]
470-
aliases.append(f"- {arg} = {alias}")
474+
aliases.append(f" - {arg} = {alias}")
471475
filler_text["aliases"] = "\n".join(aliases)
472476

473477
filler_text["table-like"] = (

pygmt/src/tilemap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def tilemap(
5050
5151
**Note**: By default, standard web map tiles served in a Spherical Mercator
5252
(EPSG:3857) Cartesian format will be reprojected to a geographic coordinate
53-
reference system (OGC:WGS84) and plotted with longitude/latitude bounds when
53+
reference system (OGC:CRS84) and plotted with longitude/latitude bounds when
5454
``lonlat=True``. If reprojection is not desired, please set ``lonlat=False`` and
5555
provide Spherical Mercator (EPSG:3857) coordinates to the ``region`` parameter.
5656

0 commit comments

Comments
 (0)