Skip to content

Commit

Permalink
Fix error message about missing basemap-data-hires
Browse files Browse the repository at this point in the history
  • Loading branch information
molinav committed Jan 22, 2022
1 parent 59ffbf7 commit 438dea7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ since version 1.3.0.
- Upgrade development requirements for Python 3.10.
- Move `doc` folder into `packages/basemap`.

### Fixed
- Fix error message when trying to load high- and full-resolution datasets
without installing the `basemap-data-hires` package.

## [1.3.0] - 2021-12-28

### Added
Expand Down
9 changes: 4 additions & 5 deletions packages/basemap/src/mpl_toolkits/basemap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1223,11 +1223,10 @@ def _readboundarydata(self,name,as_polygons=False):
read boundary data, clip to map projection region.
"""
msg = dedent("""
Unable to open boundary dataset file. Only the 'crude', 'low',
'intermediate' and 'high' resolution datasets are installed by default.
If you are requesting a 'full' resolution dataset, you may need to
download and install those files separately
(see the basemap README for details).""")
Unable to open boundary dataset file. Only the 'crude', 'low' and
'intermediate' resolution datasets are installed by default. If you
are requesting a 'high' or 'full' resolution dataset, you need to
install the `basemap-data-hires` package.""")
# only gshhs coastlines can be polygons.
if name != 'gshhs': as_polygons=False
try:
Expand Down

0 comments on commit 438dea7

Please sign in to comment.