Skip to content

Commit be840ac

Browse files
seismanweiji14
andauthored
Update pygmt/datasets/tile_map.py
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
1 parent 0b9fae2 commit be840ac

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pygmt/datasets/tile_map.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ def load_tile_map(
123123
* x (x) float64 ... -2.004e+07 -1.996e+07 ... 1.996e+07 2.004e+07
124124
spatial_ref int64 ... 0
125125
>>> # CRS is set only if rioxarray is available
126-
>>> import importlib
127-
>>> if importlib.util.find_spec("rioxarray"):
126+
>>> if hasattr(dataarray, "rio"):
128127
... raster.rio.crs
129128
CRS.from_epsg(3857)
130129
"""

0 commit comments

Comments
 (0)